Skip to content

Instantly share code, notes, and snippets.

@decke decke/vbox-upstreaming.md
Last active Mar 16, 2018

Embed
What would you like to do?

Upstreaming FreeBSD virtualbox patches

NEEDS REWORK

patch-Config.kmk (split up)
patch-configure (split up)
patch-src-VBox-Additions-common-VBoxGuest-freebsd-Makefile (split up)
patch-src_VBox_Runtime_r0drv_freebsd_memobj-r0drv-freebsd.c (split up: 10.x and 11.x build fix and Shared Folder support)

UNCLEAR

patch-include-iprt-x86.h (needed for FreeBSD 10.0/i386; still relevant?)
patch-include_iprt_assertcompile.h
patch-include_iprt_cdefs.h (clang 6.0 build fixes?)
patch-src-VBox-Additions-x11-vboxmouse-Makefile.kmk
patch-src-VBox-HostDrivers-VBoxNetAdp-Makefile.kmk
patch-src-VBox-Main-src-server-VirtualBoxImpl.cpp
patch-src-VBox-Main-src-server-freebsd-HostHardwareFreeBSD.cpp
patch-src-VBox-Main-webservice-Makefile.kmk
patch-src_VBox_Devices_Audio_DrvHostALSAAudio.cpp
patch-src_VBox_Main_include_USBProxyBackend.h (leftover from upstreamed USB fix?)
patch-src_VBox_Main_src-client_ConsoleImpl2.cpp

SEND PATCHES

OTHER

