From 6ef2a4ec60e2e28af02ce253292e02e61585aee265ee9a41d2a75a8295ff9336 Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Mon, 28 Jan 2019 20:37:13 +0000 Subject: [PATCH 1/6] - Version bump to 6.0.4 (released January 28 2019 by Oracle) Files "fixes_for_5.0" and "fixes_for_gcc9" are deleted - the code was fixed upstream. This is a maintenance release. The following items were fixed and/or added: Virtualization core: support Shanghai/Zhaoxin CPUs. User interface: handle command line arguments to VirtualBox correctly (bugs #18206 and #18197) User interface: improvements to machine manager window, virtual optical disk creator, storage selector window and log viewer window User interface: various small fixes and improvements Audio: implemented time scheduling for the AC'97 device emulation to keep audio and video in sync Graphics: basic support for VMSVGA graphics device in virtual machines using EFI Network: fix occasional NATNet crashes (bug #13899) Network: worked around problems in certain PCnet drivers on old operating systems Serial: fixed connecting to pseudo terminals on POSIX hosts (6.0.0 regression; bug #18319) Linux hosts and guests: fix for building kernel modules against Linux 5.0. Thank you Kyle Laker - Converted vboxwebsrv to a systemd service. Previously, this was started through init.d. bsc#1116050 Files "vboxweb-service.service" and "vboxweb-service.sh" are added. File "vbox-vboxweb-init-script.diff" is removed. File "fixes_for_4.20.patch" is removed - the code was fixed upstream. File "fix_lib_search.patch" is added to fix the build of VBox0GL. File "fixes_for_5.0.patch" is added to compensate for API changes in kernel 5.0. File "virtualbox-system-x.patch" is removed. File "fixes_for_Leap15.1.patch" is added to fix build errors on Leap 15.1. - Version bump to 6.0.2 (released January 15 2019 by Oracle) This is a maintenance release. The following items were fixed and/or added: User interface: fixed creation of desktop shortcuts for starting virtual machines (bug #18207) User interface: allow the first run window to selecting host drives (bug #18230) User interface: fixed attaching empty host optical drives (bug #18223) User interface: implemented a new virtual optical disk creation window USB: modified Linux backends to reset USB devices (previously, most guest attempts to reset USB devices were ignored) PCnet: fixed a regression which caused some PCnet PCI guest drivers to not detect the emulated hardware (bug #18286) OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=465 --- Fix_for_server_1.19.patch | 24 +-- UserManual.pdf | 4 +- VirtualBox-5.2.22-patched.tar.bz2 | 3 - VirtualBox-6.0.4-patched.tar.bz2 | 3 + fix_32_bit_builds.patch | 14 +- fix_lib_search.patch | 41 +++++ fixes_for_4.20.patch | 145 --------------- fixes_for_Leap15.1.patch | 17 ++ fixes_for_Qt5.11.patch | 20 +-- fixes_for_gcc9 | 26 --- internal-headers.patch | 32 ++-- modify_for_4_8_bo_move.patch | 8 +- remove_vbox_video_build.patch | 20 +-- switch_to_python3.4+.patch | 83 +++++---- vbox-default-os-type.diff | 14 +- vbox-disable-updates.diff | 32 ++-- vbox-no-build-dates.diff | 290 +++++++++++++++++++++++++++--- vbox-vboxadd-init-script.diff | 110 +++++------- vbox-vboxdrv-init-script.diff | 9 +- vbox-vboxweb-init-script.diff | 14 -- vboxdrv.sh | 1 + vboxweb-service.service | 20 +++ vboxweb-service.sh | 225 +++++++++++++++++++++++ virtualbox-guest-kmp-files | 1 - virtualbox-sed-params.patch | 20 +-- virtualbox-system-x.patch | 57 ------ virtualbox-wrapper.sh | 2 +- virtualbox.changes | 120 ++++++++++++- virtualbox.spec | 129 ++++++------- 29 files changed, 924 insertions(+), 560 deletions(-) delete mode 100644 VirtualBox-5.2.22-patched.tar.bz2 create mode 100644 VirtualBox-6.0.4-patched.tar.bz2 create mode 100644 fix_lib_search.patch delete mode 100644 fixes_for_4.20.patch create mode 100644 fixes_for_Leap15.1.patch delete mode 100644 fixes_for_gcc9 delete mode 100644 vbox-vboxweb-init-script.diff create mode 100644 vboxweb-service.service create mode 100644 vboxweb-service.sh delete mode 100644 virtualbox-system-x.patch diff --git a/Fix_for_server_1.19.patch b/Fix_for_server_1.19.patch index e55615d..53ef2fd 100644 --- a/Fix_for_server_1.19.patch +++ b/Fix_for_server_1.19.patch @@ -1,8 +1,8 @@ -Index: VirtualBox-5.2.0/src/VBox/Additions/x11/vboxvideo/vboxvideo.c +Index: VirtualBox-6.0.2/src/VBox/Additions/x11/vboxvideo/vboxvideo.c =================================================================== ---- VirtualBox-5.2.0.orig/src/VBox/Additions/x11/vboxvideo/vboxvideo.c -+++ VirtualBox-5.2.0/src/VBox/Additions/x11/vboxvideo/vboxvideo.c -@@ -1237,7 +1237,11 @@ static Bool VBOXScreenInit(ScreenPtr pSc +--- VirtualBox-6.0.2.orig/src/VBox/Additions/x11/vboxvideo/vboxvideo.c ++++ VirtualBox-6.0.2/src/VBox/Additions/x11/vboxvideo/vboxvideo.c +@@ -1236,7 +1236,11 @@ static Bool VBOXScreenInit(ScreenPtr pSc #endif /* Register block and wake-up handlers for getting new screen size hints. */ @@ -14,11 +14,11 @@ Index: VirtualBox-5.2.0/src/VBox/Additions/x11/vboxvideo/vboxvideo.c /* software cursor */ miDCInitialize(pScreen, xf86GetPointerScreenFuncs()); -Index: VirtualBox-5.2.0/src/VBox/Additions/x11/vboxvideo/pointer.c +Index: VirtualBox-6.0.2/src/VBox/Additions/x11/vboxvideo/pointer.c =================================================================== ---- VirtualBox-5.2.0.orig/src/VBox/Additions/x11/vboxvideo/pointer.c -+++ VirtualBox-5.2.0/src/VBox/Additions/x11/vboxvideo/pointer.c -@@ -36,6 +36,10 @@ +--- VirtualBox-6.0.2.orig/src/VBox/Additions/x11/vboxvideo/pointer.c ++++ VirtualBox-6.0.2/src/VBox/Additions/x11/vboxvideo/pointer.c +@@ -39,6 +39,10 @@ #include "cursorstr.h" #include "servermd.h" @@ -29,11 +29,11 @@ Index: VirtualBox-5.2.0/src/VBox/Additions/x11/vboxvideo/pointer.c #include "vboxvideo.h" #ifdef XORG_7X -Index: VirtualBox-5.2.0/src/VBox/Additions/x11/vboxvideo/edid.c +Index: VirtualBox-6.0.2/src/VBox/Additions/x11/vboxvideo/edid.c =================================================================== ---- VirtualBox-5.2.0.orig/src/VBox/Additions/x11/vboxvideo/edid.c -+++ VirtualBox-5.2.0/src/VBox/Additions/x11/vboxvideo/edid.c -@@ -36,6 +36,10 @@ +--- VirtualBox-6.0.2.orig/src/VBox/Additions/x11/vboxvideo/edid.c ++++ VirtualBox-6.0.2/src/VBox/Additions/x11/vboxvideo/edid.c +@@ -35,6 +35,10 @@ * Michael Thayer */ diff --git a/UserManual.pdf b/UserManual.pdf index 635648b..62e46aa 100644 --- a/UserManual.pdf +++ b/UserManual.pdf @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:71512fe7f20eab44ef00d36937a46ed0da51a3f1caa01e9fd4585e0bc7225ba9 -size 4459021 +oid sha256:073648489e87aeda24143a64b13e46f7d6231ff215d75715d16aec558890da0c +size 4326191 diff --git a/VirtualBox-5.2.22-patched.tar.bz2 b/VirtualBox-5.2.22-patched.tar.bz2 deleted file mode 100644 index 1b0c3f1..0000000 --- a/VirtualBox-5.2.22-patched.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:137cb45ec6203764d16b844aae5ffd07c29f0bd3c55005d905a957a60c5ad3fe -size 83356066 diff --git a/VirtualBox-6.0.4-patched.tar.bz2 b/VirtualBox-6.0.4-patched.tar.bz2 new file mode 100644 index 0000000..a2538b9 --- /dev/null +++ b/VirtualBox-6.0.4-patched.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:94903b78356081bc55d7a0689a31eb165e5b00e9de6a2663676240a24dadb673 +size 118626165 diff --git a/fix_32_bit_builds.patch b/fix_32_bit_builds.patch index 9cb575e..f1ec13f 100644 --- a/fix_32_bit_builds.patch +++ b/fix_32_bit_builds.patch @@ -1,10 +1,10 @@ -Index: VirtualBox-5.2.20/src/VBox/Additions/linux/sharedfolders/utils.c +Index: VirtualBox-6.0.2/src/VBox/Additions/linux/sharedfolders/utils.c =================================================================== ---- VirtualBox-5.2.20.orig/src/VBox/Additions/linux/sharedfolders/utils.c -+++ VirtualBox-5.2.20/src/VBox/Additions/linux/sharedfolders/utils.c -@@ -49,11 +49,11 @@ static void sf_timespec_from_ftime(RTTIM - int64_t t = 1000000000 * *time; - RTTimeSpecSetNano(ts, t); +--- VirtualBox-6.0.2.orig/src/VBox/Additions/linux/sharedfolders/utils.c ++++ VirtualBox-6.0.2/src/VBox/Additions/linux/sharedfolders/utils.c +@@ -63,11 +63,11 @@ static void sf_timespec_from_ftime(RTTIM + int64_t t = 1000000000 * *time; + RTTimeSpecSetNano(ts, t); } -#else /* >= 2.6.0 */ -#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 18, 0) @@ -17,4 +17,4 @@ Index: VirtualBox-5.2.20/src/VBox/Additions/linux/sharedfolders/utils.c +static void sf_ftime_from_timespec(struct timespec *tv, RTTIMESPEC *ts) #endif { - int64_t t = RTTimeSpecGetNano(ts); + int64_t t = RTTimeSpecGetNano(ts); diff --git a/fix_lib_search.patch b/fix_lib_search.patch new file mode 100644 index 0000000..7b9e334 --- /dev/null +++ b/fix_lib_search.patch @@ -0,0 +1,41 @@ +Index: VirtualBox-6.0.2/configure +=================================================================== +--- VirtualBox-6.0.2.orig/configure ++++ VirtualBox-6.0.2/configure +@@ -1538,14 +1538,14 @@ EOF + INCQT5="$q/include $q/include/QtCore" + FLGQT5="-DQT_SHARED" + I_INCQT5=`prefix_I "$INCQT5"` +- LIBQT5="-L$q/lib -lQt5CoreVBox" ++ LIBQT5="-L$q/lib -L$q/usr/lib64 -lQt5CoreVBox" + TOOLQT5="$q" + if test_compile "$LIBQT5 $LIBPTHREAD $I_INCQT5 $FLGQT5" qt5 qt5 nofatal && + test_execute_path "`strip_L "$LIBQT5"`" nofatal; then + foundqt5=2 # internal + break; + fi +- LIBQT5="-L$q/lib -lQt5Core" ++ LIBQT5="-L$q/lib -L$q/usr/lib64 -lQt5Core" + if test_compile "$LIBQT5 $LIBPTHREAD $I_INCQT5 $FLGQT5" qt5 qt5 nofatal && + test_execute_path "`strip_L "$LIBQT5"`" nofatal; then + foundqt5=1 # no pkg-config, Qt directory +Index: VirtualBox-6.0.2/src/VBox/Additions/common/crOpenGL/Makefile.kmk +=================================================================== +--- VirtualBox-6.0.2.orig/src/VBox/Additions/common/crOpenGL/Makefile.kmk ++++ VirtualBox-6.0.2/src/VBox/Additions/common/crOpenGL/Makefile.kmk +@@ -217,15 +217,7 @@ VBoxOGL_LIBS.win += \ + $(PATH_STAGE_LIB)/additions/VBoxCrHgsmi$(VBOX_SUFF_LIB) + + if1of ($(KBUILD_TARGET), linux solaris freebsd) +- ifdef VBOX_USE_SYSTEM_GL_HEADERS + VBoxOGL_LIBS += Xcomposite Xdamage Xfixes Xext +- else +- VBoxOGL_LIBS += \ +- $(PATH_STAGE_LIB)/libXcomposite.so \ +- $(PATH_STAGE_LIB)/libXdamage.so \ +- $(PATH_STAGE_LIB)/libXfixes.so \ +- $(PATH_STAGE_LIB)/libXext.so +- endif + ifdef VBoxOGL_FAKEDRI + ifeq ($(KBUILD_TARGET), freebsd) + VBoxOGL_LIBS += \ diff --git a/fixes_for_4.20.patch b/fixes_for_4.20.patch deleted file mode 100644 index 61521f5..0000000 --- a/fixes_for_4.20.patch +++ /dev/null @@ -1,145 +0,0 @@ -Index: VirtualBox-5.2.22/src/VBox/HostDrivers/VBoxNetAdp/linux/VBoxNetAdp-linux.c -=================================================================== ---- VirtualBox-5.2.22.orig/src/VBox/HostDrivers/VBoxNetAdp/linux/VBoxNetAdp-linux.c -+++ VirtualBox-5.2.22/src/VBox/HostDrivers/VBoxNetAdp/linux/VBoxNetAdp-linux.c -@@ -84,8 +84,11 @@ static long VBoxNetAdpLinuxIOCtlUnlocked - #endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 36) */ - - static void vboxNetAdpEthGetDrvinfo(struct net_device *dev, struct ethtool_drvinfo *info); -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 20, 0) -+static int vboxNetAdpEthGetSettings(struct net_device *pNetDev, struct ethtool_link_ksettings *link_ksettings); -+#else - static int vboxNetAdpEthGetSettings(struct net_device *dev, struct ethtool_cmd *cmd); -- -+#endif - - /********************************************************************************************************************************* - * Global Variables * -@@ -129,7 +132,11 @@ static struct miscdevice g_CtlDev = - static const struct ethtool_ops gEthToolOpsVBoxNetAdp = - { - .get_drvinfo = vboxNetAdpEthGetDrvinfo, -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 20, 0) -+ .get_link_ksettings = vboxNetAdpEthGetSettings, -+#else - .get_settings = vboxNetAdpEthGetSettings, -+#endif - .get_link = ethtool_op_get_link, - }; - -@@ -200,8 +207,18 @@ static void vboxNetAdpEthGetDrvinfo(stru - "N/A"); - } - -- - /* ethtool_ops::get_settings */ -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 20, 0) -+static int vboxNetAdpEthGetSettings(struct net_device *pNetDev, struct ethtool_link_ksettings *link_ksettings) -+{ -+ link_ksettings->link_modes.supported[0] = 0; -+ ethtool_link_ksettings_zero_link_mode(link_ksettings, advertising); -+ link_ksettings->base.speed = SPEED_10; -+ link_ksettings->base.duplex = DUPLEX_FULL; -+ link_ksettings->base.port = PORT_TP; -+ link_ksettings->base.phy_address = 0; -+ link_ksettings->base.autoneg = AUTONEG_DISABLE; -+#else - static int vboxNetAdpEthGetSettings(struct net_device *pNetDev, struct ethtool_cmd *cmd) - { - cmd->supported = 0; -@@ -218,6 +235,7 @@ static int vboxNetAdpEthGetSettings(stru - cmd->autoneg = AUTONEG_DISABLE; - cmd->maxtxpkt = 0; - cmd->maxrxpkt = 0; -+#endif - return 0; - } - -Index: VirtualBox-5.2.22/src/VBox/Runtime/r0drv/linux/time-r0drv-linux.c -=================================================================== ---- VirtualBox-5.2.22.orig/src/VBox/Runtime/r0drv/linux/time-r0drv-linux.c -+++ VirtualBox-5.2.22/src/VBox/Runtime/r0drv/linux/time-r0drv-linux.c -@@ -171,11 +171,19 @@ RTDECL(PRTTIMESPEC) RTTimeNow(PRTTIMESPE - { - IPRT_LINUX_SAVE_EFL_AC(); - #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 16) -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 20, 0) -+ struct timespec64 Ts; -+ ktime_get_real_ts64(&Ts); -+#else - struct timespec Ts; - ktime_get_real_ts(&Ts); -+#endif - IPRT_LINUX_RESTORE_EFL_AC(); -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 20, 0) -+ return RTTimeSpecSetTimespec64(pTime, &Ts); -+#else - return RTTimeSpecSetTimespec(pTime, &Ts); -- -+#endif - #else /* < 2.6.16 */ - struct timeval Tv; - do_gettimeofday(&Tv); -Index: VirtualBox-5.2.22/include/iprt/time.h -=================================================================== ---- VirtualBox-5.2.22.orig/include/iprt/time.h -+++ VirtualBox-5.2.22/include/iprt/time.h -@@ -54,7 +54,6 @@ typedef struct RTTIMESPEC - int64_t i64NanosecondsRelativeToUnixEpoch; - } RTTIMESPEC; - -- - /** @name RTTIMESPEC methods - * @{ */ - -@@ -388,6 +387,7 @@ DECLINLINE(PRTTIMESPEC) RTTimeSpecSetTim - { - return RTTimeSpecAddMicro(RTTimeSpecSetSeconds(pTime, pTimeval->tv_sec), pTimeval->tv_usec); - } -+ - #endif /* various ways of detecting struct timeval */ - - -@@ -427,6 +427,25 @@ DECLINLINE(PRTTIMESPEC) RTTimeSpecSetTim - { - return RTTimeSpecAddNano(RTTimeSpecSetSeconds(pTime, pTimespec->tv_sec), pTimespec->tv_nsec); - } -+ -+#ifndef _LINUX_TIME64_H -+/* With kernel 4.20+, the second argument of time routines change from -+ * struct timespec to struct timespec64. This file is built twice, once -+ * in user mode, and once in kernel mode. In user mode, the struct is -+ * undefined, thus the following definition is provided. The guard macro -+ * from the kernels include/linux/time64.h is _LINUX_TIME64_H, thus -+ * the definition of that macro determines whether the struct is defined. -+ */ -+struct timespec64 { -+ long long tv_sec; /* seconds */ -+ long tv_nsec; /* nanoseconds */ -+}; -+#endif -+ -+DECLINLINE(PRTTIMESPEC) RTTimeSpecSetTimespec64(PRTTIMESPEC pTime, const struct timespec64 *pTimeval) -+{ -+ return RTTimeSpecAddMicro(RTTimeSpecSetSeconds(pTime, pTimeval->tv_sec), 1000 * pTimeval->tv_nsec); -+} - #endif /* various ways of detecting struct timespec */ - - -Index: VirtualBox-5.2.22/src/VBox/Additions/linux/drm/vbox_fb.c -=================================================================== ---- VirtualBox-5.2.22.orig/src/VBox/Additions/linux/drm/vbox_fb.c -+++ VirtualBox-5.2.22/src/VBox/Additions/linux/drm/vbox_fb.c -@@ -297,8 +297,12 @@ static int vboxfb_create(struct drm_fb_h - * The last flag forces a mode set on VT switches even if the kernel - * does not think it is needed. - */ -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 20, 0) -+ info->flags = FBINFO_DEFAULT | FBINFO_MISC_ALWAYS_SETPAR; -+#else - info->flags = FBINFO_DEFAULT | FBINFO_CAN_FORCE_OUTPUT | - FBINFO_MISC_ALWAYS_SETPAR; -+#endif - info->fbops = &vboxfb_ops; - - ret = fb_alloc_cmap(&info->cmap, 256, 0); diff --git a/fixes_for_Leap15.1.patch b/fixes_for_Leap15.1.patch new file mode 100644 index 0000000..239f416 --- /dev/null +++ b/fixes_for_Leap15.1.patch @@ -0,0 +1,17 @@ +Index: VirtualBox-5.2.24/src/VBox/Additions/linux/drm/vbox_drv.c +=================================================================== +--- VirtualBox-5.2.24.orig/src/VBox/Additions/linux/drm/vbox_drv.c ++++ VirtualBox-5.2.24/src/VBox/Additions/linux/drm/vbox_drv.c +@@ -264,12 +264,6 @@ static struct drm_driver driver = { + .lastclose = vbox_driver_lastclose, + .master_set = vbox_master_set, + .master_drop = vbox_master_drop, +-#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 18, 0) || defined(RHEL_73) +-# if LINUX_VERSION_CODE < KERNEL_VERSION(4, 14, 0) && !defined(RHEL_75) +- .set_busid = drm_pci_set_busid, +-# endif +-#endif +- + .fops = &vbox_fops, + .irq_handler = vbox_irq_handler, + .name = DRIVER_NAME, diff --git a/fixes_for_Qt5.11.patch b/fixes_for_Qt5.11.patch index 0977285..1f75bfe 100644 --- a/fixes_for_Qt5.11.patch +++ b/fixes_for_Qt5.11.patch @@ -1,7 +1,7 @@ -Index: VirtualBox-5.2.14/src/VBox/Frontends/VirtualBox/src/precomp_vcc.h +Index: VirtualBox-6.0.2/src/VBox/Frontends/VirtualBox/src/precomp_vcc.h =================================================================== ---- VirtualBox-5.2.14.orig/src/VBox/Frontends/VirtualBox/src/precomp_vcc.h -+++ VirtualBox-5.2.14/src/VBox/Frontends/VirtualBox/src/precomp_vcc.h +--- VirtualBox-6.0.2.orig/src/VBox/Frontends/VirtualBox/src/precomp_vcc.h ++++ VirtualBox-6.0.2/src/VBox/Frontends/VirtualBox/src/precomp_vcc.h @@ -83,6 +83,7 @@ #include #include @@ -10,15 +10,15 @@ Index: VirtualBox-5.2.14/src/VBox/Frontends/VirtualBox/src/precomp_vcc.h #include #include #include -Index: VirtualBox-5.2.14/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsProxy.cpp +Index: VirtualBox-6.0.2/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsProxy.cpp =================================================================== ---- VirtualBox-5.2.14.orig/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsProxy.cpp -+++ VirtualBox-5.2.14/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsProxy.cpp -@@ -22,6 +22,7 @@ +--- VirtualBox-6.0.2.orig/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsProxy.cpp ++++ VirtualBox-6.0.2/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsProxy.cpp +@@ -18,6 +18,7 @@ /* Qt includes: */ - # include - # include + #include + #include +#include /* GUI includes: */ - # include "QIWidgetValidator.h" + #include "QIWidgetValidator.h" diff --git a/fixes_for_gcc9 b/fixes_for_gcc9 deleted file mode 100644 index 157f96d..0000000 --- a/fixes_for_gcc9 +++ /dev/null @@ -1,26 +0,0 @@ -Index: VirtualBox-5.2.22/src/VBox/Runtime/r3/linux/semevent-linux.cpp -=================================================================== ---- VirtualBox-5.2.22.orig/src/VBox/Runtime/r3/linux/semevent-linux.cpp -+++ VirtualBox-5.2.22/src/VBox/Runtime/r3/linux/semevent-linux.cpp -@@ -37,7 +37,7 @@ - * against glibc < 2.6. - */ - #include "../posix/semevent-posix.cpp" --asm volatile (".global epoll_pwait"); -+asm (".global epoll_pwait"); - - #else /* glibc < 2.6 */ - -Index: VirtualBox-5.2.22/src/VBox/Runtime/r3/linux/semeventmulti-linux.cpp -=================================================================== ---- VirtualBox-5.2.22.orig/src/VBox/Runtime/r3/linux/semeventmulti-linux.cpp -+++ VirtualBox-5.2.22/src/VBox/Runtime/r3/linux/semeventmulti-linux.cpp -@@ -39,7 +39,7 @@ - * against glibc < 2.6. - */ - #include "../posix/semeventmulti-posix.cpp" --asm volatile (".global epoll_pwait"); -+asm (".global epoll_pwait"); - - #else /* glibc < 2.6 */ - diff --git a/internal-headers.patch b/internal-headers.patch index 27eb129..a326b87 100644 --- a/internal-headers.patch +++ b/internal-headers.patch @@ -1,7 +1,7 @@ -Index: VirtualBox-5.2.0/src/VBox/Additions/x11/vboxvideo/Makefile.kmk +Index: VirtualBox-6.0.2/src/VBox/Additions/x11/vboxvideo/Makefile.kmk =================================================================== ---- VirtualBox-5.2.0.orig/src/VBox/Additions/x11/vboxvideo/Makefile.kmk -+++ VirtualBox-5.2.0/src/VBox/Additions/x11/vboxvideo/Makefile.kmk +--- VirtualBox-6.0.2.orig/src/VBox/Additions/x11/vboxvideo/Makefile.kmk ++++ VirtualBox-6.0.2/src/VBox/Additions/x11/vboxvideo/Makefile.kmk @@ -23,6 +23,9 @@ vboxvideo_70_DEFS := \ ifeq ($(KBUILD_TARGET),solaris) # don't use .solaris or anything here. vboxvideo_70_DEFS += __EXTENSIONS__ ## @todo Why this? @@ -12,11 +12,11 @@ Index: VirtualBox-5.2.0/src/VBox/Additions/x11/vboxvideo/Makefile.kmk vboxvideo_13_DEFS := $(vboxvideo_70_DEFS) VBOXVIDEO_13 vboxvideo_15_DEFS := \ $(vboxvideo_13_DEFS) NO_ANSIC PCIACCESS XSERVER_LIBPCIACCESS _XORG_SERVER_H_ _DIX_CONFIG_H_ -Index: VirtualBox-5.2.0/src/VBox/Additions/x11/vboxvideo/edid.c +Index: VirtualBox-6.0.2/src/VBox/Additions/x11/vboxvideo/edid.c =================================================================== ---- VirtualBox-5.2.0.orig/src/VBox/Additions/x11/vboxvideo/edid.c -+++ VirtualBox-5.2.0/src/VBox/Additions/x11/vboxvideo/edid.c -@@ -36,10 +36,6 @@ +--- VirtualBox-6.0.2.orig/src/VBox/Additions/x11/vboxvideo/edid.c ++++ VirtualBox-6.0.2/src/VBox/Additions/x11/vboxvideo/edid.c +@@ -35,10 +35,6 @@ * Michael Thayer */ @@ -27,11 +27,11 @@ Index: VirtualBox-5.2.0/src/VBox/Additions/x11/vboxvideo/edid.c #include "misc.h" #include "xf86DDC.h" #include "xf86Crtc.h" -Index: VirtualBox-5.2.0/src/VBox/Additions/x11/vboxvideo/pointer.c +Index: VirtualBox-6.0.2/src/VBox/Additions/x11/vboxvideo/pointer.c =================================================================== ---- VirtualBox-5.2.0.orig/src/VBox/Additions/x11/vboxvideo/pointer.c -+++ VirtualBox-5.2.0/src/VBox/Additions/x11/vboxvideo/pointer.c -@@ -36,10 +36,6 @@ +--- VirtualBox-6.0.2.orig/src/VBox/Additions/x11/vboxvideo/pointer.c ++++ VirtualBox-6.0.2/src/VBox/Additions/x11/vboxvideo/pointer.c +@@ -39,10 +39,6 @@ #include "cursorstr.h" #include "servermd.h" @@ -42,13 +42,13 @@ Index: VirtualBox-5.2.0/src/VBox/Additions/x11/vboxvideo/pointer.c #include "vboxvideo.h" #ifdef XORG_7X -Index: VirtualBox-5.2.0/src/VBox/Additions/x11/vboxvideo/vboxvideo.h +Index: VirtualBox-6.0.2/src/VBox/Additions/x11/vboxvideo/vboxvideo.h =================================================================== ---- VirtualBox-5.2.0.orig/src/VBox/Additions/x11/vboxvideo/vboxvideo.h -+++ VirtualBox-5.2.0/src/VBox/Additions/x11/vboxvideo/vboxvideo.h +--- VirtualBox-6.0.2.orig/src/VBox/Additions/x11/vboxvideo/vboxvideo.h ++++ VirtualBox-6.0.2/src/VBox/Additions/x11/vboxvideo/vboxvideo.h @@ -42,8 +42,8 @@ - #ifndef _VBOXVIDEO_H_ - #define _VBOXVIDEO_H_ + # pragma once + #endif -#include -#include diff --git a/modify_for_4_8_bo_move.patch b/modify_for_4_8_bo_move.patch index 968c9a1..8302cc8 100644 --- a/modify_for_4_8_bo_move.patch +++ b/modify_for_4_8_bo_move.patch @@ -1,10 +1,10 @@ -Index: VirtualBox-5.2.0/src/VBox/Runtime/r0drv/linux/alloc-r0drv-linux.c +Index: VirtualBox-6.0.2/src/VBox/Runtime/r0drv/linux/alloc-r0drv-linux.c =================================================================== ---- VirtualBox-5.2.0.orig/src/VBox/Runtime/r0drv/linux/alloc-r0drv-linux.c -+++ VirtualBox-5.2.0/src/VBox/Runtime/r0drv/linux/alloc-r0drv-linux.c +--- VirtualBox-6.0.2.orig/src/VBox/Runtime/r0drv/linux/alloc-r0drv-linux.c ++++ VirtualBox-6.0.2/src/VBox/Runtime/r0drv/linux/alloc-r0drv-linux.c @@ -35,7 +35,7 @@ #include - #include + #include #include "r0drv/alloc-r0drv.h" - +#include diff --git a/remove_vbox_video_build.patch b/remove_vbox_video_build.patch index 2971b7b..7188c9b 100644 --- a/remove_vbox_video_build.patch +++ b/remove_vbox_video_build.patch @@ -1,7 +1,7 @@ -Index: VirtualBox-5.2.4/Makefile.kmk +Index: VirtualBox-5.2.24/Makefile.kmk =================================================================== ---- VirtualBox-5.2.4.orig/Makefile.kmk -+++ VirtualBox-5.2.4/Makefile.kmk +--- VirtualBox-5.2.24.orig/Makefile.kmk ++++ VirtualBox-5.2.24/Makefile.kmk @@ -701,7 +701,6 @@ VBOX_CORE_DOXYFILE_INPUT_DIRS = \ src/VBox/Additions/x11/vboxmouse \ src/VBox/Additions/x11/vboxmouse/xorg70 \ @@ -10,11 +10,11 @@ Index: VirtualBox-5.2.4/Makefile.kmk src/VBox/NetworkServices \ src/VBox/NetworkServices/DHCP \ src/VBox/NetworkServices/NAT \ -Index: VirtualBox-5.2.4/src/VBox/Additions/x11/vboxvideo/Makefile.kmk +Index: VirtualBox-5.2.24/src/VBox/Additions/x11/vboxvideo/Makefile.kmk =================================================================== ---- VirtualBox-5.2.4.orig/src/VBox/Additions/x11/vboxvideo/Makefile.kmk -+++ VirtualBox-5.2.4/src/VBox/Additions/x11/vboxvideo/Makefile.kmk -@@ -395,7 +395,8 @@ vboxvideo_drv_118_INCS += $(PATH_ROOT)/s +--- VirtualBox-5.2.24.orig/src/VBox/Additions/x11/vboxvideo/Makefile.kmk ++++ VirtualBox-5.2.24/src/VBox/Additions/x11/vboxvideo/Makefile.kmk +@@ -398,7 +398,8 @@ vboxvideo_drv_118_INCS += $(PATH_ROOT)/s vboxvideo_drv_118_SOURCES := $(vboxvideo_drv_17_SOURCES) vboxvideo_drv_118_LIBS += $(vboxvideo_drv_70_LIBS) @@ -24,10 +24,10 @@ Index: VirtualBox-5.2.4/src/VBox/Additions/x11/vboxvideo/Makefile.kmk # Build using local X.Org headers. We assume X.Org Server 1.7 or later. DLLS := $(filter-out vboxvideo_drv_%,$(DLLS)) vboxvideo_drv_system SYSMODS := $(filter-out vboxvideo_drv%,$(SYSMODS)) -Index: VirtualBox-5.2.4/src/VBox/Additions/x11/Makefile.kmk +Index: VirtualBox-5.2.24/src/VBox/Additions/x11/Makefile.kmk =================================================================== ---- VirtualBox-5.2.4.orig/src/VBox/Additions/x11/Makefile.kmk -+++ VirtualBox-5.2.4/src/VBox/Additions/x11/Makefile.kmk +--- VirtualBox-5.2.24.orig/src/VBox/Additions/x11/Makefile.kmk ++++ VirtualBox-5.2.24/src/VBox/Additions/x11/Makefile.kmk @@ -22,7 +22,7 @@ include $(KBUILD_PATH)/subheader.kmk if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) include $(PATH_SUB_CURRENT)/VBoxClient/Makefile.kmk diff --git a/switch_to_python3.4+.patch b/switch_to_python3.4+.patch index e0422bb..2176333 100644 --- a/switch_to_python3.4+.patch +++ b/switch_to_python3.4+.patch @@ -1,8 +1,8 @@ -Index: b/configure +Index: VirtualBox-6.0.2/configure =================================================================== ---- a/configure -+++ b/configure -@@ -1963,17 +1963,17 @@ extern "C" int main(void) +--- VirtualBox-6.0.2.orig/configure ++++ VirtualBox-6.0.2/configure +@@ -1969,17 +1969,17 @@ extern "C" int main(void) { Py_Initialize(); printf("found version %s", PY_VERSION); @@ -23,11 +23,11 @@ Index: b/configure for p in $PYTHONDIR; do for d in $SUPPYTHONLIBS; do for b in lib/x86_64-linux-gnu lib/i386-linux-gnu lib64 lib/64 lib; do -Index: b/src/VBox/Installer/linux/routines.sh +Index: VirtualBox-6.0.2/src/VBox/Installer/linux/routines.sh =================================================================== ---- a/src/VBox/Installer/linux/routines.sh -+++ b/src/VBox/Installer/linux/routines.sh -@@ -375,8 +375,8 @@ terminate_proc() { +--- VirtualBox-6.0.2.orig/src/VBox/Installer/linux/routines.sh ++++ VirtualBox-6.0.2/src/VBox/Installer/linux/routines.sh +@@ -391,8 +391,8 @@ terminate_proc() { maybe_run_python_bindings_installer() { VBOX_INSTALL_PATH="${1}" @@ -38,11 +38,11 @@ Index: b/src/VBox/Installer/linux/routines.sh if sys.version_info >= (2, 6): print \"test\"' 2> /dev/null`" != "test" ]; then echo 1>&2 "Python 2.6 or later not available, skipping bindings installation." -Index: b/src/bldprogs/scm.cpp +Index: VirtualBox-6.0.2/src/bldprogs/scm.cpp =================================================================== ---- a/src/bldprogs/scm.cpp -+++ b/src/bldprogs/scm.cpp -@@ -2033,7 +2033,7 @@ static int scmProcessFileInner(PSCMRWSTA +--- VirtualBox-6.0.2.orig/src/bldprogs/scm.cpp ++++ VirtualBox-6.0.2/src/bldprogs/scm.cpp +@@ -2206,7 +2206,7 @@ static int scmProcessFileInner(PSCMRWSTA pszTreatAs = "shell"; else if ( (cchFirst >= 15 && strncmp(pchFirst, "/usr/bin/python", 15) == 0) || (cchFirst >= 19 && strncmp(pchFirst, "/usr/bin/env python", 19) == 0) ) @@ -51,10 +51,10 @@ Index: b/src/bldprogs/scm.cpp else if ( (cchFirst >= 13 && strncmp(pchFirst, "/usr/bin/perl", 13) == 0) || (cchFirst >= 17 && strncmp(pchFirst, "/usr/bin/env perl", 17) == 0) ) pszTreatAs = "perl"; -Index: b/src/libs/libxml2-2.9.4/configure +Index: VirtualBox-6.0.2/src/libs/libxml2-2.9.4/configure =================================================================== ---- a/src/libs/libxml2-2.9.4/configure -+++ b/src/libs/libxml2-2.9.4/configure +--- VirtualBox-6.0.2.orig/src/libs/libxml2-2.9.4/configure ++++ VirtualBox-6.0.2/src/libs/libxml2-2.9.4/configure @@ -15153,10 +15153,10 @@ PYTHON_SITE_PACKAGES= PYTHON_TESTS= pythondir= @@ -79,11 +79,11 @@ Index: b/src/libs/libxml2-2.9.4/configure { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_PYTHON+:} false; then : -Index: b/src/VBox/ValidationKit/testboxscript/setup.sh +Index: VirtualBox-6.0.2/src/VBox/ValidationKit/testboxscript/setup.sh =================================================================== ---- a/src/VBox/ValidationKit/testboxscript/setup.sh -+++ b/src/VBox/ValidationKit/testboxscript/setup.sh -@@ -644,7 +644,7 @@ import sys;\ +--- VirtualBox-6.0.2.orig/src/VBox/ValidationKit/testboxscript/setup.sh ++++ VirtualBox-6.0.2/src/VBox/ValidationKit/testboxscript/setup.sh +@@ -652,7 +652,7 @@ import sys;\ x = sys.version_info[0] == 2 and (sys.version_info[1] >= 6 or (sys.version_info[1] == 5 and sys.version_info[2] >= 1));\ sys.exit(not x);\ "; @@ -92,10 +92,10 @@ Index: b/src/VBox/ValidationKit/testboxscript/setup.sh do python=`which ${python} 2> /dev/null` if [ -n "${python}" -a -x "${python}" ]; then -Index: b/src/VBox/Installer/linux/rpm/VirtualBox.tmpl.spec +Index: VirtualBox-6.0.2/src/VBox/Installer/linux/rpm/VirtualBox.tmpl.spec =================================================================== ---- a/src/VBox/Installer/linux/rpm/VirtualBox.tmpl.spec -+++ b/src/VBox/Installer/linux/rpm/VirtualBox.tmpl.spec +--- VirtualBox-6.0.2.orig/src/VBox/Installer/linux/rpm/VirtualBox.tmpl.spec ++++ VirtualBox-6.0.2/src/VBox/Installer/linux/rpm/VirtualBox.tmpl.spec @@ -20,7 +20,7 @@ %define %PYTHON% 1 %define VBOXDOCDIR %{_defaultdocdir}/%NAME% @@ -105,7 +105,7 @@ Index: b/src/VBox/Installer/linux/rpm/VirtualBox.tmpl.spec Summary: Oracle VM VirtualBox Name: %NAME% -@@ -82,7 +82,7 @@ install -m 755 -d $RPM_BUILD_ROOT/usr/sh +@@ -89,7 +89,7 @@ install -m 755 -d $RPM_BUILD_ROOT/usr/sh %if %{?with_python:1}%{!?with_python:0} (export VBOX_INSTALL_PATH=/usr/lib/virtualbox && \ cd ./sdk/installer && \ @@ -114,10 +114,10 @@ Index: b/src/VBox/Installer/linux/rpm/VirtualBox.tmpl.spec %endif rm -rf sdk/installer mv nls $RPM_BUILD_ROOT/usr/share/virtualbox -Index: b/src/libs/libxml2-2.9.4/libxml.spec.in +Index: VirtualBox-6.0.2/src/libs/libxml2-2.9.4/libxml.spec.in =================================================================== ---- a/src/libs/libxml2-2.9.4/libxml.spec.in -+++ b/src/libs/libxml2-2.9.4/libxml.spec.in +--- VirtualBox-6.0.2.orig/src/libs/libxml2-2.9.4/libxml.spec.in ++++ VirtualBox-6.0.2/src/libs/libxml2-2.9.4/libxml.spec.in @@ -101,11 +101,11 @@ rm -fr %{buildroot} make install DESTDIR=%{buildroot} @@ -133,10 +133,10 @@ Index: b/src/libs/libxml2-2.9.4/libxml.spec.in rm -f $RPM_BUILD_ROOT%{_libdir}/*.la -Index: b/src/libs/libxml2-2.9.4/libxml2.spec +Index: VirtualBox-6.0.2/src/libs/libxml2-2.9.4/libxml2.spec =================================================================== ---- a/src/libs/libxml2-2.9.4/libxml2.spec -+++ b/src/libs/libxml2-2.9.4/libxml2.spec +--- VirtualBox-6.0.2.orig/src/libs/libxml2-2.9.4/libxml2.spec ++++ VirtualBox-6.0.2/src/libs/libxml2-2.9.4/libxml2.spec @@ -103,7 +103,7 @@ make install DESTDIR=%{buildroot} %if 0%{?with_python3} @@ -146,26 +146,23 @@ Index: b/src/libs/libxml2-2.9.4/libxml2.spec make install DESTDIR=%{buildroot} %endif # with_python3 -Index: b/src/libs/xpcom18a4/python/src/ErrorUtils.cpp +Index: VirtualBox-6.0.2/src/libs/xpcom18a4/python/src/ErrorUtils.cpp =================================================================== ---- a/src/libs/xpcom18a4/python/src/ErrorUtils.cpp -+++ b/src/libs/xpcom18a4/python/src/ErrorUtils.cpp -@@ -439,8 +439,10 @@ char *PyTraceback_AsString(PyObject *exc +--- VirtualBox-6.0.2.orig/src/libs/xpcom18a4/python/src/ErrorUtils.cpp ++++ VirtualBox-6.0.2/src/libs/xpcom18a4/python/src/ErrorUtils.cpp +@@ -439,6 +439,8 @@ char *PyTraceback_AsString(PyObject *exc { // a temp scope so I can use temp locals. #if PY_MAJOR_VERSION <= 2 char *tempResult = PyString_AsString(obResult); --#else +#elif PY_MINOR_VERSION <= 6 - char *tempResult = PyUnicode_AsUTF8(obResult); -+#else -+ const char *tempResult = PyUnicode_AsUTF8(obResult); - #endif - result = (char *)PyMem_Malloc(strlen(tempResult)+1); - if (result==NULL) -Index: b/src/libs/xpcom18a4/python/src/PyGBase.cpp ++ char *tempResult = PyUnicode_AsUTF8(obResult); + #else + /* PyUnicode_AsUTF8() is const char * as of Python 3.7, char * earlier. */ + const char *tempResult = (const char *)PyUnicode_AsUTF8(obResult); +Index: VirtualBox-6.0.2/src/libs/xpcom18a4/python/src/PyGBase.cpp =================================================================== ---- a/src/libs/xpcom18a4/python/src/PyGBase.cpp -+++ b/src/libs/xpcom18a4/python/src/PyGBase.cpp +--- VirtualBox-6.0.2.orig/src/libs/xpcom18a4/python/src/PyGBase.cpp ++++ VirtualBox-6.0.2/src/libs/xpcom18a4/python/src/PyGBase.cpp @@ -183,7 +183,11 @@ PyG_Base::~PyG_Base() // Get the correct interface pointer for this object given the IID. void *PyG_Base::ThisAsIID( const nsIID &iid ) diff --git a/vbox-default-os-type.diff b/vbox-default-os-type.diff index 915f99f..986a955 100644 --- a/vbox-default-os-type.diff +++ b/vbox-default-os-type.diff @@ -1,16 +1,16 @@ -Index: VirtualBox-5.1.2/src/VBox/Frontends/VirtualBox/src/widgets/UINameAndSystemEditor.cpp +Index: VirtualBox-6.0.0/src/VBox/Frontends/VirtualBox/src/widgets/UINameAndSystemEditor.cpp =================================================================== ---- VirtualBox-5.1.2.orig/src/VBox/Frontends/VirtualBox/src/widgets/UINameAndSystemEditor.cpp -+++ VirtualBox-5.1.2/src/VBox/Frontends/VirtualBox/src/widgets/UINameAndSystemEditor.cpp -@@ -327,15 +327,15 @@ void UINameAndSystemEditor::sltFamilyCha +--- VirtualBox-6.0.0.orig/src/VBox/Frontends/VirtualBox/src/widgets/UINameAndSystemEditor.cpp ++++ VirtualBox-6.0.0/src/VBox/Frontends/VirtualBox/src/widgets/UINameAndSystemEditor.cpp +@@ -251,15 +251,15 @@ void UINameAndSystemEditor::sltFamilyCha if (iIndexWin7 != -1) m_pComboType->setCurrentIndex(iIndexWin7); } -- /* Or select Ubuntu item for Linux family as default: */ +- /* Or select Oracle Linux item for Linux family as default: */ + /* Or select openSUSE item for Linux family as default: */ - else if (strFamilyId == "Linux") + else if (m_strFamilyId == "Linux") { -- QString strDefaultID = "Ubuntu"; +- QString strDefaultID = "Oracle"; + QString strDefaultID = "openSUSE"; if (ARCH_BITS == 64 && m_fSupportsHWVirtEx && m_fSupportsLongMode) strDefaultID += "_64"; diff --git a/vbox-disable-updates.diff b/vbox-disable-updates.diff index 6d88fad..db86e39 100644 --- a/vbox-disable-updates.diff +++ b/vbox-disable-updates.diff @@ -1,7 +1,7 @@ -Index: VirtualBox-5.2.0/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsUpdate.cpp +Index: VirtualBox-6.0.0/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsUpdate.cpp =================================================================== ---- VirtualBox-5.2.0.orig/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsUpdate.cpp -+++ VirtualBox-5.2.0/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsUpdate.cpp +--- VirtualBox-6.0.0.orig/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsUpdate.cpp ++++ VirtualBox-6.0.0/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsUpdate.cpp @@ -110,8 +110,8 @@ void UIGlobalSettingsUpdate::getFromCach /* Get old update data from the cache: */ const UIDataSettingsGlobalUpdate &oldUpdateData = m_pCache->base(); @@ -13,11 +13,20 @@ Index: VirtualBox-5.2.0/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlob if (m_pCheckBoxUpdate->isChecked()) { m_pComboBoxUpdatePeriod->setCurrentIndex(oldUpdateData.m_periodIndex); -Index: VirtualBox-5.2.0/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialogSpecific.cpp +Index: VirtualBox-6.0.0/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialogSpecific.cpp =================================================================== ---- VirtualBox-5.2.0.orig/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialogSpecific.cpp -+++ VirtualBox-5.2.0/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialogSpecific.cpp -@@ -103,16 +103,6 @@ UISettingsDialogGlobal::UISettingsDialog +--- VirtualBox-6.0.0.orig/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialogSpecific.cpp ++++ VirtualBox-6.0.0/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialogSpecific.cpp +@@ -91,8 +91,6 @@ void UISettingsDialogGlobal::retranslate + m_pSelector->setItemText(GlobalSettingsPageType_Input, tr("Input")); + + #ifdef VBOX_GUI_WITH_NETWORK_MANAGER +- /* Update page: */ +- m_pSelector->setItemText(GlobalSettingsPageType_Update, tr("Update")); + #endif + + /* Language page: */ +@@ -208,16 +206,6 @@ void UISettingsDialogGlobal::prepare() iPageIndex, "#input", pSettingsPage); break; } @@ -34,12 +43,3 @@ Index: VirtualBox-5.2.0/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDia /* Language page: */ case GlobalSettingsPageType_Language: { -@@ -248,8 +238,6 @@ void UISettingsDialogGlobal::retranslate - m_pSelector->setItemText(GlobalSettingsPageType_Input, tr("Input")); - - #ifdef VBOX_GUI_WITH_NETWORK_MANAGER -- /* Update page: */ -- m_pSelector->setItemText(GlobalSettingsPageType_Update, tr("Update")); - #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ - - /* Language page: */ diff --git a/vbox-no-build-dates.diff b/vbox-no-build-dates.diff index af2375d..2c2df5b 100644 --- a/vbox-no-build-dates.diff +++ b/vbox-no-build-dates.diff @@ -1,7 +1,7 @@ -Index: VirtualBox-5.2.0/src/VBox/Frontends/VBoxFB/VBoxFB.cpp +Index: VirtualBox-6.0.0/src/VBox/Frontends/VBoxFB/VBoxFB.cpp =================================================================== ---- VirtualBox-5.2.0.orig/src/VBox/Frontends/VBoxFB/VBoxFB.cpp -+++ VirtualBox-5.2.0/src/VBox/Frontends/VBoxFB/VBoxFB.cpp +--- VirtualBox-6.0.0.orig/src/VBox/Frontends/VBoxFB/VBoxFB.cpp ++++ VirtualBox-6.0.0/src/VBox/Frontends/VBoxFB/VBoxFB.cpp @@ -62,7 +62,7 @@ int main(int argc, char *argv[]) printf("VirtualBox DirectFB GUI built %s %s\n" @@ -11,10 +11,10 @@ Index: VirtualBox-5.2.0/src/VBox/Frontends/VBoxFB/VBoxFB.cpp for (;;) { -Index: VirtualBox-5.2.0/src/VBox/Runtime/common/string/uniread.cpp +Index: VirtualBox-6.0.0/src/VBox/Runtime/common/string/uniread.cpp =================================================================== ---- VirtualBox-5.2.0.orig/src/VBox/Runtime/common/string/uniread.cpp -+++ VirtualBox-5.2.0/src/VBox/Runtime/common/string/uniread.cpp +--- VirtualBox-6.0.0.orig/src/VBox/Runtime/common/string/uniread.cpp ++++ VirtualBox-6.0.0/src/VBox/Runtime/common/string/uniread.cpp @@ -1036,7 +1036,7 @@ int PrintHeader(const char *argv0, const " * IPRT - Unicode Tables.\n" " *\n" @@ -24,10 +24,10 @@ Index: VirtualBox-5.2.0/src/VBox/Runtime/common/string/uniread.cpp " */\n" "\n" "/*\n" -Index: VirtualBox-5.2.0/src/libs/xpcom18a4/nsprpub/lib/libc/src/plvrsion.c +Index: VirtualBox-6.0.0/src/libs/xpcom18a4/nsprpub/lib/libc/src/plvrsion.c =================================================================== ---- VirtualBox-5.2.0.orig/src/libs/xpcom18a4/nsprpub/lib/libc/src/plvrsion.c -+++ VirtualBox-5.2.0/src/libs/xpcom18a4/nsprpub/lib/libc/src/plvrsion.c +--- VirtualBox-6.0.0.orig/src/libs/xpcom18a4/nsprpub/lib/libc/src/plvrsion.c ++++ VirtualBox-6.0.0/src/libs/xpcom18a4/nsprpub/lib/libc/src/plvrsion.c @@ -42,16 +42,13 @@ /**************************IDENTITY AND VERSIONING***********************/ /************************************************************************/ @@ -50,10 +50,10 @@ Index: VirtualBox-5.2.0/src/libs/xpcom18a4/nsprpub/lib/libc/src/plvrsion.c #if !defined(_PRODUCTION) #define _PRODUCTION "" #endif -Index: VirtualBox-5.2.0/src/libs/xpcom18a4/nsprpub/pr/src/prvrsion.c +Index: VirtualBox-6.0.0/src/libs/xpcom18a4/nsprpub/pr/src/prvrsion.c =================================================================== ---- VirtualBox-5.2.0.orig/src/libs/xpcom18a4/nsprpub/pr/src/prvrsion.c -+++ VirtualBox-5.2.0/src/libs/xpcom18a4/nsprpub/pr/src/prvrsion.c +--- VirtualBox-6.0.0.orig/src/libs/xpcom18a4/nsprpub/pr/src/prvrsion.c ++++ VirtualBox-6.0.0/src/libs/xpcom18a4/nsprpub/pr/src/prvrsion.c @@ -44,16 +44,10 @@ #ifndef XP_MAC #include "_pr_bld.h" @@ -73,10 +73,10 @@ Index: VirtualBox-5.2.0/src/libs/xpcom18a4/nsprpub/pr/src/prvrsion.c #if !defined(_PRODUCTION) #define _PRODUCTION "" #endif -Index: VirtualBox-5.2.0/src/libs/xpcom18a4/nsprpub/lib/prstreams/plvrsion.c +Index: VirtualBox-6.0.0/src/libs/xpcom18a4/nsprpub/lib/prstreams/plvrsion.c =================================================================== ---- VirtualBox-5.2.0.orig/src/libs/xpcom18a4/nsprpub/lib/prstreams/plvrsion.c -+++ VirtualBox-5.2.0/src/libs/xpcom18a4/nsprpub/lib/prstreams/plvrsion.c +--- VirtualBox-6.0.0.orig/src/libs/xpcom18a4/nsprpub/lib/prstreams/plvrsion.c ++++ VirtualBox-6.0.0/src/libs/xpcom18a4/nsprpub/lib/prstreams/plvrsion.c @@ -42,16 +42,13 @@ /**************************IDENTITY AND VERSIONING***********************/ /************************************************************************/ @@ -99,10 +99,10 @@ Index: VirtualBox-5.2.0/src/libs/xpcom18a4/nsprpub/lib/prstreams/plvrsion.c #if !defined(_PRODUCTION) #define _PRODUCTION "" #endif -Index: VirtualBox-5.2.0/src/libs/xpcom18a4/nsprpub/lib/ds/plvrsion.c +Index: VirtualBox-6.0.0/src/libs/xpcom18a4/nsprpub/lib/ds/plvrsion.c =================================================================== ---- VirtualBox-5.2.0.orig/src/libs/xpcom18a4/nsprpub/lib/ds/plvrsion.c -+++ VirtualBox-5.2.0/src/libs/xpcom18a4/nsprpub/lib/ds/plvrsion.c +--- VirtualBox-6.0.0.orig/src/libs/xpcom18a4/nsprpub/lib/ds/plvrsion.c ++++ VirtualBox-6.0.0/src/libs/xpcom18a4/nsprpub/lib/ds/plvrsion.c @@ -42,16 +42,13 @@ /**************************IDENTITY AND VERSIONING***********************/ /************************************************************************/ @@ -125,11 +125,11 @@ Index: VirtualBox-5.2.0/src/libs/xpcom18a4/nsprpub/lib/ds/plvrsion.c #if !defined(_PRODUCTION) #define _PRODUCTION "" #endif -Index: VirtualBox-5.2.0/src/VBox/HostServices/SharedOpenGL/OpenGLTest/OpenGLTestApp.cpp +Index: VirtualBox-6.0.0/src/VBox/HostServices/SharedOpenGL/OpenGLTest/OpenGLTestApp.cpp =================================================================== ---- VirtualBox-5.2.0.orig/src/VBox/HostServices/SharedOpenGL/OpenGLTest/OpenGLTestApp.cpp -+++ VirtualBox-5.2.0/src/VBox/HostServices/SharedOpenGL/OpenGLTest/OpenGLTestApp.cpp -@@ -148,7 +148,7 @@ static int vboxInitLogging(const char *p +--- VirtualBox-6.0.0.orig/src/VBox/HostServices/SharedOpenGL/OpenGLTest/OpenGLTestApp.cpp ++++ VirtualBox-6.0.0/src/VBox/HostServices/SharedOpenGL/OpenGLTest/OpenGLTestApp.cpp +@@ -147,7 +147,7 @@ static int vboxInitLogging(const char *p #endif "Log opened %s\n", VBOX_VERSION_STRING, RTBldCfgRevision(), VBOX_BUILD_TARGET, @@ -138,11 +138,11 @@ Index: VirtualBox-5.2.0/src/VBox/HostServices/SharedOpenGL/OpenGLTest/OpenGLTest vrc = RTSystemQueryOSInfo(RTSYSOSINFO_PRODUCT, szTmp, sizeof(szTmp)); if (RT_SUCCESS(vrc) || vrc == VERR_BUFFER_OVERFLOW) -Index: VirtualBox-5.2.0/src/VBox/Devices/PC/BIOS/bios.c +Index: VirtualBox-6.0.0/src/VBox/Devices/PC/BIOS/bios.c =================================================================== ---- VirtualBox-5.2.0.orig/src/VBox/Devices/PC/BIOS/bios.c -+++ VirtualBox-5.2.0/src/VBox/Devices/PC/BIOS/bios.c -@@ -159,7 +159,7 @@ void set_mode(uint8_t mode); +--- VirtualBox-6.0.0.orig/src/VBox/Devices/PC/BIOS/bios.c ++++ VirtualBox-6.0.0/src/VBox/Devices/PC/BIOS/bios.c +@@ -143,7 +143,7 @@ void set_mode(uint8_t mode); #define BX_PCIBIOS 1 #define BX_APPNAME "VirtualBox" @@ -151,10 +151,10 @@ Index: VirtualBox-5.2.0/src/VBox/Devices/PC/BIOS/bios.c //-------------------------------------------------------------------------- // print_bios_banner // displays a the bios version -Index: VirtualBox-5.2.0/src/VBox/Additions/common/VBoxService/VBoxService.cpp +Index: VirtualBox-6.0.0/src/VBox/Additions/common/VBoxService/VBoxService.cpp =================================================================== ---- VirtualBox-5.2.0.orig/src/VBox/Additions/common/VBoxService/VBoxService.cpp -+++ VirtualBox-5.2.0/src/VBox/Additions/common/VBoxService/VBoxService.cpp +--- VirtualBox-6.0.0.orig/src/VBox/Additions/common/VBoxService/VBoxService.cpp ++++ VirtualBox-6.0.0/src/VBox/Additions/common/VBoxService/VBoxService.cpp @@ -242,7 +242,7 @@ static DECLCALLBACK(void) vgsvcLogHeader "VBoxService %s r%s (verbosity: %u) %s (%s %s) release log\n" "Log opened %s\n", @@ -164,3 +164,235 @@ Index: VirtualBox-5.2.0/src/VBox/Additions/common/VBoxService/VBoxService.cpp int vrc = RTSystemQueryOSInfo(RTSYSOSINFO_PRODUCT, szTmp, sizeof(szTmp)); if (RT_SUCCESS(vrc) || vrc == VERR_BUFFER_OVERFLOW) +Index: VirtualBox-6.0.0/src/VBox/ExtPacks/BusMouseSample/Makefile.kmk +=================================================================== +--- VirtualBox-6.0.0.orig/src/VBox/ExtPacks/BusMouseSample/Makefile.kmk ++++ VirtualBox-6.0.0/src/VBox/ExtPacks/BusMouseSample/Makefile.kmk +@@ -187,7 +187,7 @@ $(VBOX_PATH_PACKAGES)/$(VBOX_BUSMOUSE_MA + $(VBoxBusMouseIns_0_OUTDIR)/Stage/ExtPack.manifest \ + $(VBoxBusMouseIns_0_OUTDIR)/Stage/ExtPack.signature + # Tar it up. +- tar -cvf - -C $(VBoxBusMouseIns_0_OUTDIR)/Stage/ . | gzip -9c > $@ ++ tar -cvf - -C $(VBoxBusMouseIns_0_OUTDIR)/Stage/ . | gzip -9nc > $@ + # Clean up + $(RM) -Rf $(VBoxBusMouseIns_0_OUTDIR)/Stage/ + +Index: VirtualBox-6.0.0/src/VBox/ExtPacks/Skeleton/Makefile.kmk +=================================================================== +--- VirtualBox-6.0.0.orig/src/VBox/ExtPacks/Skeleton/Makefile.kmk ++++ VirtualBox-6.0.0/src/VBox/ExtPacks/Skeleton/Makefile.kmk +@@ -161,7 +161,7 @@ $(VBOX_PATH_PACKAGES)/$(VBOX_SKELETON_MA + $(VBoxSkeletonIns_0_OUTDIR)/Stage/ExtPack.manifest \ + $(VBoxSkeletonIns_0_OUTDIR)/Stage/ExtPack.signature + # Tar it up. +- tar -cvf - -C $(VBoxSkeletonIns_0_OUTDIR)/Stage/ . | gzip -9c > $@ ++ tar -cvf - -C $(VBoxSkeletonIns_0_OUTDIR)/Stage/ . | gzip -9nc > $@ + # Clean up + $(RM) -Rf $(VBoxSkeletonIns_0_OUTDIR)/Stage/ + +Index: VirtualBox-6.0.0/src/VBox/ExtPacks/VBoxDTrace/Makefile.kmk +=================================================================== +--- VirtualBox-6.0.0.orig/src/VBox/ExtPacks/VBoxDTrace/Makefile.kmk ++++ VirtualBox-6.0.0/src/VBox/ExtPacks/VBoxDTrace/Makefile.kmk +@@ -342,7 +342,7 @@ if defined(VBOX_WITH_EXTPACK_VBOXDTRACE) + $(VBoxDTraceIns_0_OUTDIR)/Stage/ExtPack.manifest \ + $(VBoxDTraceIns_0_OUTDIR)/Stage/ExtPack.signature + # Tar it up. +- tar -cvf - -C $(VBoxDTraceIns_0_OUTDIR)/Stage/ . | gzip -9c > $@ ++ tar -cvf - -C $(VBoxDTraceIns_0_OUTDIR)/Stage/ . | gzip -9nc > $@ + # Clean up + $(RM) -Rf $(VBoxDTraceIns_0_OUTDIR)/Stage/ + +Index: VirtualBox-6.0.0/src/VBox/ExtPacks/VNC/Makefile.kmk +=================================================================== +--- VirtualBox-6.0.0.orig/src/VBox/ExtPacks/VNC/Makefile.kmk ++++ VirtualBox-6.0.0/src/VBox/ExtPacks/VNC/Makefile.kmk +@@ -154,7 +154,7 @@ $(VBOX_PATH_PACKAGES)/$(VBOX_VNC_MANGLED + $(VBoxVNCIns_0_OUTDIR)/Stage/ExtPack.manifest \ + $(VBoxVNCIns_0_OUTDIR)/Stage/ExtPack.signature + # Tar it up. +- tar -cvf - -C $(VBoxVNCIns_0_OUTDIR)/Stage/ . | gzip -9c > $@ ++ tar -cvf - -C $(VBoxVNCIns_0_OUTDIR)/Stage/ . | gzip -9nc > $@ + # Clean up + $(RM) -Rf $(VBoxVNCIns_0_OUTDIR)/Stage/ + +Index: VirtualBox-6.0.0/src/VBox/Additions/common/VBoxGuest/VBoxGuest-win.cpp +=================================================================== +--- VirtualBox-6.0.0.orig/src/VBox/Additions/common/VBoxGuest/VBoxGuest-win.cpp ++++ VirtualBox-6.0.0/src/VBox/Additions/common/VBoxGuest/VBoxGuest-win.cpp +@@ -316,7 +316,7 @@ NTSTATUS DriverEntry(PDRIVER_OBJECT pDrv + } + VGDrvCommonInitLoggers(); + +- LogFunc(("Driver built: %s %s\n", __DATE__, __TIME__)); ++ LogFunc(("Driver built: %s %s\n", "no date", "no time")); + + /* + * Check if the NT version is supported and initialize g_enmVGDrvNtVer. +Index: VirtualBox-6.0.0/src/VBox/Additions/linux/lightdm-greeter/vbox-greeter.cpp +=================================================================== +--- VirtualBox-6.0.0.orig/src/VBox/Additions/linux/lightdm-greeter/vbox-greeter.cpp ++++ VirtualBox-6.0.0/src/VBox/Additions/linux/lightdm-greeter/vbox-greeter.cpp +@@ -872,7 +872,7 @@ static DECLCALLBACK(void) vboxGreeterLog + "vbox-greeter %s r%s (verbosity: %d) %s (%s %s) release log\n" + "Log opened %s\n", + RTBldCfgVersion(), RTBldCfgRevisionStr(), g_iVerbosity, VBOX_BUILD_TARGET, +- __DATE__, __TIME__, szTmp); ++ "no date", "no time", szTmp); + + int vrc = RTSystemQueryOSInfo(RTSYSOSINFO_PRODUCT, szTmp, sizeof(szTmp)); + if (RT_SUCCESS(vrc) || vrc == VERR_BUFFER_OVERFLOW) +Index: VirtualBox-6.0.0/src/VBox/Additions/solaris/Mouse/vboxms.c +=================================================================== +--- VirtualBox-6.0.0.orig/src/VBox/Additions/solaris/Mouse/vboxms.c ++++ VirtualBox-6.0.0/src/VBox/Additions/solaris/Mouse/vboxms.c +@@ -256,7 +256,7 @@ static VBMSSTATE g_OpenNodeSt + int _init(void) + { + int rc; +- LogRelFlow((DEVICE_NAME ": built on " __DATE__ " at " __TIME__ "\n")); ++ LogRelFlow((DEVICE_NAME ": built on " "no date" " at " "no time" "\n")); + mutex_init(&g_OpenNodeState.InitMtx, NULL, MUTEX_DRIVER, NULL); + /* + * Prevent module autounloading. +Index: VirtualBox-6.0.0/src/VBox/Devices/EFI/Firmware/BaseTools/Source/C/GenVtf/GenVtf.h +=================================================================== +--- VirtualBox-6.0.0.orig/src/VBox/Devices/EFI/Firmware/BaseTools/Source/C/GenVtf/GenVtf.h ++++ VirtualBox-6.0.0/src/VBox/Devices/EFI/Firmware/BaseTools/Source/C/GenVtf/GenVtf.h +@@ -102,7 +102,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF + // + #define UTILITY_MAJOR_VERSION 0 + #define UTILITY_MINOR_VERSION 1 +-#define UTILITY_DATE __DATE__ ++#define UTILITY_DATE "no date" + + // + // The maximum number of arguments accepted from the command line. +Index: VirtualBox-6.0.0/src/VBox/Devices/EFI/Firmware/BaseTools/Source/C/VolInfo/VolInfo.c +=================================================================== +--- VirtualBox-6.0.0.orig/src/VBox/Devices/EFI/Firmware/BaseTools/Source/C/VolInfo/VolInfo.c ++++ VirtualBox-6.0.0/src/VBox/Devices/EFI/Firmware/BaseTools/Source/C/VolInfo/VolInfo.c +@@ -170,7 +170,7 @@ Returns: + UTILITY_MAJOR_VERSION, + UTILITY_MINOR_VERSION, + __BUILD_VERSION, +- __DATE__ ++ "no date" + ); + + // +Index: VirtualBox-6.0.0/src/VBox/HostDrivers/VBoxUSB/win/dev/VBoxUsbDev.cpp +=================================================================== +--- VirtualBox-6.0.0.orig/src/VBox/HostDrivers/VBoxUSB/win/dev/VBoxUsbDev.cpp ++++ VirtualBox-6.0.0/src/VBox/HostDrivers/VBoxUSB/win/dev/VBoxUsbDev.cpp +@@ -118,7 +118,7 @@ static NTSTATUS vboxUsbDdiAddDevice(PDRI + static VOID vboxUsbDdiUnload(PDRIVER_OBJECT pDriverObject) + { + RT_NOREF1(pDriverObject); +- LogRel(("VBoxUsb::DriverUnload. Built Date (%s) Time (%s)\n", __DATE__, __TIME__)); ++ LogRel(("VBoxUsb::DriverUnload. Built Date (%s) Time (%s)\n", "no date", "no time")); + VBoxDrvToolStrFree(&g_VBoxUsbGlobals.RegPath); + + vboxUsbRtGlobalsTerm(); +@@ -274,7 +274,7 @@ RT_C_DECLS_END + + NTSTATUS DriverEntry(IN PDRIVER_OBJECT pDriverObject, IN PUNICODE_STRING pRegistryPath) + { +- LogRel(("VBoxUsb::DriverEntry. Built Date (%s) Time (%s)\n", __DATE__, __TIME__)); ++ LogRel(("VBoxUsb::DriverEntry. Built Date (%s) Time (%s)\n", "no date", "no time")); + + NTSTATUS Status = vboxUsbRtGlobalsInit(); + Assert(Status == STATUS_SUCCESS); +Index: VirtualBox-6.0.0/src/VBox/HostDrivers/VBoxUSB/win/mon/VBoxUsbMon.cpp +=================================================================== +--- VirtualBox-6.0.0.orig/src/VBox/HostDrivers/VBoxUSB/win/mon/VBoxUsbMon.cpp ++++ VirtualBox-6.0.0/src/VBox/HostDrivers/VBoxUSB/win/mon/VBoxUsbMon.cpp +@@ -1936,7 +1936,7 @@ NTSTATUS _stdcall DriverEntry(PDRIVER_OB + RTLogDestinations(0, "debugger"); + #endif + +- LOGREL(("Built %s %s", __DATE__, __TIME__)); ++ LOGREL(("Built %s %s", "no date", "no time")); + + memset (&g_VBoxUsbMonGlobals, 0, sizeof (g_VBoxUsbMonGlobals)); + #ifdef VBOX_USB3PORT +Index: VirtualBox-6.0.0/src/VBox/Main/glue/VBoxLogRelCreate.cpp +=================================================================== +--- VirtualBox-6.0.0.orig/src/VBox/Main/glue/VBoxLogRelCreate.cpp ++++ VirtualBox-6.0.0/src/VBox/Main/glue/VBoxLogRelCreate.cpp +@@ -61,7 +61,7 @@ static DECLCALLBACK(void) vboxHeaderFoot + #endif + "Log opened %s\n", + g_pszLogEntity, VBOX_VERSION_STRING, RTBldCfgRevision(), +- RTBldCfgTargetDotArch(), __DATE__, __TIME__, szTmp); ++ RTBldCfgTargetDotArch(), "no date", "no time", szTmp); + + pfnLog(pReleaseLogger, "Build Type: %s\n", KBUILD_TYPE); + int vrc = RTSystemQueryOSInfo(RTSYSOSINFO_PRODUCT, szTmp, sizeof(szTmp)); +Index: VirtualBox-6.0.0/src/libs/xpcom18a4/nsprpub/pr/tests/depend.c +=================================================================== +--- VirtualBox-6.0.0.orig/src/libs/xpcom18a4/nsprpub/pr/tests/depend.c ++++ VirtualBox-6.0.0/src/libs/xpcom18a4/nsprpub/pr/tests/depend.c +@@ -141,7 +141,7 @@ int main(int argc, char **argv) + { + PRIntn tab = 0; + const PRVersionInfo *info = DummyLibVersion(); +- const char *buildDate = __DATE__, *buildTime = __TIME__; ++ const char *buildDate = "no date", *buildTime = "no time"; + + printf("Depend.c build time is %s %s\n", buildDate, buildTime); + +Index: VirtualBox-6.0.0/src/libs/xpcom18a4/xpcom/tests/StringFactoringTests/profile_main.cpp +=================================================================== +--- VirtualBox-6.0.0.orig/src/libs/xpcom18a4/xpcom/tests/StringFactoringTests/profile_main.cpp ++++ VirtualBox-6.0.0/src/libs/xpcom18a4/xpcom/tests/StringFactoringTests/profile_main.cpp +@@ -458,7 +458,7 @@ int + main() + { + +- cout << "String performance profiling. Compiled " __DATE__ " " __TIME__ << endl; ++ cout << "String performance profiling. Compiled nodate no time" << endl; + #ifdef TEST_STD_STRING + cout << "Testing std::string." << endl; + #else +Index: VirtualBox-6.0.0/src/libs/xpcom18a4/xpcom/tests/StringFactoringTests/test_main.cpp +=================================================================== +--- VirtualBox-6.0.0.orig/src/libs/xpcom18a4/xpcom/tests/StringFactoringTests/test_main.cpp ++++ VirtualBox-6.0.0/src/libs/xpcom18a4/xpcom/tests/StringFactoringTests/test_main.cpp +@@ -425,7 +425,7 @@ int + main() + { + int tests_failed = 0; +- cout << "String unit tests. Compiled " __DATE__ " " __TIME__ << endl; ++ cout << "String unit tests. Compiled no date no time" << endl; + + #if 0 + { +Index: VirtualBox-6.0.0/src/libs/xpcom18a4/xpcom/tests/TestCOMPtr.cpp +=================================================================== +--- VirtualBox-6.0.0.orig/src/libs/xpcom18a4/xpcom/tests/TestCOMPtr.cpp ++++ VirtualBox-6.0.0/src/libs/xpcom18a4/xpcom/tests/TestCOMPtr.cpp +@@ -102,7 +102,7 @@ class test_message + public: + test_message() + { +- printf("BEGIN unit tests for |nsCOMPtr|, compiled " __DATE__ "\n"); ++ printf("BEGIN unit tests for |nsCOMPtr|, compiled no date\n"); + } + + ~test_message() +Index: VirtualBox-6.0.0/src/VBox/Additions/3D/mesa/mesa-17.3.9/src/util/build_id.c +=================================================================== +--- VirtualBox-6.0.0.orig/src/VBox/Additions/3D/mesa/mesa-17.3.9/src/util/build_id.c ++++ VirtualBox-6.0.0/src/VBox/Additions/3D/mesa/mesa-17.3.9/src/util/build_id.c +@@ -29,9 +29,8 @@ + + #include "build_id.h" + +-#ifndef NT_GNU_BUILD_ID ++#undef NT_GNU_BUILD_ID + #define NT_GNU_BUILD_ID 3 +-#endif + + #ifndef ElfW + #define ElfW(type) Elf_##type diff --git a/vbox-vboxadd-init-script.diff b/vbox-vboxadd-init-script.diff index f4e97e8..7a0fa85 100644 --- a/vbox-vboxadd-init-script.diff +++ b/vbox-vboxadd-init-script.diff @@ -1,7 +1,7 @@ -Index: VirtualBox-5.2.22/src/VBox/Additions/linux/installer/vboxadd.sh +Index: VirtualBox-6.0.0/src/VBox/Additions/linux/installer/vboxadd.sh =================================================================== ---- VirtualBox-5.2.22.orig/src/VBox/Additions/linux/installer/vboxadd.sh -+++ VirtualBox-5.2.22/src/VBox/Additions/linux/installer/vboxadd.sh +--- VirtualBox-6.0.0.orig/src/VBox/Additions/linux/installer/vboxadd.sh ++++ VirtualBox-6.0.0/src/VBox/Additions/linux/installer/vboxadd.sh @@ -26,11 +26,14 @@ # Provides: vboxadd # Required-Start: @@ -18,7 +18,7 @@ Index: VirtualBox-5.2.22/src/VBox/Additions/linux/installer/vboxadd.sh ### END INIT INFO ## @todo This file duplicates a lot of script with vboxdrv.sh. When making -@@ -139,18 +142,9 @@ module_build_log() +@@ -141,18 +144,9 @@ module_build_log() dev=/dev/vboxguest userdev=/dev/vboxuser @@ -37,7 +37,7 @@ Index: VirtualBox-5.2.22/src/VBox/Additions/linux/installer/vboxadd.sh running_vboxguest() { lsmod | grep -q "vboxguest[^_-]" -@@ -193,12 +187,6 @@ do_vboxguest_non_udev() +@@ -195,12 +189,6 @@ do_vboxguest_non_udev() fail "Cannot create device $dev with major $maj and minor $min" } fi @@ -50,7 +50,7 @@ Index: VirtualBox-5.2.22/src/VBox/Additions/linux/installer/vboxadd.sh if [ ! -c $userdev ]; then maj=10 -@@ -209,12 +197,6 @@ do_vboxguest_non_udev() +@@ -211,12 +199,6 @@ do_vboxguest_non_udev() rmmod vboxguest 2>/dev/null fail "Cannot create device $userdev with major $maj and minor $min" } @@ -63,54 +63,29 @@ Index: VirtualBox-5.2.22/src/VBox/Additions/linux/installer/vboxadd.sh fi fi } -@@ -224,9 +206,8 @@ start() +@@ -224,10 +206,9 @@ do_vboxguest_non_udev() + start() + { begin "Starting." - # If we got this far assume that the slow set-up has been done. - QUICKSETUP=start - if test -z "${INSTALL_NO_MODULE_BUILDS}"; then -- uname -r | grep -q -E '^2\.6|^3|^4' 2>/dev/null && +- setup --quick ++ setup --quick + test -d /sys && - ps -A -o comm | grep -q '/*udevd$' 2>/dev/null || -+ uname -r | grep -q -E '^2\.6|^3|^4' 2>/dev/null && + ps -A -o comm | grep -q '/*udevd$' 2>/dev/null || no_udev=1 running_vboxguest || { rm -f $dev || { -@@ -239,7 +220,7 @@ start() - - $MODPROBE vboxguest >/dev/null 2>&1 || { - setup -- $MODPROBE vboxguest >/dev/null 2>&1 || -+ $MODPROBE vboxguest >/dev/null 2>&1 || { - fail "modprobe vboxguest failed" +@@ -236,7 +217,7 @@ start() + rm -f $userdev || { + fail "Cannot remove $userdev" } +- $MODPROBE vboxguest >/dev/null 2>&1 || ++ $MODPROBE vboxguest >/dev/null 2>&1 || { + fail "modprobe vboxguest failed" case "$no_udev" in 1) -@@ -284,7 +265,8 @@ start() - fi - if test -n "${setup_gl}"; then - mkdir -p /var/lib/VBoxGuestAdditions/lib -- ln -sf "${INSTALL_DIR}/lib/VBoxOGL.so" /var/lib/VBoxGuestAdditions/lib/libGL.so.1 -+ ln -sf "/usr/lib64/VBoxOGL.so" /var/lib/VBoxGuestAdditions/lib/libGL.so.1 -+ ln -sf "/usr/lib64/VBoxEGL.so" /var/lib/VBoxGuestAdditions/lib/libEGL.so.1 - # SELinux for the OpenGL libraries, so that gdm can load them during the - # acceleration support check. This prevents an "Oh no, something has gone - # wrong!" error when starting EL7 guests. -@@ -295,6 +277,15 @@ start() - chcon -h -t lib_t "/var/lib/VBoxGuestAdditions/lib/libGL.so.1" - fi - echo "/var/lib/VBoxGuestAdditions/lib" > /etc/ld.so.conf.d/00vboxvideo.conf -+ # The above code will enable 3D acceleration for Gnome VM desktops. For Plasma 5 (KDE) -+ # VM's almost everything breaks. For that reason, acceleration MUST be disabled here. -+ # Gnome users that want this feature should delete the two 'rm' commands that follow. -+ # You will need to repeat this modification EVERY time the VirtualBox package is -+ # reinstalled -+ # Any KDE user that deletes the two 'rm' commands MUST know how to recover your sustem -+ # from a mode 3 boot. YOU HAVE BEEN WARNED. -+ rm /var/lib/VBoxGuestAdditions/lib/* -+ rm /etc/ld.so.conf.d/00vboxvideo.conf - fi - ldconfig - -@@ -488,9 +479,9 @@ create_udev_rule() + sleep .5;; +@@ -434,9 +415,9 @@ create_udev_rule() echo "KERNEL=${udev_fix}\"vboxuser\", NAME=\"vboxuser\", OWNER=\"vboxadd\", MODE=\"0666\"" >> /etc/udev/rules.d/60-vboxadd.rules fi } @@ -123,7 +98,7 @@ Index: VirtualBox-5.2.22/src/VBox/Additions/linux/installer/vboxadd.sh # And a post-installation script for rebuilding modules when a new kernel # is installed. mkdir -p /etc/kernel/postinst.d /etc/kernel/prerm.d -@@ -521,20 +512,13 @@ shared_folder_setup() +@@ -467,20 +448,13 @@ shared_folder_setup() ## @todo It would be nicer if the kernel module just parsed parameters # itself instead of needing a separate binary to do that. ln -sf "${INSTALL_DIR}/other/mount.vboxsf" /sbin @@ -146,7 +121,7 @@ Index: VirtualBox-5.2.22/src/VBox/Additions/linux/installer/vboxadd.sh export BUILD_TYPE export USERNAME -@@ -551,16 +535,33 @@ setup() +@@ -517,16 +491,33 @@ setup() shared_folder_setup if running_vboxguest || running_vboxadd; then info "Running kernel modules will not be replaced until the system is restarted" @@ -185,7 +160,7 @@ Index: VirtualBox-5.2.22/src/VBox/Additions/linux/installer/vboxadd.sh depmod # Remove old module sources -@@ -570,13 +571,14 @@ cleanup() +@@ -536,12 +527,13 @@ cleanup() fi # Clean-up X11-related bits @@ -193,7 +168,6 @@ Index: VirtualBox-5.2.22/src/VBox/Additions/linux/installer/vboxadd.sh + #/sbin/rcvboxadd-x11 cleanup # Remove other files - rm /sbin/mount.vboxsf 2>/dev/null - if test -z "${INSTALL_NO_MODULE_BUILDS}"; then - rm -f /etc/kernel/postinst.d/vboxadd /etc/kernel/prerm.d/vboxadd - rmdir -p /etc/kernel/postinst.d /etc/kernel/prerm.d 2>/dev/null @@ -202,12 +176,12 @@ Index: VirtualBox-5.2.22/src/VBox/Additions/linux/installer/vboxadd.sh + rm -f /etc/kernel/postinst.d/vboxadd /etc/kernel/prerm.d/vboxadd + rmdir -p /etc/kernel/postinst.d /etc/kernel/prerm.d 2>/dev/null fi + rm /sbin/mount.vboxsf 2>/dev/null rm /etc/udev/rules.d/60-vboxadd.rules 2>/dev/null - } -Index: VirtualBox-5.2.22/src/VBox/Additions/linux/installer/vboxadd-service.sh +Index: VirtualBox-6.0.0/src/VBox/Additions/linux/installer/vboxadd-service.sh =================================================================== ---- VirtualBox-5.2.22.orig/src/VBox/Additions/linux/installer/vboxadd-service.sh -+++ VirtualBox-5.2.22/src/VBox/Additions/linux/installer/vboxadd-service.sh +--- VirtualBox-6.0.0.orig/src/VBox/Additions/linux/installer/vboxadd-service.sh ++++ VirtualBox-6.0.0/src/VBox/Additions/linux/installer/vboxadd-service.sh @@ -26,7 +26,7 @@ # Provides: vboxadd-service # Required-Start: vboxadd @@ -217,10 +191,10 @@ Index: VirtualBox-5.2.22/src/VBox/Additions/linux/installer/vboxadd-service.sh # Default-Stop: 0 1 6 # X-Conflicts-With: systemd-timesyncd.service # Description: VirtualBox Additions Service -Index: VirtualBox-5.2.22/src/VBox/Installer/linux/vboxautostart-service.sh +Index: VirtualBox-6.0.0/src/VBox/Installer/linux/vboxautostart-service.sh =================================================================== ---- VirtualBox-5.2.22.orig/src/VBox/Installer/linux/vboxautostart-service.sh -+++ VirtualBox-5.2.22/src/VBox/Installer/linux/vboxautostart-service.sh +--- VirtualBox-6.0.0.orig/src/VBox/Installer/linux/vboxautostart-service.sh ++++ VirtualBox-6.0.0/src/VBox/Installer/linux/vboxautostart-service.sh @@ -23,7 +23,7 @@ # Provides: vboxautostart-service # Required-Start: vboxdrv @@ -230,10 +204,10 @@ Index: VirtualBox-5.2.22/src/VBox/Installer/linux/vboxautostart-service.sh # Default-Stop: 0 1 6 # Description: VirtualBox autostart service ### END INIT INFO -Index: VirtualBox-5.2.22/src/VBox/Installer/linux/vboxballoonctrl-service.sh +Index: VirtualBox-6.0.0/src/VBox/Installer/linux/vboxballoonctrl-service.sh =================================================================== ---- VirtualBox-5.2.22.orig/src/VBox/Installer/linux/vboxballoonctrl-service.sh -+++ VirtualBox-5.2.22/src/VBox/Installer/linux/vboxballoonctrl-service.sh +--- VirtualBox-6.0.0.orig/src/VBox/Installer/linux/vboxballoonctrl-service.sh ++++ VirtualBox-6.0.0/src/VBox/Installer/linux/vboxballoonctrl-service.sh @@ -23,7 +23,7 @@ # Provides: vboxballoonctrl-service # Required-Start: vboxdrv @@ -243,10 +217,10 @@ Index: VirtualBox-5.2.22/src/VBox/Installer/linux/vboxballoonctrl-service.sh # Default-Stop: 0 1 6 # Description: VirtualBox watchdog daemon ### END INIT INFO -Index: VirtualBox-5.2.22/src/VBox/ValidationKit/testboxscript/linux/testboxscript-service.sh +Index: VirtualBox-6.0.0/src/VBox/ValidationKit/testboxscript/linux/testboxscript-service.sh =================================================================== ---- VirtualBox-5.2.22.orig/src/VBox/ValidationKit/testboxscript/linux/testboxscript-service.sh -+++ VirtualBox-5.2.22/src/VBox/ValidationKit/testboxscript/linux/testboxscript-service.sh +--- VirtualBox-6.0.0.orig/src/VBox/ValidationKit/testboxscript/linux/testboxscript-service.sh ++++ VirtualBox-6.0.0/src/VBox/ValidationKit/testboxscript/linux/testboxscript-service.sh @@ -31,7 +31,7 @@ # Provides: testboxscript-service # Required-Start: $network @@ -256,10 +230,10 @@ Index: VirtualBox-5.2.22/src/VBox/ValidationKit/testboxscript/linux/testboxscrip # Default-Stop: 0 1 6 # Description: TestBoxScript service ### END INIT INFO -Index: VirtualBox-5.2.22/src/VBox/ValidationKit/utils/TestExecServ/linux/vboxtxs-nat.sh +Index: VirtualBox-6.0.0/src/VBox/ValidationKit/utils/TestExecServ/linux/vboxtxs-nat.sh =================================================================== ---- VirtualBox-5.2.22.orig/src/VBox/ValidationKit/utils/TestExecServ/linux/vboxtxs-nat.sh -+++ VirtualBox-5.2.22/src/VBox/ValidationKit/utils/TestExecServ/linux/vboxtxs-nat.sh +--- VirtualBox-6.0.0.orig/src/VBox/ValidationKit/utils/TestExecServ/linux/vboxtxs-nat.sh ++++ VirtualBox-6.0.0/src/VBox/ValidationKit/utils/TestExecServ/linux/vboxtxs-nat.sh @@ -31,7 +31,7 @@ # Provides: vboxtxs # Required-Start: $network @@ -269,10 +243,10 @@ Index: VirtualBox-5.2.22/src/VBox/ValidationKit/utils/TestExecServ/linux/vboxtxs # Default-Stop: 0 1 6 # Description: VirtualBox Test Execution Service ### END INIT INFO -Index: VirtualBox-5.2.22/src/VBox/ValidationKit/utils/TestExecServ/linux/vboxtxs.sh +Index: VirtualBox-6.0.0/src/VBox/ValidationKit/utils/TestExecServ/linux/vboxtxs.sh =================================================================== ---- VirtualBox-5.2.22.orig/src/VBox/ValidationKit/utils/TestExecServ/linux/vboxtxs.sh -+++ VirtualBox-5.2.22/src/VBox/ValidationKit/utils/TestExecServ/linux/vboxtxs.sh +--- VirtualBox-6.0.0.orig/src/VBox/ValidationKit/utils/TestExecServ/linux/vboxtxs.sh ++++ VirtualBox-6.0.0/src/VBox/ValidationKit/utils/TestExecServ/linux/vboxtxs.sh @@ -31,7 +31,7 @@ # Provides: vboxtxs # Required-Start: $network diff --git a/vbox-vboxdrv-init-script.diff b/vbox-vboxdrv-init-script.diff index 5a3f4e0..19d3a34 100644 --- a/vbox-vboxdrv-init-script.diff +++ b/vbox-vboxdrv-init-script.diff @@ -1,7 +1,7 @@ -Index: VirtualBox-5.2.14/src/VBox/Installer/linux/vboxdrv.sh +Index: VirtualBox-6.0.0/src/VBox/Installer/linux/vboxdrv.sh =================================================================== ---- VirtualBox-5.2.14.orig/src/VBox/Installer/linux/vboxdrv.sh -+++ VirtualBox-5.2.14/src/VBox/Installer/linux/vboxdrv.sh +--- VirtualBox-6.0.0.orig/src/VBox/Installer/linux/vboxdrv.sh ++++ VirtualBox-6.0.0/src/VBox/Installer/linux/vboxdrv.sh @@ -19,11 +19,12 @@ # ### BEGIN INIT INFO @@ -33,7 +33,7 @@ Index: VirtualBox-5.2.14/src/VBox/Installer/linux/vboxdrv.sh if ! $MODPROBE vboxnetflt > /dev/null 2>&1; then failure "modprobe vboxnetflt failed. Please use 'dmesg' to find out why" fi -@@ -420,47 +414,8 @@ cleanup() +@@ -421,48 +415,8 @@ cleanup() # setup_script setup() { @@ -77,6 +77,7 @@ Index: VirtualBox-5.2.14/src/VBox/Installer/linux/vboxdrv.sh - fi - rm -f /etc/vbox/module_not_compiled - depmod -a +- sync - succ_msg "VirtualBox kernel modules built" +# Try to build the host kernel modules in case prepackaging has failed + /sbin/vboxconfig diff --git a/vbox-vboxweb-init-script.diff b/vbox-vboxweb-init-script.diff deleted file mode 100644 index c14e592..0000000 --- a/vbox-vboxweb-init-script.diff +++ /dev/null @@ -1,14 +0,0 @@ -Index: VirtualBox-5.2.0/src/VBox/Installer/linux/vboxweb-service.sh -=================================================================== ---- VirtualBox-5.2.0.orig/src/VBox/Installer/linux/vboxweb-service.sh -+++ VirtualBox-5.2.0/src/VBox/Installer/linux/vboxweb-service.sh -@@ -20,7 +20,7 @@ - # Provides: vboxweb-service - # Required-Start: vboxdrv - # Required-Stop: vboxdrv --# Default-Start: 2 3 4 5 -+# Default-Start: 2 3 5 - # Default-Stop: 0 1 6 - # Description: VirtualBox web service API - ### END INIT INFO - diff --git a/vboxdrv.sh b/vboxdrv.sh index 57bed21..ad08572 100644 --- a/vboxdrv.sh +++ b/vboxdrv.sh @@ -450,3 +450,4 @@ status) esac exit 0 + diff --git a/vboxweb-service.service b/vboxweb-service.service new file mode 100644 index 0000000..44088c9 --- /dev/null +++ b/vboxweb-service.service @@ -0,0 +1,20 @@ +[Unit] +SourcePath=/usr/lib/virtualbox/vboxweb-service.sh +Description= +Before=runlevel2.target runlevel3.target runlevel4.target runlevel5.target shutdown.target +After=vboxdrv.service +Conflicts=shutdown.target + +[Service] +Type=forking +Restart=no +TimeoutSec=5min +IgnoreSIGPIPE=no +KillMode=process +GuessMainPID=no +RemainAfterExit=yes +ExecStart=/usr/lib/virtualbox/vboxweb-service.sh start +ExecStop=/usr/lib/virtualbox/vboxweb-service.sh stop + +[Install] +WantedBy=multi-user.target diff --git a/vboxweb-service.sh b/vboxweb-service.sh new file mode 100644 index 0000000..417a3e0 --- /dev/null +++ b/vboxweb-service.sh @@ -0,0 +1,225 @@ +#!/bin/sh +# $Id: vboxweb-service.sh 127855 2019-01-01 01:45:53Z bird $ +## @file +# VirtualBox web service API daemon init script. +# + +# +# Copyright (C) 2006-2019 Oracle Corporation +# +# This file is part of VirtualBox Open Source Edition (OSE), as +# available from http://www.virtualbox.org. This file is free software; +# you can redistribute it and/or modify it under the terms of the GNU +# General Public License (GPL) as published by the Free Software +# Foundation, in version 2 as it comes in the "COPYING" file of the +# VirtualBox OSE distribution. VirtualBox OSE is distributed in the +# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. +# + +# chkconfig: 345 35 65 +# description: VirtualBox web service API +# +### BEGIN INIT INFO +# Provides: vboxweb-service +# Required-Start: vboxdrv +# Required-Stop: vboxdrv +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Description: VirtualBox web service API +### END INIT INFO + +PATH=$PATH:/bin:/sbin:/usr/sbin +SCRIPTNAME=vboxweb-service.sh + +[ -f /etc/vbox/vbox.cfg ] && . /etc/vbox/vbox.cfg + +if [ -n "$INSTALL_DIR" ]; then + binary="$INSTALL_DIR/vboxwebsrv" + vboxmanage="$INSTALL_DIR/VBoxManage" +else + binary="/usr/lib/virtualbox/vboxwebsrv" + vboxmanage="/usr/lib/virtualbox/VBoxManage" +fi + +# silently exit if the package was uninstalled but not purged, +# applies to Debian packages only (but shouldn't hurt elsewhere) +[ ! -f /etc/debian_release -o -x $binary ] || exit 0 + +[ -r /etc/default/virtualbox ] && . /etc/default/virtualbox + +PIDFILE="/var/run/${SCRIPTNAME}" + +# Preamble for Gentoo +if [ "`which $0`" = "/sbin/rc" ]; then + shift +fi + +begin_msg() +{ + test -n "${2}" && echo "${SCRIPTNAME}: ${1}." + logger -t "${SCRIPTNAME}" "${1}." +} + +succ_msg() +{ + logger -t "${SCRIPTNAME}" "${1}." +} + +fail_msg() +{ + echo "${SCRIPTNAME}: failed: ${1}." >&2 + logger -t "${SCRIPTNAME}" "failed: ${1}." +} + +start_daemon() { + usr="$1" + shift + su - $usr -c "$*" +} + +killproc() { + killall $1 + rm -f $PIDFILE +} + +if which start-stop-daemon >/dev/null 2>&1; then + start_daemon() { + usr="$1" + shift + bin="$1" + shift + start-stop-daemon --background --chuid $usr --start --exec $bin -- $@ + } + + killproc() { + start-stop-daemon --stop --exec $@ + } +fi + +vboxdrvrunning() { + lsmod | grep vboxdrv +} + +check_single_user() { + if [ -n "$2" ]; then + fail_msg "VBOXWEB_USER must not contain multiple users!" + exit 1 + fi +} + +start() { + if ! test -f $PIDFILE; then + [ -z "$VBOXWEB_USER" ] && exit 0 + begin_msg "Starting VirtualBox web service" console; + check_single_user $VBOXWEB_USER + temp=$(lsmod | grep vboxdrv) + echo $temp + if [ -z "$temp" ]; then + fail_msg "VirtualBox kernel module not loaded!" + exit 1 + fi + PARAMS="--background" + [ -n "$VBOXWEB_HOST" ] && PARAMS="$PARAMS -H $VBOXWEB_HOST" + [ -n "$VBOXWEB_PORT" ] && PARAMS="$PARAMS -p $VBOXWEB_PORT" + [ -n "$VBOXWEB_SSL_KEYFILE" ] && PARAMS="$PARAMS -s -K $VBOXWEB_SSL_KEYFILE" + [ -n "$VBOXWEB_SSL_PASSWORDFILE" ] && PARAMS="$PARAMS -a $VBOXWEB_SSL_PASSWORDFILE" + [ -n "$VBOXWEB_SSL_CACERT" ] && PARAMS="$PARAMS -c $VBOXWEB_SSL_CACERT" + [ -n "$VBOXWEB_SSL_CAPATH" ] && PARAMS="$PARAMS -C $VBOXWEB_SSL_CAPATH" + [ -n "$VBOXWEB_SSL_DHFILE" ] && PARAMS="$PARAMS -D $VBOXWEB_SSL_DHFILE" + [ -n "$VBOXWEB_SSL_RANDFILE" ] && PARAMS="$PARAMS -r $VBOXWEB_SSL_RANDFILE" + [ -n "$VBOXWEB_TIMEOUT" ] && PARAMS="$PARAMS -t $VBOXWEB_TIMEOUT" + [ -n "$VBOXWEB_CHECK_INTERVAL" ] && PARAMS="$PARAMS -i $VBOXWEB_CHECK_INTERVAL" + [ -n "$VBOXWEB_THREADS" ] && PARAMS="$PARAMS -T $VBOXWEB_THREADS" + [ -n "$VBOXWEB_KEEPALIVE" ] && PARAMS="$PARAMS -k $VBOXWEB_KEEPALIVE" + [ -n "$VBOXWEB_AUTHENTICATION" ] && PARAMS="$PARAMS -A $VBOXWEB_AUTHENTICATION" + [ -n "$VBOXWEB_LOGFILE" ] && PARAMS="$PARAMS -F $VBOXWEB_LOGFILE" + [ -n "$VBOXWEB_ROTATE" ] && PARAMS="$PARAMS -R $VBOXWEB_ROTATE" + [ -n "$VBOXWEB_LOGSIZE" ] && PARAMS="$PARAMS -S $VBOXWEB_LOGSIZE" + [ -n "$VBOXWEB_LOGINTERVAL" ] && PARAMS="$PARAMS -I $VBOXWEB_LOGINTERVAL" + # set authentication method + password hash + if [ -n "$VBOXWEB_AUTH_LIBRARY" ]; then + su - "$VBOXWEB_USER" -c "$vboxmanage setproperty websrvauthlibrary \"$VBOXWEB_AUTH_LIBRARY\"" + if [ $? -ne 0 ]; then + fail_msg "Error $? setting webservice authentication library to $VBOXWEB_AUTH_LIBRARY" + fi + fi + if [ -n "$VBOXWEB_AUTH_PWHASH" ]; then + su - "$VBOXWEB_USER" -c "$vboxmanage setextradata global \"VBoxAuthSimple/users/$VBOXWEB_USER\" \"$VBOXWEB_AUTH_PWHASH\"" + if [ $? -ne 0 ]; then + fail_msg "Error $? setting webservice password hash" + fi + fi + # prevent inheriting this setting to VBoxSVC + unset VBOX_RELEASE_LOG_DEST + start_daemon $VBOXWEB_USER $binary $PARAMS > /dev/null 2>&1 + # ugly: wait until the final process has forked + sleep .1 + PID=`pidof $binary 2>/dev/null` + if [ -n "$PID" ]; then + echo "$PID" > $PIDFILE + RETVAL=0 + succ_msg "VirtualBox web service started" + else + RETVAL=1 + fail_msg "VirtualBox web service failed to start" + fi + fi + return $RETVAL +} + +stop() { + if test -f $PIDFILE; then + begin_msg "Stopping VirtualBox web service" console; + killproc $binary + RETVAL=$? + # Be careful: wait 1 second, making sure that everything is cleaned up. + sleep 1 + if ! pidof $binary > /dev/null 2>&1; then + rm -f $PIDFILE + succ_msg "VirtualBox web service stopped" + else + fail_msg "VirtualBox web service failed to stop" + fi + fi + return $RETVAL +} + +restart() { + stop && start +} + +status() { + echo -n "Checking for VBox Web Service" + if [ -f $PIDFILE ]; then + echo " ...running" + else + echo " ...not running" + fi +} + +case "$1" in +start) + start + ;; +stop) + stop + ;; +restart) + restart + ;; +force-reload) + restart + ;; +status) + status + ;; +setup) + ;; +cleanup) + ;; +*) + echo "Usage: $0 {start|stop|restart|status}" + exit 1 +esac + +exit $RETVAL diff --git a/virtualbox-guest-kmp-files b/virtualbox-guest-kmp-files index 73cbf3a..2bfe28d 100644 --- a/virtualbox-guest-kmp-files +++ b/virtualbox-guest-kmp-files @@ -1,6 +1,5 @@ %defattr (-,root,root) %dir /lib/modules/%2-%1/ %dir /lib/modules/%2-%1/extra -/lib/modules/%2-%1/extra/vboxvideo.ko /lib/modules/%2-%1/extra/vboxsf.ko /lib/modules/%2-%1/extra/vboxguest.ko diff --git a/virtualbox-sed-params.patch b/virtualbox-sed-params.patch index 9730da3..09e497a 100644 --- a/virtualbox-sed-params.patch +++ b/virtualbox-sed-params.patch @@ -1,21 +1,21 @@ -Index: VirtualBox-5.2.14/src/VBox/Main/Makefile.kmk +Index: VirtualBox-6.0.0/src/VBox/Main/Makefile.kmk =================================================================== ---- VirtualBox-5.2.14.orig/src/VBox/Main/Makefile.kmk -+++ VirtualBox-5.2.14/src/VBox/Main/Makefile.kmk -@@ -1523,7 +1523,7 @@ $(VBoxAPIWrap_0_OUTDIR)/VBoxAPI.d.ts \ +--- VirtualBox-6.0.0.orig/src/VBox/Main/Makefile.kmk ++++ VirtualBox-6.0.0/src/VBox/Main/Makefile.kmk +@@ -1521,7 +1521,7 @@ $(VBoxAPIWrap_0_OUTDIR)/VBoxAPI.d.ts \ $(QUIET)$(VBOX_XSLTPROC) --stringparam KBUILD_HOST $(KBUILD_HOST) \ --stringparam generating "dtrace-probes" \ -o "$@" $(VBoxAPIWrap_VBOX_XSLT) $(VBOX_XIDL_FILE) - $(QUIET)$(SED) -e '' -o "$@.tmp" \ + $(QUIET)$(SED) -e '' --output "$@.tmp" \ - "$(VBOX_PATH_MAIN_SRC)/src-all/VBoxAPI-start.d" \ + "$(VBOX_PATH_MAIN_SRC)/src-all/VBoxAPI-start$(if-expr "$(VBOX_HOST_DTRACE_VERSION)" == "dtrace: Sun D 1.6.2",-alternative,).d" \ "$@" \ - "$(VBOX_PATH_MAIN_SRC)/src-all/VBoxAPI-end.d" -Index: VirtualBox-5.2.14/src/VBox/Devices/Makefile.kmk + "$(VBOX_PATH_MAIN_SRC)/src-all/VBoxAPI-end$(if-expr "$(VBOX_HOST_DTRACE_VERSION)" == "dtrace: Sun D 1.6.2",-alternative,).d" +Index: VirtualBox-6.0.0/src/VBox/Devices/Makefile.kmk =================================================================== ---- VirtualBox-5.2.14.orig/src/VBox/Devices/Makefile.kmk -+++ VirtualBox-5.2.14/src/VBox/Devices/Makefile.kmk -@@ -854,8 +854,7 @@ if !defined(VBOX_ONLY_EXTPACKS) +--- VirtualBox-6.0.0.orig/src/VBox/Devices/Makefile.kmk ++++ VirtualBox-6.0.0/src/VBox/Devices/Makefile.kmk +@@ -859,8 +859,7 @@ VBOX_WITH_VMSVGA3D_DYNAMIC_LOAD = 1 $(call MSG_TOOL,iasl,VBoxDD,$<,$@) $(QUIET)$(RM) -f $@ $@.tmp $@.pre $(QUIET)$(TOOL_$(VBOX_GCC_TOOL)_CC) -E -P -x c -o $@.pre $< diff --git a/virtualbox-system-x.patch b/virtualbox-system-x.patch deleted file mode 100644 index 2fec58f..0000000 --- a/virtualbox-system-x.patch +++ /dev/null @@ -1,57 +0,0 @@ -Index: VirtualBox-5.2.0/src/VBox/Additions/common/crOpenGL/Makefile.kmk -=================================================================== ---- VirtualBox-5.2.0.orig/src/VBox/Additions/common/crOpenGL/Makefile.kmk -+++ VirtualBox-5.2.0/src/VBox/Additions/common/crOpenGL/Makefile.kmk -@@ -69,18 +69,13 @@ VBoxOGL_INCS = . $(VBOX_GRAPHI - if1of ($(KBUILD_TARGET), linux solaris freebsd) - ifndef VBOX_USE_SYSTEM_GL_HEADERS - VBoxOGL_INCS += \ -- $(VBOX_PATH_X11_ROOT)/libXdamage-1.1 \ -- $(VBOX_PATH_X11_ROOT)/libXcomposite-0.4.0 \ -- $(VBOX_PATH_X11_ROOT)/libXext-1.3.1 \ -- $(VBOX_PATH_X11_ROOT)/libXfixes-4.0.3 \ -- $(VBOX_PATH_X11_ROOT)/damageproto-1.1.0 \ -- $(VBOX_PATH_X11_ROOT)/compositeproto-0.4 \ -- $(VBOX_PATH_X11_ROOT)/fixesproto-4.0 \ -- $(VBOX_PATH_X11_ROOT)/libx11-1.1.5-other \ -- $(VBOX_PATH_X11_ROOT)/xextproto-7.1.1 \ -- $(VBOX_PATH_X11_ROOT)/xproto-7.0.18 \ -- $(VBOX_GL_INCS) -- endif -+ /usr/include/x11 \ -+ /usr/include/xorg \ -+ /usr/include/pixman-1 \ -+ $(VBOX_MESA_INCS) \ -+ /usr/include/drm \ -+ /usr/include/libdrm -+ endif - VBoxOGL_DEFS += VBOX_NO_NATIVEGL - endif - -@@ -219,10 +214,10 @@ if1of ($(KBUILD_TARGET), linux solaris f - VBoxOGL_LIBS += Xcomposite Xdamage Xfixes Xext - else - VBoxOGL_LIBS += \ -- $(PATH_STAGE_LIB)/libXcomposite.so \ -- $(PATH_STAGE_LIB)/libXdamage.so \ -- $(PATH_STAGE_LIB)/libXfixes.so \ -- $(PATH_STAGE_LIB)/libXext.so -+ Xcomposite \ -+ Xdamage \ -+ Xfixes \ -+ Xext - endif - ifdef VBoxOGL_FAKEDRI - ifeq ($(KBUILD_TARGET), freebsd) -Index: VirtualBox-5.2.0/src/VBox/Additions/x11/vboxvideo/getmode.c -=================================================================== ---- VirtualBox-5.2.0.orig/src/VBox/Additions/x11/vboxvideo/getmode.c -+++ VirtualBox-5.2.0/src/VBox/Additions/x11/vboxvideo/getmode.c -@@ -26,6 +26,7 @@ - */ - - #include "vboxvideo.h" -+#include "VBoxVideoGuest.h" - - #define NEED_XF86_TYPES - #include "xf86.h" diff --git a/virtualbox-wrapper.sh b/virtualbox-wrapper.sh index d3e0b90..4bd3b0a 100644 --- a/virtualbox-wrapper.sh +++ b/virtualbox-wrapper.sh @@ -55,4 +55,4 @@ if [ -f ~/.vbox/disable ] ; then fi fi # Now run the VB GUI -LD_LIBRARY_PATH="/usr/lib/virtualbox${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" /usr/lib/virtualbox/VirtualBox $@ +LD_LIBRARY_PATH="/usr/lib/virtualbox${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" /usr/lib/virtualbox/VirtualBox6 $@ diff --git a/virtualbox.changes b/virtualbox.changes index 2e66b13..361fdd8 100644 --- a/virtualbox.changes +++ b/virtualbox.changes @@ -1,5 +1,123 @@ ------------------------------------------------------------------- -Wed Jan 16 18:32:24 UTC 2019 - Larry Finger +Mon Jan 28 20:29:22 UTC 2019 - Larry Finger + +- Version bump to 6.0.4 (released January 28 2019 by Oracle) + +Files "fixes_for_5.0" and "fixes_for_gcc9" are deleted - the code was fixed upstream. + +This is a maintenance release. The following items were fixed and/or added: + +Virtualization core: support Shanghai/Zhaoxin CPUs. +User interface: handle command line arguments to VirtualBox correctly (bugs #18206 and #18197) +User interface: improvements to machine manager window, virtual optical disk creator, storage selector window and log viewer window +User interface: various small fixes and improvements +Audio: implemented time scheduling for the AC'97 device emulation to keep audio and video in sync +Graphics: basic support for VMSVGA graphics device in virtual machines using EFI +Network: fix occasional NATNet crashes (bug #13899) +Network: worked around problems in certain PCnet drivers on old operating systems +Serial: fixed connecting to pseudo terminals on POSIX hosts (6.0.0 regression; bug #18319) +Linux hosts and guests: fix for building kernel modules against Linux 5.0. Thank you Kyle Laker + + +------------------------------------------------------------------- +Fri Jan 25 02:17:17 UTC 2019 - Larry Finger + +- Converted vboxwebsrv to a systemd service. Previously, this was started through init.d. bsc#1116050 + Files "vboxweb-service.service" and "vboxweb-service.sh" are added. + File "vbox-vboxweb-init-script.diff" is removed. + + File "fixes_for_4.20.patch" is removed - the code was fixed upstream. + File "fix_lib_search.patch" is added to fix the build of VBox0GL. + File "fixes_for_5.0.patch" is added to compensate for API changes in kernel 5.0. + File "virtualbox-system-x.patch" is removed. + File "fixes_for_Leap15.1.patch" is added to fix build errors on Leap 15.1. + +- Version bump to 6.0.2 (released January 15 2019 by Oracle) + +This is a maintenance release. The following items were fixed and/or added: + +User interface: fixed creation of desktop shortcuts for starting virtual machines (bug #18207) +User interface: allow the first run window to selecting host drives (bug #18230) +User interface: fixed attaching empty host optical drives (bug #18223) +User interface: implemented a new virtual optical disk creation window +USB: modified Linux backends to reset USB devices (previously, most guest attempts to reset USB devices were ignored) +PCnet: fixed a regression which caused some PCnet PCI guest drivers to not detect the emulated hardware (bug #18286) +Linux hosts: fixed conflict between Debian and Oracle build desktop files (bug #18264) +Linux and MacOS hosts: VirtualBoxVM command not accessible (bug #18257) +Windows guests: multiple monitor fixes with VBoxSVGA graphics +Windows guests: black screen with VBoxSVGA graphics when 3D is disabled (bug #18205) +Linux guests: fixed building drivers on SLES 12.4 (bug #18213) +Linux guests: fixed building shared folder driver with older kernels (bug #18238) +OS/2 shared folders: fixed write regression introduced in 6.0.0 GA + +------------------------------------------------------------------- +Thu Jan 17 20:22:24 UTC 2019 - Larry Finger + +-Version bump to 6.0.0 (released December 18 2018 by Oracle) + +This is a major update. The following major new features were added: + +Implemented support for exporting a virtual machine to Oracle Cloud Infrastructure +User interface: greatly improved HiDPI and scaling support, including better detection and per-machine configuration +Major rework of user interface with simpler and more powerful application and virtual machine set-up +User interface: a new file manager enabling user to control the guest file system and copy files between host and guest. +Graphics: major update of 3D graphics support for Windows guests, and VMSVGA 3D graphics device emulation on Linux and Solaris guests +Added support for surround speaker setups (as used by Windows 10 Build 1809) +Added utility vboximg-mount on Apple hosts to access the content of guest disks on the host +Added support for using Hyper-V as the fallback execution core on Windows host, to avoid inability to run VMs at the price of reduced performance + +In addition, the following items were fixed and/or added: + +Execution core: fixed single-stepping in certain circumstances (bug #17316) +User interface: video and audio recording can now be separately enabled +Audio/Video recording fixes and improvements +Audio: better support for attaching and detaching remote desktop connections +Serial port emulation fixes +Serial ports: allow changing the serial port attachment while a machine is running (bug #6115) +Networking: Added a workaround for older guests which do not enable bus mastering for the virtio PCI device +Networking: fixed wrong RCODE from DNS AAAA query with --natdnshostresolver1 (bug #18171) +iSCSI: In cases where there is no ambiguity, the LUN of an iSCSI target is automatically determined, for targets with non-zero LUNs +Transparently resize disk images when merging if possible +VBoxManage: support for DHCP options +Fixed VNC/RDP (bug 18153) +Guest Control: various new interfaces and features (see SDK documentation) +Linux hosts: support Linux 4.20 (thank you Larry Finger) +Shared folders: performance improvements +Guest Additions: improved shared folder auto-mounting +Windows Guest Additions: fix incorrect tablet co-ordinate handling with recent Windows 10 builds +Linux Additions: fix for building vboxvideo on EL 7.6 standard kernel, contributed by Robert Conde (bug #18093) +Linux guests: support Linux 4.20 (thank you Larry Finger) +Linux guests: support VMSVGA in the Linux and X11 Additions +MacOS Guest Additions: initial support +OS/2 Guest Additions: initial shared folder support +BIOS fixes +ACPI: Up to four custom ACPI tables can now be configured for a VM + +------------------------------------------------------------------- +Tue Jan 16 00:59:52 UTC 2019 - Larry Finger + +- Version bump to 5.2.24 (released January 15 2019 by Oracle) + +This is a maintenance release. The following items were fixed and/or added: + +Linux Additions: fix for building vboxvideo on EL 7.6 standard kernel, contributed by Robert Conde (bug #18093) +USB: fixed a problem causing failures attaching SuperSpeed devices which report USB version 3.1 (rather than 3.0) on Windows hosts +Audio: added support for surround speaker setups used by Windows 10 Build 1809 +Linux hosts: fixed conflict between Debian and Oracle build desktop files (bug #18264) +Linux guests: fixed building drivers on SLES 12.4 (bug #18213) +Linux guests: fixed building shared folder driver with older kernels (bug #18238) + +Patch "fixes_for_5.0.patch" is added to handle API changes for kernel 5.0. + +Contains fixes for: CVE-2019-2500, CVE-2019-2524, CVE-2019-2552, CVE-2018-3309, CVE-2019-2520 + CVE-2019-2521, CVE-2019-2522, CVE-2019-2523, CVE-2019-2526, CVE-2019-2548 + CVE-2018-11763, CVE-2019-2511, CVE-2019-2508, CVE-2019-2509, CVE-2019-2527 + CVE-2019-2450, CVE-2019-2451, CVE-2019-2555, CVE-2019-2554, CVE-2019-2556 + CVE-2018-11784, CVE-2018-0734, CVE-2019-2525, CVE-2019-2446, CVE-2019-2448 + CVE-2019-2501, CVE-2019-2504, CVE-2019-2505, CVE-2019-2506, and CVE-2019-2553a bsc#1122212. + +------------------------------------------------------------------- +Wed Jan 15 18:32:24 UTC 2019 - Larry Finger - Remove test patch "change_default_net_adapter.patch". It was made obsolete by upstream changes. diff --git a/virtualbox.spec b/virtualbox.spec index 34c4ff4..176b85f 100644 --- a/virtualbox.spec +++ b/virtualbox.spec @@ -37,10 +37,10 @@ python3 -O -c "import sys, os, compileall; br='%{buildroot}'; compileall.compile %global __provides_exclude ^libE?GL.so.1.*$ %define _vbox_instdir %{_libexecdir}/virtualbox -%define _udevrulesdir %{_sysconfdir}/udev/rules.d +%define _udevrulesdir /usr/lib/udev/rules.d Name: virtualbox -# ********* If the VB version exceeds 5.2.x, notify the libvirt maintainer!! -Version: 5.2.22 +# ********* If the VB version exceeds 6.0.x, notify the libvirt maintainer!! +Version: 6.0.4 Release: 0 Summary: VirtualBox is an Emulator License: GPL-2.0-or-later @@ -49,7 +49,7 @@ Url: http://www.virtualbox.org/ # # so you don't need to repack virtualbox by hand, just add new release of VirtualBox-x.x.x.tar.bz2 and line below with # script virtualbox-patch-source.sh will do the job :) -# WARNING: This is not a comment, but the real command to repack souce +# WARNING: This is not a comment, but the real command to repack source #%%(bash %%{_sourcedir}/virtualbox-patch-source.sh VirtualBox-%%{version}.tar.bz2) Source0: VirtualBox-%{version}-patched.tar.bz2 Source1: UserManual.pdf @@ -69,17 +69,15 @@ Source17: vboxguestconfig.sh Source18: fix_usb_rules.sh Source19: vboxdrv.sh Source20: README.autostart +Source21: vboxweb-service.service +Source22: vboxweb-service.sh Source98: %{name}-rpmlintrc Source99: %{name}-patch-source.sh #rework init scripts to fit suse needs Patch1: vbox-vboxdrv-init-script.diff Patch2: vbox-vboxadd-init-script.diff -Patch3: vbox-vboxweb-init-script.diff -#PATCH-FIX-OPENSUSE: Use system X libraries and do not build local things -Patch4: virtualbox-system-x.patch #fix build : "Error 4001 - String must be entirely alphanumeric" #with renaming we probably break some macosx functionality however ths is just quick fix -#file :http://www.virtualbox.org/browser/trunk/src/VBox/Devices/PC/vbox.ds #see thread : http://lists.freebsd.org/pipermail/freebsd-acpi/2010-October/006795.html Patch6: vbox-smc-napa.diff #fix build of Python and dev package on openSUSE 11.3 @@ -89,7 +87,7 @@ Patch9: vbox-deprec-gsoap-service-proxies.diff #fix failed linking process during build - this patch is just quick workaround Patch10: vbox-gsoapssl-deps.diff #PATCH-FIX-OPENSUSE implement messagebox (VBoxPermissionMessage app), which is displayed, when user -#try to start VirtualBox and is not memeber of vboxusers group +#try to start VirtualBox and is not member of vboxusers group Patch99: vbox-permissions_warning.diff #PATCH-FIX-OPENSUSE Do not include build dates on binaries, makes build-compare happier Patch100: vbox-no-build-dates.diff @@ -120,19 +118,17 @@ Patch116: Fix_for_server_1.19.patch Patch118: internal-headers.patch # Fix rpmlint error for script /lib/usr/virtualbox/vboxshell.py Patch120: fixes_for_python.patch -# Remove vboxvideo from build -Patch121: remove_vbox_video_build.patch # Fix build for Qt 5.11 Patch122: fixes_for_Qt5.11.patch # Switch to Python 3.4+ Patch123: switch_to_python3.4+.patch Patch124: fix_32_bit_builds.patch -# Fix API changes for kernel 4.20+ -Patch125: fixes_for_4.20.patch -# Fix changes for gcc9 -Patch126: fixes_for_gcc9 -# Fix API changes for kernel 5.0+ -#Patch127: fixes_for_5.0.patch +# Use build parameters to control video driver problems +Patch125: remove_vbox_video_build.patch +# fix library search +Patch128: fix_lib_search.patch +# Fixes for modified kernel in Leap 15.1 +Patch129: fixes_for_Leap15.1.patch # BuildRequires: LibVNCServer-devel BuildRequires: SDL-devel @@ -159,6 +155,7 @@ BuildRequires: gsoap-devel BuildRequires: java-devel >= 1.6.0 BuildRequires: kbuild >= 0.1.9998svn3101 #BuildRequires: kernel-syms +BuildRequires: libXcomposite1 BuildRequires: libcap-devel BuildRequires: libcurl-devel BuildRequires: libelf-devel @@ -212,7 +209,6 @@ Requires(pre): permissions Requires(pre): net-tools-deprecated %endif Requires(pre): pwdutils -Requires(pre): %insserv_prereq Requires(pre): %fillup_prereq Recommends: %{name}-gui = %{version} #rename from ose version: @@ -234,8 +230,6 @@ BuildRequires: xorg-x11-libXt-devel-32bit # with us, but with different owner. Conflicts: i4l-vbox -%posttrans - %description VirtualBox is a hosted hypervisor for x86 computers. It supports the creation and management of guest virtual machines running versions @@ -259,7 +253,7 @@ Provides: %{name}-ose-qt = %{version} Obsoletes: %{name}-ose-qt < %{version} %description qt -Qt GUI part for %{name}. +This package contains the code for the GUI used to control VMs. ######################################### %package websrv @@ -267,20 +261,20 @@ Summary: WebService GUI part for %{name} Group: System/Emulators/PC Requires: %{name} = %{version} Provides: %{name}-gui = %{version} -Requires(pre): %insserv_prereq +Obsoletes: %{name}-vboxwebsrv %description websrv -websrv GUI part for %{name}. +The VirtualBox web server is used to control headless VMs using a browser. ######################################### %package host-KMP Summary: Host kernel module for VirtualBox Group: System/Emulators/PC -%kernel_module_package -t %{_builddir}/virtualbox-kmp-template -p %%{SOURCE7} -n %%{name}-host -f %%{SOURCE5} -x kdump um xen pae xenpae pv +%kernel_module_package -t %{_builddir}/virtualbox-kmp-template -p %{SOURCE7} -n %{name}-host -f %{SOURCE5} -x kdump um xen pae xenpae pv Requires: %{kernel_module_package_buildreqs} %description host-KMP -This package contains the kernel-module for VirtualBox. +This package contains the kernel-modules that VirtualBox uses to create virtual machines. ########################################## %package guest-KMP @@ -290,7 +284,7 @@ Group: System/Emulators/PC Requires: %{kernel_module_package_buildreqs} %description guest-KMP -This package contains the kernel-module for VirtualBox. +This package contains the VB kernel-modules for Linux guest virtual machines. ########################################## %package guest-x11 @@ -303,7 +297,6 @@ Provides: xorg-x11-driver-virtualbox-ose = %{version} Obsoletes: xorg-x11-driver-virtualbox-ose < %{version} %description guest-x11 -VirtualBox This package contains X11 guest utilities and X11 guest mouse and video drivers ########################################### @@ -315,7 +308,6 @@ Supplements: modalias(pci:v000080EEd0000BEEFsv*sd*bc*sc*i*) #rename from "ose" version: Provides: %{name}-ose-guest-tools = %{version} Obsoletes: %{name}-ose-guest-tools < %{version} -Requires(pre): %insserv_prereq %if ! 0%{?suse_version} > 1325 Requires(pre): net-tools-deprecated %endif @@ -368,13 +360,14 @@ BuildArch: noarch %description host-source Source files for %{name} host kernel modules These can be built for custom kernels using -cd %{_prefix}/src/kernel-modules/virtualbox ; make ; make install +sudo /sbin/vboxconfig %package guest-source Summary: Source files for %{name} guest kernel modules -#Requires: %{name} = %{version} Group: Development/Sources Requires: gcc +Requires: kernel-devel +Requires: libelf-devel Requires: make BuildArch: noarch @@ -399,7 +392,7 @@ This package contains icons for guest desktop files that were created on the des Summary: VNC desktop sharing Group: System/Emulators/PC Requires: %{name} = %{version} -Requires: libvncserver0 +#Requires: libvncserver %description vnc Virtual Network Computing (VNC) is a graphical desktop sharing system that uses the Remote Frame Buffer @@ -411,8 +404,6 @@ as an "extpack" for VirtualBox. The implementation is licensed under GPL. %setup -q -n VirtualBox-%{version} %patch1 -p1 %patch2 -p1 -%patch3 -p1 -%patch4 -p1 %patch6 -p1 %patch8 -p1 %patch9 -p1 @@ -433,13 +424,12 @@ as an "extpack" for VirtualBox. The implementation is licensed under GPL. %patch116 -p1 %patch118 -p1 %patch120 -p1 -%patch121 -p1 %patch122 -p1 %patch123 -p1 %patch124 -p1 %patch125 -p1 -%patch126 -p1 -#%patch127 -p1 +%patch128 -p1 +%patch129 -p1 #copy user manual cp %{SOURCE1} UserManual.pdf @@ -515,10 +505,10 @@ install -D -m 644 "COPYING" "%{buildroot}%{_datadir}/licenses/LICENSE.vnc" # # build kernel modules for guest and host (check novel-kmp package as example) # host modules : vboxdrv,vboxnetflt,vboxnetadp,vboxpci -# guest modules : vboxguest,vboxsf,vboxvideo +# guest modules : vboxguest,vboxsf echo "build kernel modules" for vbox_module in out/linux.*/release/bin/src/vbox{drv,netflt,netadp,pci} \ - out/linux.*/release/bin/additions/src/vbox{guest,sf,video}; do + out/linux.*/release/bin/additions/src/vbox{guest,sf}; do #get the module name from path module_name=$(basename "$vbox_module") @@ -545,11 +535,6 @@ for vbox_module in out/linux.*/release/bin/src/vbox{drv,netflt,netadp,pci} \ cp $PWD/modules_build_dir/$flavor/vboxguest/Module.symvers \ $PWD/modules_build_dir/$flavor/$module_name fi - # copy vboxguest (for guest) module symbols which are used by vboxvideo km: - if [ "$module_name" = "vboxvideo" ]; then - cp $PWD/modules_build_dir/$flavor/vboxguest/Module.symvers \ - $PWD/modules_build_dir/$flavor/$module_name - fi # build the module for the specific flavor make -j2 -C %{_prefix}/src/linux-obj/%{_target_cpu}/$flavor %{?linux_make_arch} modules \ M=$PWD/modules_build_dir/$flavor/$module_name @@ -561,6 +546,7 @@ done echo "create directory structure" ################################# install -d -m 755 %{buildroot}/sbin +install -d -m 755 %{buildroot}/lib install -d -m 755 %{buildroot}%{_bindir} install -d -m 755 %{buildroot}%{_sbindir} install -d -m 755 %{buildroot}%{_datadir}/virtualbox/nls @@ -572,7 +558,6 @@ install -d -m 755 %{buildroot}%{_libdir}/dri install -d -m 755 %{buildroot}%{_libdir}/xorg/modules/drivers install -d -m 755 %{buildroot}%{_libdir}/xorg/modules/input install -d -m 755 %{buildroot}%{_sysconfdir}/default -install -d -m 755 %{buildroot}%{_sysconfdir}/init.d install -d %{buildroot}%{_unitdir} install -d %{buildroot}%{_unitdir}/multi-user.target.wants install -d -m 755 %{buildroot}%{_sysconfdir}/vbox @@ -588,13 +573,12 @@ export INSTALL_MOD_DIR=extra export INITRD_IN_POSTTRANS=1 export KMP_NEEDS_MKINITRD=0 #to install modules we use here similar steps like in build phase, go through all the modules : -for module_name in vbox{drv,netflt,pci,netadp,guest,sf,video} +for module_name in vbox{drv,netflt,pci,netadp,guest,sf} do #and through the all flavors for flavor in %{flavors_to_build}; do - #to install modules use Makefile from %{_prefix}/src/linux-obj/%_target_cpu/$flavor and builds from $PWD/modules_build_dir/$flavor/$module_name - make -C %{_prefix}/src/linux-obj/%{_target_cpu}/$flavor modules_install M=$PWD/modules_build_dir/$flavor/$module_name - done + make -C %{_prefix}/src/linux-obj/%{_target_cpu}/$flavor modules_install M=$PWD/modules_build_dir/$flavor/$module_name + done done ########################################### @@ -617,8 +601,6 @@ echo "entering guest-x11 install section" pushd out/linux.*/release/bin/additions/ #VBoxClient daemon (support for clipboard,autoresize,seamless windows) install -m 755 VBoxClient %{buildroot}%{_bindir} -# xorg drivers for video -#install -m 755 vboxvideo_drv_system.so %{buildroot}%{_libdir}/xorg/modules/drivers/vboxvideo_drv.so popd # VBoxOGL* libs for guest-x11 subpackage install -m 644 out/linux.*/release/bin/additions/VBoxOGL*.so \ @@ -626,15 +608,13 @@ install -m 644 out/linux.*/release/bin/additions/VBoxOGL*.so \ # VBoxEGL* libs for guest-x11 subpackage install -m 755 out/linux.*/release/bin/additions/VBoxEGL*.so \ %{buildroot}%{_libdir} -# make link for dri lib -#ln -s %{_libdir}/VBoxOGL.so %{buildroot}%{_libdir}/dri/vboxvideo_dri.so # install init script which start VBoxClient daemon (support for clipboard,autoresize,seamless windows) install -m 755 src/VBox/Additions/x11/Installer/98vboxadd-xclient %{buildroot}%{_sysconfdir}/X11/xinit/xinitrc.d/vboxadd-xclient.sh ############################################## echo "entering virtualbox(-qt) install section" ############################################## -# copy the main files to %{_vbox_instdir} +# copy the main files to %%{_vbox_instdir} pushd out/linux.*/release/bin install -m 755 VBoxManage %{buildroot}%{_vbox_instdir} install -m 755 VBoxHeadless %{buildroot}%{_vbox_instdir} @@ -662,7 +642,8 @@ install -m 755 VBoxPermissionMessage %{buildroot}%{_vbox_instdir} install -m 755 VBoxUSB_DevRules %{buildroot}%{_vbox_instdir} install -m 755 VBoxNetDHCP %{buildroot}%{_vbox_instdir} install -m 755 VBoxNetAdpCtl %{buildroot}%{_vbox_instdir} -install -m 755 VirtualBox %{buildroot}%{_vbox_instdir} +install -m 755 VirtualBox %{buildroot}%{_vbox_instdir}/VirtualBox6 +install -m 755 VirtualBoxVM %{buildroot}%{_vbox_instdir} install -m 755 VBoxEFI*.fd %{buildroot}%{_vbox_instdir} install -m 755 VBoxSysInfo.sh %{buildroot}%{_vbox_instdir} install -m 644 *.so %{buildroot}%{_vbox_instdir} @@ -689,9 +670,6 @@ install -m 644 out/linux.*/release/bin/VBox.png %{buildroot}%{_datadir}/pixmaps/ install -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/default/virtualbox #install wrapper script install -m 644 %{SOURCE9} %{buildroot}%{_bindir}/VirtualBox -# modify and install the vboxdrv init script -#sed -i "s|%{NOLSB}%|yes|g;s|%{DEBIAN}%||g;s|%{PACKAGE}%|virtualbox|g" \ -# src/VBox/Installer/linux/vboxdrv.sh # Service files to load kernel modules on boot install -m 0644 %{SOURCE14} %{buildroot}%{_unitdir}/vboxdrv.service @@ -701,7 +679,8 @@ install -m 0755 %{SOURCE16} %{buildroot}/sbin/vboxconfig install -m 0755 %{SOURCE17} %{buildroot}/sbin/vboxguestconfig install -m 0755 %{SOURCE18} %{buildroot}/sbin/vbox-fix-usb-rules.sh install -m 0755 %{SOURCE19} %{buildroot}%{_vbox_instdir}/vboxdrv.sh - +install -m 0644 %{SOURCE21} %{buildroot}%{_unitdir}/vboxweb-service.service +install -m 0755 %{SOURCE22} %{buildroot}%{_vbox_instdir}/vboxweb-service.sh # Init script to start virtual boxes during boot ln -sf %{_unitdir}/vboxdrv.service %{buildroot}%{_unitdir}/multi-user.target.wants/vboxdrv.service ln -sf %{_unitdir}/vboxadd-service.service %{buildroot}%{_unitdir}/multi-user.target.wants/vboxadd-service.service @@ -750,9 +729,6 @@ install -m 755 vboxwebsrv %{buildroot}%{_vbox_instdir} install -m 755 webtest %{buildroot}%{_vbox_instdir} popd -sed -i "s|%{NOLSB}%|yes|g;s|%{DEBIAN}%||g;s|%{PACKAGE}%|virtualbox|g" src/VBox/Installer/linux/vboxweb-service.sh -install -m 744 src/VBox/Installer/linux/vboxweb-service.sh %{buildroot}%{_sysconfdir}/init.d/vboxweb-service -ln -s %{_sysconfdir}/init.d/vboxweb-service %{buildroot}%{_sbindir}/rcvboxweb-service # ###################################################### echo "entering virtualbox-guest-desktop-icons install section" @@ -789,7 +765,10 @@ getent group vboxusers >/dev/null || groupadd -r vboxusers # Add groups for seamless mode and shared folders: getent group vboxguest >/dev/null || groupadd -r vboxguest getent group vboxsf >/dev/null || groupadd -r vboxsf -%service_add_pre vboxadd.service +%service_add_pre vboxadd-service.service + +%pre websrv +%service_add_pre vboxweb-service.service ####################################################### # scriptlets - post @@ -817,7 +796,7 @@ EOF } %post qt -%set_permissions %{_vbox_instdir}/VirtualBox +%set_permissions %{_vbox_instdir}/VirtualBoxVM %set_permissions %{_vbox_instdir}/VBoxSDL %verifyscript @@ -827,13 +806,14 @@ EOF %verify_permissions -e %{_vbox_instdir}/VBoxHeadless %verifyscript qt -%verify_permissions -e %{_vbox_instdir}/VirtualBox +%verify_permissions -e %{_vbox_instdir}/VirtualBoxVM %verify_permissions -e %{_vbox_instdir}/VBoxSDL %post guest-tools %service_add_post vboxadd-service.service %post websrv +%service_add_post vboxweb-service.service %post vnc EXTPACK="/usr/share/virtualbox/extensions/VNC-%{version}.vbox-extpack" @@ -857,6 +837,7 @@ exit 0 %preun websrv %stop_on_removal vboxweb-service +%service_del_preun vboxweb-service.service exit 0 ####################################################### @@ -866,7 +847,6 @@ exit 0 %postun /sbin/ldconfig %restart_on_update vboxdrv -%insserv_cleanup # immediately restarting virtualbox may not work. As such wait for the next reboot to restart export DISABLE_RESTART_ON_UPDATE=yes %service_del_postun vboxdrv.service @@ -874,12 +854,11 @@ export DISABLE_RESTART_ON_UPDATE=yes %postun guest-tools %restart_on_update vboxadd %restart_on_update vboxadd-service -%insserv_cleanup %service_del_postun vboxadd-service.service %postun websrv %restart_on_update vboxweb-service -%insserv_cleanup +%service_del_postun vboxweb-service.service # ####################################################### @@ -913,7 +892,6 @@ export DISABLE_RESTART_ON_UPDATE=yes %{_vbox_instdir}/VBoxVMM.so %{_vbox_instdir}/VBoxXPCOMC.so %{_vbox_instdir}/VBoxXPCOM.so -%{_vbox_instdir}/VBoxDD2RC.rc %{_vbox_instdir}/VBoxDDRC.rc %{_vbox_instdir}/VMMRC.rc %{_vbox_instdir}/VBox*.r0 @@ -945,7 +923,7 @@ export DISABLE_RESTART_ON_UPDATE=yes %{_sbindir}/rcvboxdrv /sbin/vboxconfig %{_vbox_instdir}/VBoxCreateUSBNode.sh -%verify(not mode) %attr(0755,root,vboxusers) %{_vbox_instdir}/VBoxNetNAT +%verify(not mode) %attr(4755,root,vboxusers) %{_vbox_instdir}/VBoxNetNAT %verify(not mode) %attr(4750,root,vboxusers) %{_vbox_instdir}/VBoxNetDHCP %verify(not mode) %attr(4750,root,vboxusers) %{_vbox_instdir}/VBoxNetAdpCtl %verify(not mode) %attr(4750,root,vboxusers) %{_vbox_instdir}/VBoxHeadless @@ -958,7 +936,8 @@ export DISABLE_RESTART_ON_UPDATE=yes %defattr(-, root, root) %attr(0755,root,vboxusers) %{_vbox_instdir}/VBoxPermissionMessage %attr(0755,root,vboxusers) %{_vbox_instdir}/VBoxUSB_DevRules -%verify(not mode) %attr(4750,root,vboxusers) %{_vbox_instdir}/VirtualBox +%attr(0755,root,vboxusers) %{_vbox_instdir}/VirtualBox6 +%verify(not mode) %attr(4750,root,vboxusers) %{_vbox_instdir}/VirtualBoxVM %verify(not mode) %attr(4750,root,vboxusers) %{_vbox_instdir}/VBoxSDL #wrapper script is in bindir %attr(0755,root,root) %{_bindir}/VirtualBox @@ -968,7 +947,9 @@ export DISABLE_RESTART_ON_UPDATE=yes %{_vbox_instdir}/VBoxTestOGL #qm's translations %{_datadir}/virtualbox/nls -%{_vbox_instdir}/VirtualBox.so +%{_vbox_instdir}/VBoxGlobal.so +%{_vbox_instdir}/VBoxSVGA3D.so +%{_vbox_instdir}/VirtualBoxVM.so %{_vbox_instdir}/VBoxDbg.so %{_bindir}/VBoxSDL %{_vbox_instdir}/VBoxSDL.so @@ -1040,10 +1021,10 @@ export DISABLE_RESTART_ON_UPDATE=yes %files websrv %defattr(-,root, root) -%{_vbox_instdir}/vboxwebsrv +%{_unitdir}/vboxweb-service.service +%{_vbox_instdir}/vboxweb-service.sh %{_vbox_instdir}/webtest -%{_sysconfdir}/init.d/vboxweb-service -%{_sbindir}/rcvboxweb-service +%{_vbox_instdir}/vboxwebsrv %files guest-desktop-icons %defattr(-,root, root) From a13acfe59b04fdd365b7330502d92af4515a72fb975190f7c926562eea4f3f9e Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Tue, 29 Jan 2019 15:17:31 +0000 Subject: [PATCH 2/6] - Part of the API changes for kernel 5.0 are not fixed upstream. Add file "fixes_for_5.0" back in. OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=466 --- fixes_for_5.0.patch | 15 +++++++++++++++ virtualbox.changes | 5 +++++ virtualbox.spec | 3 +++ 3 files changed, 23 insertions(+) create mode 100644 fixes_for_5.0.patch diff --git a/fixes_for_5.0.patch b/fixes_for_5.0.patch new file mode 100644 index 0000000..f331962 --- /dev/null +++ b/fixes_for_5.0.patch @@ -0,0 +1,15 @@ +Index: VirtualBox-5.2.24/src/VBox/Additions/linux/sharedfolders/vfsmod.c +=================================================================== +--- VirtualBox-5.2.24.orig/src/VBox/Additions/linux/sharedfolders/vfsmod.c ++++ VirtualBox-5.2.24/src/VBox/Additions/linux/sharedfolders/vfsmod.c +@@ -37,6 +37,9 @@ + # include + #endif + #include ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 0, 0) ++#include ++#endif + + MODULE_DESCRIPTION(VBOX_PRODUCT " VFS Module for Host File System Access"); + MODULE_AUTHOR(VBOX_VENDOR); + diff --git a/virtualbox.changes b/virtualbox.changes index 361fdd8..c4f7f09 100644 --- a/virtualbox.changes +++ b/virtualbox.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jan 29 15:15:53 UTC 2019 - Larry Finger + +- Part of the API changes for kernel 5.0 are not fixed upstream. Add file "fixes_for_5.0" back in. + ------------------------------------------------------------------- Mon Jan 28 20:29:22 UTC 2019 - Larry Finger diff --git a/virtualbox.spec b/virtualbox.spec index 176b85f..2609776 100644 --- a/virtualbox.spec +++ b/virtualbox.spec @@ -125,6 +125,8 @@ Patch123: switch_to_python3.4+.patch Patch124: fix_32_bit_builds.patch # Use build parameters to control video driver problems Patch125: remove_vbox_video_build.patch +# Fix for API changes in late v5.0 +Patch126: fixes_for_5.0 # fix library search Patch128: fix_lib_search.patch # Fixes for modified kernel in Leap 15.1 @@ -428,6 +430,7 @@ as an "extpack" for VirtualBox. The implementation is licensed under GPL. %patch123 -p1 %patch124 -p1 %patch125 -p1 +%patch126 -p1 %patch128 -p1 %patch129 -p1 From 22387963dade76f62b3373f635615e1e180add8d6eb0b2494993a2f2659386f9 Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Wed, 30 Jan 2019 15:28:35 +0000 Subject: [PATCH 3/6] Fix typo in patch file name. OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=467 --- virtualbox.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virtualbox.spec b/virtualbox.spec index 2609776..ab3719e 100644 --- a/virtualbox.spec +++ b/virtualbox.spec @@ -126,7 +126,7 @@ Patch124: fix_32_bit_builds.patch # Use build parameters to control video driver problems Patch125: remove_vbox_video_build.patch # Fix for API changes in late v5.0 -Patch126: fixes_for_5.0 +Patch126: fixes_for_5.0.patch # fix library search Patch128: fix_lib_search.patch # Fixes for modified kernel in Leap 15.1 From 7b5bd2706488826aedb5dd9cf2ad3e97ccdce25e8ff6b4fa93d35b32ff5a1f8f Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Thu, 31 Jan 2019 19:33:38 +0000 Subject: [PATCH 4/6] - Add changes requested by Security - new file "security_fixes.patch" File UserManual.pdf is resent to clear error in build. OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=468 --- UserManual.pdf | 4 ++-- security_fixes.patch | 35 +++++++++++++++++++++++++++++++++++ virtualbox.changes | 6 ++++++ virtualbox.spec | 3 +++ 4 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 security_fixes.patch diff --git a/UserManual.pdf b/UserManual.pdf index 62e46aa..60caf08 100644 --- a/UserManual.pdf +++ b/UserManual.pdf @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:073648489e87aeda24143a64b13e46f7d6231ff215d75715d16aec558890da0c -size 4326191 +oid sha256:3bc1ef7d3f3a88260f9adc789d908749d8e0f41ef0a4150b71e3b84261717a19 +size 4326192 diff --git a/security_fixes.patch b/security_fixes.patch new file mode 100644 index 0000000..c76cf62 --- /dev/null +++ b/security_fixes.patch @@ -0,0 +1,35 @@ +# This patch file is to warn future maintainers of VirtualBox on openSUSE +# platforms that the distributed versions of vboxadd.sh and vboxdrv.sh +# contain security holes. If you need to use these scripts in the future, +# please consult the Security Group at openSUSE. +# +# January 31, 2019 - Larry Finger +# +Index: VirtualBox-6.0.4/src/VBox/Additions/linux/installer/vboxadd.sh +=================================================================== +--- VirtualBox-6.0.4.orig/src/VBox/Additions/linux/installer/vboxadd.sh ++++ VirtualBox-6.0.4/src/VBox/Additions/linux/installer/vboxadd.sh +@@ -560,6 +560,9 @@ dmnstatus() + fi + } + ++echo "This script has insecurities. It must never be used in openSUSE without consultine Security." ++exit 1 ++ + case "$2" in quiet) + QUIET=yes;; + esac +Index: VirtualBox-6.0.4/src/VBox/Installer/linux/vboxdrv.sh +=================================================================== +--- VirtualBox-6.0.4.orig/src/VBox/Installer/linux/vboxdrv.sh ++++ VirtualBox-6.0.4/src/VBox/Installer/linux/vboxdrv.sh +@@ -37,6 +37,9 @@ DEVICE=/dev/vboxdrv + MODPROBE=/sbin/modprobe + SCRIPTNAME=vboxdrv.sh + ++echo "This script has insecurities. It must never be used in openSUSE without consultine Security." ++exit 1 ++ + # The below is GNU-specific. See VBox.sh for the longer Solaris/OS X version. + TARGET=`readlink -e -- "${0}"` || exit 1 + SCRIPT_DIR="${TARGET%/[!/]*}" diff --git a/virtualbox.changes b/virtualbox.changes index c4f7f09..8dd8fb8 100644 --- a/virtualbox.changes +++ b/virtualbox.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jan 31 19:31:20 UTC 2019 - Larry Finger + +- Add changes requested by Security - new file "security_fixes.patch" + File UserManual.pdf is resent to clear error in build. + ------------------------------------------------------------------- Tue Jan 29 15:15:53 UTC 2019 - Larry Finger diff --git a/virtualbox.spec b/virtualbox.spec index ab3719e..fade30e 100644 --- a/virtualbox.spec +++ b/virtualbox.spec @@ -92,6 +92,8 @@ Patch99: vbox-permissions_warning.diff #PATCH-FIX-OPENSUSE Do not include build dates on binaries, makes build-compare happier Patch100: vbox-no-build-dates.diff Patch101: vbox-default-os-type.diff +# Disable the distributed versions of vboxdrv.sh and vboxadd.sh for security reasons. +Patch102: security_fixes.patch #disable update in vbox gui Patch103: vbox-disable-updates.diff #use pie/fPIE for setuid binaries (bnc#743143) @@ -413,6 +415,7 @@ as an "extpack" for VirtualBox. The implementation is licensed under GPL. %patch99 -p1 %patch100 -p1 %patch101 -p1 +%patch102 -p1 %patch103 -p1 %patch104 -p1 %patch105 -p1 From f7c68dacb334ff6e21fabd1b62f96a108a72f63cd0205893f94f44e80164fe47 Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Wed, 20 Feb 2019 16:32:29 +0000 Subject: [PATCH 5/6] - Remove requires on libvncserver for virtualbox-vnc. OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=469 --- virtualbox.changes | 5 +++++ virtualbox.spec | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/virtualbox.changes b/virtualbox.changes index 8dd8fb8..4cf8f14 100644 --- a/virtualbox.changes +++ b/virtualbox.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Feb 20 16:31:23 UTC 2019 - Larry Finger + +- Remove requires on libvncserver for virtualbox-vnc. + ------------------------------------------------------------------- Thu Jan 31 19:31:20 UTC 2019 - Larry Finger diff --git a/virtualbox.spec b/virtualbox.spec index fade30e..5aa6b96 100644 --- a/virtualbox.spec +++ b/virtualbox.spec @@ -396,7 +396,6 @@ This package contains icons for guest desktop files that were created on the des Summary: VNC desktop sharing Group: System/Emulators/PC Requires: %{name} = %{version} -#Requires: libvncserver %description vnc Virtual Network Computing (VNC) is a graphical desktop sharing system that uses the Remote Frame Buffer From c5353cacf08019b8154341f358944ca6d587cfb2521e10725037f24cd2ac797f Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Wed, 20 Feb 2019 20:38:02 +0000 Subject: [PATCH 6/6] Remove libXcomposite1 from BuildRequires OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=470 --- virtualbox.spec | 1 - 1 file changed, 1 deletion(-) diff --git a/virtualbox.spec b/virtualbox.spec index 5aa6b96..2fb9c3c 100644 --- a/virtualbox.spec +++ b/virtualbox.spec @@ -159,7 +159,6 @@ BuildRequires: gsoap-devel BuildRequires: java-devel >= 1.6.0 BuildRequires: kbuild >= 0.1.9998svn3101 #BuildRequires: kernel-syms -BuildRequires: libXcomposite1 BuildRequires: libcap-devel BuildRequires: libcurl-devel BuildRequires: libelf-devel