Bug 284439 - emulators/virtualbox-ose{-*}: update to 7.1.x
Summary: emulators/virtualbox-ose{-*}: update to 7.1.x
Status: In Progress
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Vladimir Druzenko
URL:
Keywords:
Depends on: 284420
Blocks:
  Show dependency treegraph
 
Reported: 2025-01-29 17:03 UTC by groenveld
Modified: 2025-05-14 19:56 UTC (History)
5 users (show)

See Also:


Attachments
Add Virtualbox ports for version 7.1 (353.46 KB, patch)
2025-05-10 10:12 UTC, devel
no flags Details | Diff
ports directory with 7.1.8 itself (81.48 KB, application/x-gzip)
2025-05-10 14:57 UTC, devel
no flags Details
7.1.8 v1 (68.19 KB, application/x-xz)
2025-05-11 00:19 UTC, Vladimir Druzenko
no flags Details
7.1.8 v2 (68.34 KB, application/x-xz)
2025-05-12 01:13 UTC, Vladimir Druzenko
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description groenveld 2025-01-29 17:03:31 UTC
VirtualBox requires Qt6
https://www.virtualbox.org/wiki/Changelog-7.1
Comment 1 commit-hook freebsd_committer freebsd_triage 2025-04-28 14:47:32 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=f1fbc644a8fc38015fa0432471fc3660866b677c

commit f1fbc644a8fc38015fa0432471fc3660866b677c
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2025-04-28 14:42:52 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2025-04-28 14:42:52 +0000

    www/phpvirtualbox-71: Update 7.0 => 7.1-1

    Changelog:
    https://github.com/phpvirtualbox/phpvirtualbox/releases/tag/7.1-1

    PR:     284439

 www/phpvirtualbox-71/Makefile                            | 14 +++++---------
 www/phpvirtualbox-71/distinfo                            |  6 +++---
 .../files/patch-endpoints_lib_config.php                 | 16 ++++++++--------
 www/phpvirtualbox-71/pkg-plist                           | 12 +++++++++---
 4 files changed, 25 insertions(+), 23 deletions(-)
Comment 2 commit-hook freebsd_committer freebsd_triage 2025-04-28 14:47:34 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=81280a685ff9489bd3694ee919a19337aa877237

commit 81280a685ff9489bd3694ee919a19337aa877237
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2025-04-28 14:29:30 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2025-04-28 14:29:30 +0000

    www/phpvirtualbox-71: Repocopy from www/phpvirtualbox-70

    PR:     284439

 www/phpvirtualbox-71/Makefile (new)                |  42 ++
 www/phpvirtualbox-71/distinfo (new)                |   3 +
 .../files/patch-endpoints_lib_config.php (new)     |  10 +
 .../patch-endpoints_lib_vboxconnector.php (new)    |  21 +
 www/phpvirtualbox-71/pkg-descr (new)               |   3 +
 www/phpvirtualbox-71/pkg-plist (new)               | 589 +++++++++++++++++++++
 6 files changed, 668 insertions(+)
Comment 3 commit-hook freebsd_committer freebsd_triage 2025-04-28 15:17:38 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=75e03e53bd054ba66ca0e076c7478f2456e9d992

commit 75e03e53bd054ba66ca0e076c7478f2456e9d992
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2025-04-28 15:12:48 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2025-04-28 15:17:03 +0000

    www/phpvirtualbox-71: Connect to the build

    PR:     284439

 www/Makefile | 1 +
 1 file changed, 1 insertion(+)
Comment 4 devel 2025-05-10 10:12:52 UTC
Created attachment 260314 [details]
Add Virtualbox ports for version 7.1

New ports: emulators/virtualbox-ose-71, emulators/virtualbox-ose-kmod-71, emulators/virtualbox-ose-nox11-71 are in the attachments.

Patches and ports structure based on existing virtualbox-ose-70 mostly.