patch-src-VBox-Installer-freebsd-VBox.sh
patch-src_VBox_Main_src-server_freebsd_NetIf-freebsd.cpp
patch-src_libs_xpcom18a4_nsprpub_pr_src_pthreads_ptsynch.c (See: https://svnweb.freebsd.org/ports?view=revision&revision=463452)
patch-src_libs_xpcom18a4_xpcom_io_nsLocalFileUnix.h

BUILD FIXED

patch-include-VBox-vmm-cpumctx.h (clang)
patch-src_VBox_Devices_Storage_DrvHostBase-freebsd.cpp
patch-src_VBox_Frontends_VirtualBox_Makefile.kmk (clang 3.4)
patch-src_VBox_HostServices_SharedOpenGL_Makefile.kmk (clang 3.4)
patch-src_VBox_Runtime_common_err_RTErrConvertFromErrno.cpp (clang 6.0)
patch-src_VBox_Runtime_r0drv_freebsd_the-freebsd-kernel.h
patch-src_VBox_VMM_VMMR0_GVMMR0.cpp (clang)
patch-src_VBox_VMM_VMMR3_VMReq.cpp (clang)

RUNTIME (IPRT)

patch-src-VBox-Runtime-Makefile.kmk
patch-src-VBox-Runtime-r0drv-freebsd-sleepqueue-r0drv-freebsd.h
patch-src_VBox_Runtime_r0drv_freebsd_mp-r0drv-freebsd.c
patch-src_VBox_Runtime_r0drv_freebsd_thread-r0drv-freebsd.c
patch-src_VBox_Runtime_r0drv_freebsd_time-r0drv-freebsd.c

HostDrivers

patch-src-VBox-HostDrivers-Support-freebsd-Makefile
patch-src-VBox-HostDrivers-Support-freebsd-files_vboxdrv
patch-src-VBox-HostDrivers-VBoxNetAdp-freebsd-VBoxNetAdp-freebsd.c
patch-src-VBox-HostDrivers-VBoxNetFlt-freebsd-VBoxNetFlt-freebsd.c
patch-src_VBox_HostDrivers_Support_freebsd_SUPDrv-freebsd.c

ADDITIONS

patch-src-VBox-Additions-common-VBoxGuest-VBoxGuest-freebsd.c
patch-src-VBox-Additions-common-VBoxGuest-freebsd-files_vboxguest
patch-src_VBox_Additions_common_pam_pam__vbox.cpp

FRONTENDS

patch-src_VBox_Frontends_VBoxManage_VBoxManageHelp.cpp

VBOX SHARED FOLDER (needs relicensing to MIT)

See: https://svnweb.freebsd.org/ports?view=revision&revision=446145

patch-src_VBox_Additions_freebsd_Makefile
patch-src_VBox_Additions_freebsd_Makefile.kmk
patch-src_VBox_Additions_freebsd_mount__vboxvfs_Makefile.kmk
patch-src_VBox_Additions_freebsd_mount__vboxvfs_mount__vboxvfs.8
patch-src_VBox_Additions_freebsd_mount__vboxvfs_mount__vboxvfs.c
patch-src_VBox_Additions_freebsd_vboxvfs_Makefile.kmk
patch-src_VBox_Additions_freebsd_vboxvfs_vboxvfs.h
patch-src_VBox_Additions_freebsd_vboxvfs_vboxvfs__prov.c
patch-src_VBox_Additions_freebsd_vboxvfs_vboxvfs__vfsops.c
patch-src_VBox_Additions_freebsd_vboxvfs_vboxvfs__vnops.c

OPENGL SUPPORT

See: https://svnweb.freebsd.org/ports?view=revision&revision=375294

patch-src-VBox-Additions-common-crOpenGL-FreeBSD_i386_exports.py
patch-src-VBox-Additions-common-crOpenGL-FreeBSD_i386_exports_dri.py
patch-src-VBox-Additions-common-crOpenGL-FreeBSD_i386_glxapi_exports.py
patch-src-VBox-Additions-common-crOpenGL-Makefile.kmk
patch-src_VBox_Additions_common_crOpenGL_stub.h
patch-src-VBox-GuestHost-OpenGL-Makefile.kmk

D-BUS SUPPORT

See: https://svnweb.freebsd.org/ports?view=revision&revision=435803

patch-src_VBox_Additions_common_VBoxService_VBoxServiceVMInfo.cpp
patch-src_VBox_Main_Makefile.kmk
patch-src_VBox_Main_include_HostPower.h
patch-src_VBox_Main_src-server_HostImpl.cpp

PG_CACHE removal

See: https://svnweb.freebsd.org/ports?view=revision&revision=449436

patch-src_VBox_Main_src-server_freebsd_PerformanceFreeBSD.cpp
patch-src_VBox_Runtime_r3_freebsd_systemmem-freebsd.cpp

KEEP PATCHES

CLANG + GCC HACK

extrapatch-Config.kmk
extrapatch-src-VBox-Additions-x11-VBoxClient-Makefile.kmk
extrapatch-src-VBox-Additions-x11-vboxvideo-Makefile.kmk
extrapatch-src-VBox-Additions-x11-x11include-xorg-server-1.17.1-compiler.h
extrapatch-src-VBox-Devices-PC-ipxe-Makefile.kmk
extrapatch-src-recompiler-Makefile.kmk

FREEBSD OR PORT SPECIFIC

extrapatch-src-VBox-HostDrivers-Support-freebsd-Makefile
patch-src-VBox-Additions-x11-Installer-98vboxadd-xclient
patch-src-VBox-Additions-x11-Installer-vboxclient.desktop
patch-src-VBox-Devices-Network-slirp-bsd-sys-mbuf.h
patch-src-VBox-Installer-Makefile.kmk
patch-src-VBox-Installer-freebsd-virtualbox.desktop
patch-src-recompiler-Sun-testmath.c
patch-src_VBox_Debugger_Makefile.kmk
patch-src_VBox_HostDrivers_Support_SUPDrvInternal.h

ANCIENT (can be deleted)

extrapatch-src_VBox_Frontends_VirtualBox_src_net_UIDownloaderAdditions.cpp (qt4)
extrapatch-src_VBox_Frontends_VirtualBox_src_net_UIDownloaderExtensionPack.cpp (qt4)
extrapatch-src_VBox_Frontends_VirtualBox_src_settings_global_UIGlobalSettingsNetworkDetailsHost.cpp (qt4)
extrapatch-src_VBox_Frontends_VirtualBox_src_widgets_UIMiniToolBar.cpp (qt4)
extrapatch-src_VBox_Frontends_VirtualBox_src_widgets_UIMiniToolBar.h (qt4)
patch-src-VBox-Additions-x11-x11include-xorg-server-1.16.0-xf86Xinput.h (gcc 4.2; can be deleted?)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.