Testing and running on 14.2 release/amd64 + Qt 6.8.3  (without poudriere, though).
Comment 5 Mario Lobo 2025-05-10 12:50:39 UTC
(In reply to devel from comment #4)

Great news!

Could you provide a compressed file with everything in it?
Comment 6 Vladimir Druzenko freebsd_committer freebsd_triage 2025-05-10 13:33:52 UTC
(In reply to devel from comment #4)
Thanks a lot!

Did you apply patch from bug #286507?

Tarball with all ports would be very convenient.
Comment 7 Mario Lobo 2025-05-10 14:22:18 UTC
I managed to create the files from the attachment.

If everything goes Ok I'll post a tar attachment.
Comment 8 devel 2025-05-10 14:57:53 UTC
Created attachment 260316 [details]
ports directory with 7.1.8 itself

No, patches from bug 286507 aren't included.

Directories with ports added in this attachment.
Comment 9 Mario Lobo 2025-05-10 17:52:27 UTC
To report my findings.

Everything compiled without errors.

Calling VirtualBox starts the GUI fine, but any attempt to start any of the VMs (windows, linux, whatever) ends with the VM crashing or simply not starting and being closed by VBox.
Comment 10 Vladimir Druzenko freebsd_committer freebsd_triage 2025-05-10 19:54:08 UTC
(In reply to devel from comment #8)
You have not applied the patches for the last half year… :-o

(In reply to Mario Lobo from comment #9)
This is bad…

I have applied all the latest patches and will try this version.
Comment 11 Vladimir Druzenko freebsd_committer freebsd_triage 2025-05-11 00:19:55 UTC
Created attachment 260319 [details]
7.1.8 v1

Mario Lobo, can you try my version (with all patches).
Work for me:
- build;
- run VMs via phpvirtualbox: FreeBSD 12.0 i386, KUbuntu 24.04.1 amd64 LiveDVD, Windows 2019 installation media, Windows XP installation media, Windows 2000 install and run;
- run VMs via VirtualBox GUI: FreeBSD 14.2 amd64 installation media.
Comment 12 commit-hook freebsd_committer freebsd_triage 2025-05-11 01:25:09 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=806da99dc22608ce8ff9e87903fcbc1fb4a2ab8d

commit 806da99dc22608ce8ff9e87903fcbc1fb4a2ab8d
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2025-05-11 01:02:57 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2025-05-11 01:23:34 +0000

    emulators/virtualbox-ose{,-additions,-kmod}{,-70,-legacy}: Update CONFLICTS_INSTALL before committing new ports with VirtualBox 7.1.x

    PR:     284439

 emulators/virtualbox-ose-70/Makefile               | 4 +++-
 emulators/virtualbox-ose-additions-legacy/Makefile | 4 +++-
 emulators/virtualbox-ose-additions/Makefile        | 4 +++-
 emulators/virtualbox-ose-kmod-70/Makefile          | 5 +++--
 emulators/virtualbox-ose-kmod-legacy/Makefile      | 3 ++-
 emulators/virtualbox-ose-kmod/Makefile             | 3 ++-
 emulators/virtualbox-ose-legacy/Makefile           | 4 +++-
 emulators/virtualbox-ose/Makefile                  | 4 +++-
 8 files changed, 22 insertions(+), 9 deletions(-)
Comment 13 commit-hook freebsd_committer freebsd_triage 2025-05-11 01:33:12 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e3da428cddd43fa3d24d6d3c564dfaf5231fe110

commit e3da428cddd43fa3d24d6d3c564dfaf5231fe110
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2025-05-11 01:31:39 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2025-05-11 01:31:39 +0000

    emulators/virtualbox-ose-70: Fix CONFLICTS_INSTALL

    PR:     284439

 emulators/virtualbox-ose-70/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 14 devel 2025-05-11 04:55:18 UTC
(In reply to Mario Lobo from comment #9)
Try to run 'VirtualBoxVM' from shell - check for 'Undefined symbol' errors.

Rebuilding ftp/curl was required in the case of my environment - before VirtualBoxVM running without errors.
Comment 15 Mario Lobo 2025-05-11 23:00:39 UTC
Hi here is my report.

Host:
stable/14-6060830201d6: Wed May  7 15:20:42 -03 2025

I had Vbox 7.0.24 installed:

     All VMs worked, except the Snow Leopard VM

after installed Vbox 7.1.8:

 VMs that Boot Ok:
  Linuxes 32&64 bits (Debian, Ububtu and Fedora)
  Android 64 bits
  PF-Sense BSD 64 bits
  Windows 32 bits
  
 VMs that enter Guru Meditation:
  Snow Leopard 
  ANY windows 64 bits, be it an existing VM or create a new one. No 64 bit Win ISO boots anymore (8,8.1,10,11, whatever)
  
VirtualBoxVM --startvm Win10
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!
!!         VCPU0: Guru Meditation 1155 (VINF_EM_TRIPLE_FAULT)
!!
!! Skipping ring-0 registers and stack, rcErr=VINF_EM_TRIPLE_FAULT
!!
!! {mappings, <NULL>}
!!
!!
!! {hma, <NULL>}
!!  
  
From this point on, the install of 7.1.8 "screwed" something in the system so bad that even if going back to older versions (7.0.24 or 6.1.50), VirtualBox is no longer capable of booting any windows 64 bits.

The only exception is that Snow Leopard boots on 6.1.50.

One last thing of note. During compilation, under EACH kbuild line, it shows:
fcntl(): bad file descriptor
Comment 16 Vladimir Druzenko freebsd_committer freebsd_triage 2025-05-12 01:13:08 UTC
Created attachment 260345 [details]
7.1.8 v2

Made a few adjustments.
But I'm worried about the build with the PYTHON option:
=========================================================================================
running install_scripts

WARNING: Installation path is not in current module search path!
         This might happen on OSes / distributions which only maintain
         packages by a vendor-specific method.
Hints:
- Check how the distribution handles user-installable Python packages.
- Using setuptools directly might be deprecated on the distribution.
- Using "pip install ./vboxapi" within a virtual environment (virtualenv)
  might fix this.

Installed to: /tmp/work/usr/ports/emulators/virtualbox-ose-71/work/stage/usr/local/lib/python3.11/site-packages/
Global site packages directories are:
        /usr/local/lib/python3.11/site-packages
User site packages directories are:
        /root/.local/lib/python3.11/site-packages
Module search path is:
        /tmp/work/usr/ports/emulators/virtualbox-ose-71/work/VirtualBox-7.1.8/out/freebsd.amd64/release/bin/sdk/installer/python
        /usr/local/lib/python311.zip
        /usr/local/lib/python3.11
        /usr/local/lib/python3.11/lib-dynload
        /usr/local/lib/python3.11/site-packages
        vboxapi
        /tmp/work/usr/ports/emulators/virtualbox-ose-71/work/stage/usr/local/lib/python3.11/site-packages/
ERROR: Testing VirtualBox Python bindings failed: No module named 'xpcom'
=========================================================================================
This last line ^^^^^^.
What can this affect?
Comment 17 Vladimir Druzenko freebsd_committer freebsd_triage 2025-05-12 01:15:37 UTC
(In reply to Mario Lobo from comment #15)
Reboot doesn't help?

> One last thing of note. During compilation, under EACH kbuild line, it shows:
> fcntl(): bad file descriptor
This appeared after the kBuild update.
No side effects have been noticed yet.
Comment 18 Mario Lobo 2025-05-12 23:20:35 UTC
(In reply to Vladimir Druzenko from comment #17)

Nothing works :(

Reboots, vbox upgrades, downgrades, port install, pkg install, you name it.

After VBox 7.1.8, my host lost the ability to run any 64 bit windows VMs.
Comment 19 Vladimir Druzenko freebsd_committer freebsd_triage 2025-05-12 23:28:14 UTC
(In reply to Mario Lobo from comment #18)
Are you sure you didn't do anything else on this host? The description of the actions doesn't match the result obtained.
Comment 20 Mario Lobo 2025-05-13 13:12:19 UTC
(In reply to Vladimir Druzenko from comment #19)

Guilty as charged, Vladimir :(

I had disabled 2 settings in the BIOS to make some tests, and forgot them that way.

SR-IOV support and NX Mode.

As soon as I enabled them back, all Windows VMs came back to life. And I confirm that VBox 7.1.8 IS working fine on my host.

I beg everyone's forgiveness for the noise.

One last thing. I never compiled any of my VBox versions with python bindings checked.

Thanks for the help.
Comment 21 Vladimir Druzenko freebsd_committer freebsd_triage 2025-05-13 17:24:51 UTC
(In reply to Mario Lobo from comment #20)
I'm glad to hear you found the root cause and fixed it!
And I'm glad that VB 7.1.8 works for you too - thanks for testing!
I think it's time to commit the port.
Comment 22 commit-hook freebsd_committer freebsd_triage 2025-05-13 18:41:09 UTC
A commit in branch 2025Q2 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=96a498cc9e18ce14d6ea31eecc101f9aafa64ed2

commit 96a498cc9e18ce14d6ea31eecc101f9aafa64ed2
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2025-05-11 01:02:57 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2025-05-13 18:37:20 +0000

    emulators/virtualbox-ose{,-additions,-kmod}{,-70,-legacy}: Update CONFLICTS_INSTALL before committing new ports with VirtualBox 7.1.x

    PR:     284439
    (cherry picked from commit 806da99dc22608ce8ff9e87903fcbc1fb4a2ab8d)

 emulators/virtualbox-ose-70/Makefile               | 4 +++-
 emulators/virtualbox-ose-additions-legacy/Makefile | 4 +++-
 emulators/virtualbox-ose-additions/Makefile        | 4 +++-
 emulators/virtualbox-ose-kmod-70/Makefile          | 5 +++--
 emulators/virtualbox-ose-kmod-legacy/Makefile      | 3 ++-
 emulators/virtualbox-ose-kmod/Makefile             | 3 ++-
 emulators/virtualbox-ose-legacy/Makefile           | 4 +++-
 emulators/virtualbox-ose/Makefile                  | 4 +++-
 8 files changed, 22 insertions(+), 9 deletions(-)
Comment 23 commit-hook freebsd_committer freebsd_triage 2025-05-13 18:41:13 UTC
A commit in branch 2025Q2 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ee427251b82f3ce2e6137f54a2f3074b6c469e94

commit ee427251b82f3ce2e6137f54a2f3074b6c469e94
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2025-05-11 01:31:39 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2025-05-13 18:37:46 +0000

    emulators/virtualbox-ose-70: Fix CONFLICTS_INSTALL

    PR:     284439
    (cherry picked from commit e3da428cddd43fa3d24d6d3c564dfaf5231fe110)

 emulators/virtualbox-ose-70/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 24 commit-hook freebsd_committer freebsd_triage 2025-05-13 20:34:46 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=36a9a113cdead4d191a986a20d7f54601daf5551

commit 36a9a113cdead4d191a986a20d7f54601daf5551
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2025-05-13 19:20:29 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2025-05-13 20:33:39 +0000

    emulators/virtualbox-ose{,-kmod,-nox11}-71: Repocopy from emulators/virtualbox-ose{,-kmod,-nox11}-70

    PR:     284439

 emulators/virtualbox-ose-71/Makefile (new)         |  424 ++++++
 emulators/virtualbox-ose-71/distinfo (new)         |    7 +
 .../files/extrapatch-Config.kmk (new)              |   11 +
 ...VBox-HostDrivers-Support-freebsd-Makefile (new) |   11 +
 .../files/extrapatch-vboximg-Config.kmk (new)      |   11 +
 .../virtualbox-ose-71/files/patch-Config.kmk (new) |  400 +++++
 .../virtualbox-ose-71/files/patch-configure (new)  |  138 ++
 .../files/patch-include-iprt-x86.h (new)           |   19 +
 .../files/patch-include_VBox_com_array.h (new)     |   36 +
 .../files/patch-include_VBox_sup.h (new)           |   11 +
 .../files/patch-include_iprt_string.h (new)        |   14 +
 ...ions-common-VBoxGuest-VBoxGuest-freebsd.c (new) |  284 ++++
 ...ditions-common-VBoxGuest-freebsd-Makefile (new) |   27 +
 ...-common-VBoxGuest-freebsd-files_vboxguest (new) |   34 +
 ...Additions-x11-Installer-98vboxadd-xclient (new) |   17 +
 ...dditions-x11-Installer-vboxclient.desktop (new) |   10 +
 ...VBox-Devices-Network-slirp-bsd-sys-mbuf.h (new) |   12 +
 ...-VBox-HostDrivers-VBoxNetAdp-Makefile.kmk (new) |   20 +
 ...ivers-VBoxNetFlt-freebsd-files_vboxnetflt (new) |   10 +
 .../patch-src-VBox-Installer-Makefile.kmk (new)    |   14 +
 .../patch-src-VBox-Installer-freebsd-VBox.sh (new) |   77 +
 ...c-VBox-Main-src-server-VirtualBoxImpl.cpp (new) |   11 +
 .../patch-src-VBox-Runtime-Makefile.kmk (new)      |   14 +
 ...-r0drv-freebsd-sleepqueue-r0drv-freebsd.h (new) |   39 +
 ..._common_VBoxService_VBoxServiceVMInfo.cpp (new) |   71 +
 ...c_VBox_Additions_common_pam_pam__vbox.cpp (new) |   20 +
 ...patch-src_VBox_Additions_freebsd_Makefile (new) |   38 +
 ...h-src_VBox_Additions_freebsd_Makefile.kmk (new) |   31 +
 ...ox_Additions_freebsd_drm_vboxvideo__drm.c (new) |   17 +
 ...tions_freebsd_mount__vboxvfs_Makefile.kmk (new) |   31 +
 ...s_freebsd_mount__vboxvfs_mount__vboxvfs.8 (new) |   56 +
 ...s_freebsd_mount__vboxvfs_mount__vboxvfs.c (new) |  171 +++
 ...src_VBox_Additions_freebsd_vboxvfs_bcmp.c (new) |   12 +
 ..._VBox_Additions_freebsd_vboxvfs_vboxvfs.h (new) |  428 ++++++
 ...Additions_freebsd_vboxvfs_vboxvfs__prov.c (new) | 1015 +++++++++++++
 ...ditions_freebsd_vboxvfs_vboxvfs__vfsops.c (new) |  645 ++++++++
 ...dditions_freebsd_vboxvfs_vboxvfs__vnops.c (new) | 1543 ++++++++++++++++++++
 ...VBox_Additions_x11_vboxmouse_Makefile.kmk (new) |   29 +
 ...src_VBox_Devices_Graphics_DevVGA-SVGA.cpp (new) |   20 +
 ...evices_Graphics_DevVGA-SVGA3d-dx-dx11.cpp (new) |   11 +
 ..._Devices_Graphics_DevVGA-SVGA3d-glLdr.cpp (new) |   29 +
 ...ox_Devices_Graphics_DevVGA-SVGA3d-glLdr.h (new) |   11 +
 ...ox_Devices_Graphics_DevVGA-SVGA3d-ogl.cpp (new) |   56 +
 .../patch-src_VBox_Devices_Makefile.kmk (new)      |   44 +
 ...tch-src_VBox_Devices_PC_ipxe_Makefile.kmk (new) |   29 +
 ...ox_Devices_USB_USBProxyDevice-freebsd.cpp (new) |   11 +
 .../patch-src_VBox_ExtPacks_VNC_VBoxVNC.cpp (new)  |   58 +
 ...x_Frontends_VBoxHeadless_VBoxHeadless.cpp (new) |   11 +
 ...ontends_VBoxManage_VBoxManageModifyVM.cpp (new) |   29 +
 ...h-src_VBox_HostDrivers_Support_SUPDrv.cpp (new) |   13 +
 ...VBox_HostDrivers_Support_SUPDrvInternal.h (new) |   11 +
 ...VBox_HostDrivers_Support_freebsd_Makefile (new) |   20 +
 ...tDrivers_Support_freebsd_SUPDrv-freebsd.c (new) |  234 +++
 ...rivers_Support_freebsd_SUPLib-freebsd.cpp (new) |   11 +
 ...ostDrivers_Support_freebsd_files__vboxdrv (new) |   18 +
 ...x_HostDrivers_VBoxNetAdp_freebsd_Makefile (new) |   11 +
 ...s_VBoxNetAdp_freebsd_VBoxNetAdp-freebsd.c (new) |  147 ++
 ..._VBox_HostDrivers_VBoxNetFlt_Makefile.kmk (new) |   11 +
 ...x_HostDrivers_VBoxNetFlt_freebsd_Makefile (new) |   11 +
 ...s_VBoxNetFlt_freebsd_VBoxNetFlt-freebsd.c (new) |  471 ++++++
 ...VBox_HostDrivers_adpctl_VBoxNetAdpCtl.cpp (new) |   11 +
 .../files/patch-src_VBox_Main_Makefile.kmk (new)   |   10 +
 .../patch-src_VBox_Main_include_HostPower.h (new)  |   20 +
 ...tch-src_VBox_Main_src-server_HostImpl.cpp (new) |   11 +
 ...src-server_freebsd_PerformanceFreeBSD.cpp (new) |   24 +
 .../patch-src_VBox_Runtime_Makefile.kmk (new)      |   12 +
 ...ntime_r0drv_freebsd_alloc-r0drv-freebsd.c (new) |   58 +
 ...time_r0drv_freebsd_assert-r0drv-freebsd.c (new) |   29 +
 ...time_r0drv_freebsd_memobj-r0drv-freebsd.c (new) |  398 +++++
 ...drv_freebsd_memuserkernel-r0drv-freebsd.c (new) |   22 +
 ..._Runtime_r0drv_freebsd_mp-r0drv-freebsd.c (new) |   92 ++
 ...me_r0drv_freebsd_semevent-r0drv-freebsd.c (new) |   53 +
 ...drv_freebsd_semeventmulti-r0drv-freebsd.c (new) |   73 +
 ...0drv_freebsd_semfastmutex-r0drv-freebsd.c (new) |   59 +
 ...me_r0drv_freebsd_semmutex-r0drv-freebsd.c (new) |   80 +
 ...me_r0drv_freebsd_spinlock-r0drv-freebsd.c (new) |   30 +
 ...untime_r0drv_freebsd_the-freebsd-kernel.h (new) |   48 +
 ...time_r0drv_freebsd_thread-r0drv-freebsd.c (new) |   91 ++
 ...ime_r0drv_freebsd_thread2-r0drv-freebsd.c (new) |   35 +
 ...untime_r0drv_freebsd_time-r0drv-freebsd.c (new) |   43 +
 ...ntime_r0drv_freebsd_timer-r0drv-freebsd.c (new) |   68 +
 ..._Runtime_r3_freebsd_systemmem-freebsd.cpp (new) |   39 +
 ...ntime_r3_posix_process-creation-posix.cpp (new) |   38 +
 ...MM_VMMR3_PDMAsyncCompletionFileNormal.cpp (new) |   59 +
 .../files/patch-src_VMM_Config.kmk (new)           |   11 +
 .../patch-src_libs_xpcom18a4_Makefile.kmk (new)    |   11 +
 ...com18a4_nsprpub_pr_src_pthreads_ptsynch.c (new) |   20 +
 ...libs_xpcom18a4_xpcom_io_nsLocalFileUnix.h (new) |   17 +
 .../virtualbox-ose-71/files/pkg-message.in (new)   |  120 ++
 .../virtualbox-ose-71/files/vboxheadless.in (new)  |  140 ++
 .../virtualbox-ose-71/files/vboxinit.in (new)      |   91 ++
 .../virtualbox-ose-71/files/vboxwatchdog.in (new)  |   51 +
 .../virtualbox-ose-71/files/vboxwebsrv.in (new)    |   47 +
 .../files/virtualbox.desktop (new)                 |   17 +
 emulators/virtualbox-ose-71/pkg-descr (new)        |    8 +
 emulators/virtualbox-ose-71/pkg-plist (new)        |  614 ++++++++
 emulators/virtualbox-ose-kmod-71/Makefile (new)    |  112 ++
 emulators/virtualbox-ose-kmod-71/distinfo (new)    |    3 +
 .../files/pkg-message.in (new)                     |   10 +
 .../virtualbox-ose-kmod-71/files/vboxnet.in (new)  |   67 +
 emulators/virtualbox-ose-kmod-71/pkg-descr (new)   |    5 +
 emulators/virtualbox-ose-kmod-71/pkg-plist (new)   |    6 +
 emulators/virtualbox-ose-nox11-71/Makefile (new)   |   11 +
 103 files changed, 9789 insertions(+)
Comment 25 commit-hook freebsd_committer freebsd_triage 2025-05-13 20:34:48 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b385e71707e3273c21289041488bae032c3ccbf6

commit b385e71707e3273c21289041488bae032c3ccbf6
Author:     Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2025-05-13 19:47:12 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2025-05-13 20:33:40 +0000

    emulators/virtualbox-ose{,-kmod,-nox11}-71: Add new ports VirtualBox 7.1.8

    Port based on patch from devel@stasyan.com.
    The main work on porting was done by the author of the original patch.
    The rest is a dozen various improvements and bug fixes that have been
    made over the past few months in older versions: 7.0.x, 6.1.x, 5.2.x.

    The requirements for 7.1.x are the same as for 7.0.x, but for now we'll
    leave both versions in experimental/test mode.

    The following ports also need to be created (they are not available for
    version 7.0.x either):
     - emulators/virtualbox-ose-additions-71;
     - emulators/virtualbox-ose-additions-nox11-71.

    www/phpvirtualbox-71 already in ports.

    Changelog:
    https://www.virtualbox.org/wiki/Changelog-7.1

    PR:             284439 271146
    Tested by:      Mario Lobo <lobo@bsd.com.br>
    Relnotes:       yes

 emulators/Makefile                                 |   3 +
 emulators/virtualbox-ose-71/Makefile               |  60 ++++---
 emulators/virtualbox-ose-71/distinfo               |  14 +-
 .../virtualbox-ose-71/files/extrapatch-Config.kmk  |   2 +-
 emulators/virtualbox-ose-71/files/patch-Config.kmk |  80 ++++-----
 emulators/virtualbox-ose-71/files/patch-configure  |  38 ++---
 ...doc_manual_en__US_dita_UserManual.ditamap (new) |  11 ++
 ...-VBox-Additions-x11-Installer-98vboxadd-xclient |  38 +++--
 ...c-VBox-Devices-Network-DrvNATlibslirp.cpp (new) |  10 ++
 ...patch-src_VBox_Devices_Graphics_DevVGA-SVGA.cpp |   4 +-
 ...VBox_Devices_Graphics_DevVGA-SVGA3d-dx-dx11.cpp |   4 +-
 ...c_VBox_Devices_Graphics_DevVGA-SVGA3d-glLdr.cpp |   2 +-
 ...src_VBox_Devices_Graphics_DevVGA-SVGA3d-glLdr.h |   2 +-
 ...src_VBox_Devices_Graphics_DevVGA-SVGA3d-ogl.cpp |   4 +-
 .../patch-src_VBox_Devices_PC_ipxe_Makefile.kmk    |   8 +-
 ...h-src_VBox_HostDrivers_Support_freebsd_Makefile |  14 +-
 ...VBox_HostDrivers_Support_freebsd_files__vboxdrv |  24 ++-
 ...ch-src_VBox_HostDrivers_VBoxNetFlt_Makefile.kmk |   4 +-
 .../files/patch-src_VBox_Runtime_Makefile.kmk      |  23 ++-
 ...ox_Runtime_r0drv_freebsd_memobj-r0drv-freebsd.c |  76 +++++----
 ...VBox_Runtime_r0drv_freebsd_the-freebsd-kernel.h |   2 +-
 ...ibs_xpcom18a4_nsprpub_pr_src_pthreads_ptsynch.c |  19 +--
 emulators/virtualbox-ose-71/pkg-plist              | 185 ++-------------------
 emulators/virtualbox-ose-kmod-71/Makefile          |  12 +-
 emulators/virtualbox-ose-kmod-71/distinfo          |   6 +-
 emulators/virtualbox-ose-nox11-71/Makefile         |   8 +-
 26 files changed, 283 insertions(+), 370 deletions(-)
Comment 26 Helge Oldach 2025-05-14 03:59:26 UTC
(In reply to commit-hook from comment #25)
>    The following ports also need to be created (they are not available for
>    version 7.0.x either):
>     - emulators/virtualbox-ose-additions-71;
>     - emulators/virtualbox-ose-additions-nox11-71.

Will these be added?
Comment 27 Vladimir Druzenko freebsd_committer freebsd_triage 2025-05-14 12:47:49 UTC
(In reply to Helge Oldach from comment #26)
I would be happy to, but no one has ported it yet, and I can’t build either 7.0.x or 7.1.x yet.
Comment 28 Helge Oldach 2025-05-14 17:30:08 UTC
(In reply to Vladimir Druzenko from comment #27)
OK, I gave it a try but stumbled over (IMHO) incorrect patches:

patch-src_VBox_Additions_freebsd_mount__vboxvfs_Makefile.kmk
-> s/NewVBoxGuestR3Exe/VBoxGuestR3Exe/

patch-src_VBox_Additions_x11_vboxmouse_Makefile.kmk
-> s/VBOXGUESTR3XORGMOD/VBoxGuestR3XOrgMod/

patch-src_VBox_Additions_x11_vboxvideo_Makefile.kmk
-> s;/usr/include;/usr/local/include; (for vboxvideo_drv_system_INCS)

Also patch-src-VBox-Additions-common-VBoxGuest-VBoxGuest-freebsd.c appears incorrect: the 'rc' variable in 'rc = devfs_get_cdevpriv((void **)&pSession);' is not defined, and likewise 'pSession' is removed but used.

I wonder how the main 7.1.8 port could be compiled at all? It seems the main port does not install the guest additions?
Comment 29 Vladimir Druzenko freebsd_committer freebsd_triage 2025-05-14 19:56:04 UTC
(In reply to Helge Oldach from comment #28)
> It seems the main port does not install the guest additions?
Yes.
The patches are probably copied from the VB 6.1.x ports without modification.