Hello community, here is the log from the commit of package virtualbox for openSUSE:Factory checked in at 2018-07-04 23:53:17 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/virtualbox (Old) and /work/SRC/openSUSE:Factory/.virtualbox.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "virtualbox" Wed Jul 4 23:53:17 2018 rev:166 rq:620347 version:5.2.14 Changes: -------- --- /work/SRC/openSUSE:Factory/virtualbox/virtualbox.changes 2018-05-29 10:26:14.213886739 +0200 +++ /work/SRC/openSUSE:Factory/.virtualbox.new/virtualbox.changes 2018-07-04 23:54:39.503923406 +0200 @@ -1,0 +2,39 @@ +Tue Jul 3 01:17:37 UTC 2018 - [email protected] + +- Version update to 5.2.14 (released July 02 2018 by Oracle) + +This is a maintenance release. The following items were fixed and/or added: + +User interface: fixed a segmentation fault when accessing the interface through VNC (bug #16348) +User interface: X11: handle repeating keys on the host system correctly (bug #1296, previously fixed, 5.1.0 regression) +VMM: Fixed emulation of the undocumented SALC instruction +VMM: Fixed emulation of so-called "huge unreal mode" (bug #17744); this in practice only affected Intel CPUs with VT-x without unrestricted execution. +Keyboard: The PS/2 keyboard emulation has been corrected to not queue partial scan code sequences (bug #17709); this problem was likely only visible on Linux hosts due to losing the fix for bug #1296 +Storage: Fixed CUE file support to correct REM keyword parsing (bug #17783) +USB: Fixed a problem where the emulated xHCI device under very rare circumstances failed to report an empty isochronous transfer ring error, causing the transfers on the corresponding endpoint to stop. +Audio: fixed Linux kernel log flooding (bug #17759) +Apple hosts: make kernel driver load with Mac OS Mojave pre-release (bug #17805). +Linux guests: made vboxvideo driver build with kernel 4.17 (bug #17801) and with pre-3.14 and EL 7.1 kernels (bug #17771) + +Removed "fixes_for_4.17.patch" - fixes merged upstream. + +------------------------------------------------------------------- +Tue Jun 26 15:11:29 UTC 2018 - [email protected] + +- Fix typo in host KMP line. + +------------------------------------------------------------------- +Tue Jun 19 17:46:44 UTC 2018 - [email protected] + +- Add file "fix_32_bit_builds.patch" to fix error in 32-bit builds. + Add file "switch_to_python3.6.patch" to convert to Python3. + Update warning regarding the security hole in USB passthrough. The text no longer refers + to an old bugzilla entry (bsc#1097248). + Script vboxguestconfig.sh is fixed. + +------------------------------------------------------------------- +Tue Jun 19 07:43:42 UTC 2018 - [email protected] + +- Use %{?linux_make_arch} when building kernel modules (boo#1098050). + +------------------------------------------------------------------- Old: ---- VirtualBox-5.2.12-patched.tar.bz2 fixes_for_4.17.patch New: ---- VirtualBox-5.2.14-patched.tar.bz2 fix_32_bit_builds.patch switch_to_python3.6.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ virtualbox.spec ++++++ --- /var/tmp/diff_new_pack.PZDDET/_old 2018-07-04 23:54:41.375921341 +0200 +++ /var/tmp/diff_new_pack.PZDDET/_new 2018-07-04 23:54:41.383921331 +0200 @@ -21,6 +21,18 @@ %define _fillupdir /var/adm/fillup-templates %endif +# Use Python3 rather than Python2 by default +%define __python /usr/bin/python3 + +# In /usr/lib/rpm/macros, py_compile is hard-wired to use the command "python". I think +# this is a bug for which the work-around is to redefine that macro to use python3. +%define py_compile(O) \ +find %1 -name '*.pyc' -exec rm -f {} \\; \ +python3 -c "import sys, os, compileall; br='%{buildroot}'; compileall.compile_dir(sys.argv[1], ddir=br and (sys.argv[1][len(os.path.abspath(br)):]+'/') or None)" %1 \ +%{-O: \ +find %1 -name '*.pyo' -exec rm -f {} \\; \ +python3 -O -c "import sys, os, compileall; br='%{buildroot}'; compileall.compile_dir(sys.argv[1], ddir=br and (sys.argv[1][len(os.path.abspath(br)):]+'/') or None)" %1 \ +} # Do not provide libGL.so symbols - they are owned by Mesa already and this could potentially confuse rpm/zypp %global __provides_exclude ^libE?GL.so.1.*$ @@ -28,7 +40,7 @@ %define _udevrulesdir %{_sysconfdir}/udev/rules.d Name: virtualbox # ********* If the VB version exceeds 5.2.x, notify the libvirt maintainer!! -Version: 5.2.12 +Version: 5.2.14 Release: 0 Summary: VirtualBox is an Emulator License: GPL-2.0-or-later @@ -115,11 +127,13 @@ Patch120: fixes_for_python.patch # Remove vboxvideo from build Patch121: remove_vbox_video_build.patch -# Fix build for kernel 4.17 -Patch123: fixes_for_4.17.patch Patch124: gcc8-configure.patch # Fix build for Qt 5.11 Patch125: fixes_for_Qt5.11.patch +# Switch to Python 3.6 +Patch126: switch_to_python3.6.patch +# Fix 32-bit builds +Patch127: fix_32_bit_builds.patch # BuildRequires: LibVNCServer-devel BuildRequires: SDL-devel @@ -159,7 +173,7 @@ BuildRequires: module-init-tools BuildRequires: pam-devel BuildRequires: pulseaudio-devel -BuildRequires: python2-devel +BuildRequires: python3-devel BuildRequires: quilt BuildRequires: sed BuildRequires: update-desktop-files @@ -254,8 +268,8 @@ %package host-KMP Summary: Host kernel module for VirtualBox -##\%kernel_module_package -t %%{_builddir}/virtualbox-kmp-template -p %%{SOURCE7} -n %%{name}-host -f %%{SOURCE5} -x kdump um xen pae xenpae pv 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 Requires: %{kernel_module_package_buildreqs} %description host-KMP @@ -303,17 +317,21 @@ VirtualBox guest addition tools. ########################################### -%package -n python2-%{name} +%package -n python3-%{name} Summary: Python bindings for %{name} Group: Development/Libraries/Python Requires: %{name} = %{version} #rename from "ose" version: -Provides: python-%{name} = %{version}-%{release} +Provides: python3-%{name} = %{version}-%{release} Obsoletes: python-%{name} < %{version}-%{release} -Provides: python-%{name}-ose = %{version} +Obsoletes: python2-%{name} < %{version}-%{release} +Obsoletes: python3-%{name} < %{version}-%{release} +Provides: python3-%{name}-ose = %{version} Obsoletes: python-%{name}-ose < %{version} +Obsoletes: python2-%{name}-ose < %{version} +Obsoletes: python3-%{name}-ose < %{version} -%description -n python2-%{name} +%description -n python3-%{name} Python XPCOM bindings to %{name}. Used e.g. by vboxgtk package. ########################################### @@ -321,7 +339,7 @@ Summary: Devel files for %{name} Group: Development/Libraries/Other Requires: %{name} = %{version} -Requires: python-%{name} = %{version} +Requires: python3-%{name} = %{version} #rename from "ose" version: Provides: %{name}-ose-devel = %{version} Obsoletes: %{name}-ose-devel < %{version} @@ -347,8 +365,8 @@ %package guest-source Summary: Source files for %{name} guest kernel modules +#Requires: %{name} = %{version} Group: Development/Sources -Requires: %{name} = %{version} Requires: gcc Requires: make BuildArch: noarch @@ -412,9 +430,10 @@ %endif %patch120 -p1 %patch121 -p1 -%patch123 -p1 %patch124 -p1 %patch125 -p1 +%patch126 -p1 +%patch127 -p1 #copy user manual cp %{SOURCE1} UserManual.pdf @@ -525,7 +544,7 @@ $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 modules \ + make -j2 -C %{_prefix}/src/linux-obj/%{_target_cpu}/$flavor %{?linux_make_arch} modules \ M=$PWD/modules_build_dir/$flavor/$module_name done done @@ -696,7 +715,7 @@ echo "entering python-virtualbox install section" ###################################################### pushd out/linux.*/release/bin/sdk/installer -VBOX_INSTALL_PATH=%{_vbox_instdir} python vboxapisetup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=%{_tmppath}/SITE_FILES +VBOX_INSTALL_PATH=%{_vbox_instdir} python3 vboxapisetup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=%{_tmppath}/SITE_FILES popd install -d -m 755 %{buildroot}%{_vbox_instdir}/sdk/bindings/xpcom cp -r out/linux.*/release/bin/sdk/bindings/xpcom/python %{buildroot}%{_vbox_instdir}/sdk/bindings/xpcom @@ -970,13 +989,13 @@ %dir /media %endif -%files -n python2-%{name} -f %{_tmppath}/SITE_FILES +%files -n python3-%{name} -f %{_tmppath}/SITE_FILES %defattr(-, root, root) %dir %{_vbox_instdir}/sdk %dir %{_vbox_instdir}/sdk/bindings %dir %{_vbox_instdir}/sdk/bindings/xpcom %{_vbox_instdir}/sdk/bindings/xpcom/python -%attr(0755, root, root) %{_vbox_instdir}/VBoxPython2_7.so +%attr(0755, root, root) %{_vbox_instdir}/VBoxPython3_6m.so %files devel %defattr(-,root, root) ++++++ UserManual.pdf ++++++ (binary differes) ++++++ VirtualBox-5.2.12-patched.tar.bz2 -> VirtualBox-5.2.14-patched.tar.bz2 ++++++ /work/SRC/openSUSE:Factory/virtualbox/VirtualBox-5.2.12-patched.tar.bz2 /work/SRC/openSUSE:Factory/.virtualbox.new/VirtualBox-5.2.14-patched.tar.bz2 differ: char 11, line 1 ++++++ fix_32_bit_builds.patch ++++++ Index: VirtualBox-5.2.12/src/VBox/Additions/linux/sharedfolders/utils.c =================================================================== --- VirtualBox-5.2.12.orig/src/VBox/Additions/linux/sharedfolders/utils.c +++ VirtualBox-5.2.12/src/VBox/Additions/linux/sharedfolders/utils.c @@ -50,7 +50,11 @@ static void sf_timespec_from_ftime(RTTIM RTTimeSpecSetNano(ts, t); } #else /* >= 2.6.0 */ +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 18, 0) +static void sf_ftime_from_timespec(struct timespec64 *tv, RTTIMESPEC *ts) +#else static void sf_ftime_from_timespec(struct timespec *tv, RTTIMESPEC *ts) +#endif { int64_t t = RTTimeSpecGetNano(ts); int64_t nsec; @@ -60,7 +64,11 @@ static void sf_ftime_from_timespec(struc tv->tv_nsec = nsec; } +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 18, 0) +static void sf_timespec_from_ftime(RTTIMESPEC *ts, struct timespec64 *tv) +#else static void sf_timespec_from_ftime(RTTIMESPEC *ts, struct timespec *tv) +#endif { int64_t t = (int64_t)tv->tv_nsec + (int64_t)tv->tv_sec * 1000000000; RTTimeSpecSetNano(ts, t); ++++++ fixes_for_Qt5.11.patch ++++++ --- /var/tmp/diff_new_pack.PZDDET/_old 2018-07-04 23:54:41.451921257 +0200 +++ /var/tmp/diff_new_pack.PZDDET/_new 2018-07-04 23:54:41.451921257 +0200 @@ -1,7 +1,7 @@ -Index: VirtualBox-5.2.12/src/VBox/Frontends/VirtualBox/src/precomp_vcc.h +Index: VirtualBox-5.2.14/src/VBox/Frontends/VirtualBox/src/precomp_vcc.h =================================================================== ---- VirtualBox-5.2.12.orig/src/VBox/Frontends/VirtualBox/src/precomp_vcc.h -+++ VirtualBox-5.2.12/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 @@ -83,6 +83,7 @@ #include <QtWidgets/qgraphicsitem.h> #include <QtWidgets/qgraphicslayoutitem.h> @@ -10,13 +10,13 @@ #include <QtCore/QMetaType> #include <QtGui/qevent.h> #include <QtGui/qtouchdevice.h> -Index: VirtualBox-5.2.12/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsProxy.cpp +Index: VirtualBox-5.2.14/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsProxy.cpp =================================================================== ---- VirtualBox-5.2.12.orig/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsProxy.cpp -+++ VirtualBox-5.2.12/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsProxy.cpp -@@ -21,6 +21,7 @@ - +--- 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 @@ /* Qt includes: */ + # include <QButtonGroup> # include <QRegExpValidator> +#include <QButtonGroup> ++++++ fixes_for_python.patch ++++++ --- /var/tmp/diff_new_pack.PZDDET/_old 2018-07-04 23:54:41.463921243 +0200 +++ /var/tmp/diff_new_pack.PZDDET/_new 2018-07-04 23:54:41.463921243 +0200 @@ -1,5 +1,5 @@ To eliminate an rpmlint error, the shebang for this script should be -changed to use pythin directly, rather than through env. +changed to use python directly, rather than through env. When openSUSE switches to Python3, the shebang below should be changed to "#!/usr/bin/python3". @@ -12,7 +12,7 @@ +++ VirtualBox-5.1.30/src/VBox/Frontends/VBoxShell/vboxshell.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python -+#!/usr/bin/python ++#!/usr/bin/python3 # -*- coding: utf-8 -*- # $Id: vboxshell.py $ ++++++ switch_to_python3.6.patch ++++++ Index: VirtualBox-5.2.12/configure =================================================================== --- VirtualBox-5.2.12.orig/configure +++ VirtualBox-5.2.12/configure @@ -1953,17 +1953,17 @@ extern "C" int main(void) { Py_Initialize(); printf("found version %s", PY_VERSION); -#if PY_VERSION_HEX >= 0x02060000 +#if PY_VERSION_HEX >= 0x03060000 printf(", OK.\n"); return 0; #else - printf(", expected version 2.6 or higher\n"); + printf(", expected version 3.6 or higher\n"); return 1; #endif } EOF found= - SUPPYTHONLIBS="python2.7 python2.6 python3.1 python3.2 python3.3 python3.4 python3.4m python3.5 python3.5m" + SUPPYTHONLIBS="python3.6m" 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: VirtualBox-5.2.12/src/VBox/Installer/linux/routines.sh =================================================================== --- VirtualBox-5.2.12.orig/src/VBox/Installer/linux/routines.sh +++ VirtualBox-5.2.12/src/VBox/Installer/linux/routines.sh @@ -367,8 +367,8 @@ terminate_proc() { maybe_run_python_bindings_installer() { VBOX_INSTALL_PATH="${1}" - PYTHON=python - if [ "`python -c 'import sys + PYTHON=python3 + if [ "`python3 -c 'import sys 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: VirtualBox-5.2.12/src/bldprogs/scm.cpp =================================================================== --- VirtualBox-5.2.12.orig/src/bldprogs/scm.cpp +++ VirtualBox-5.2.12/src/bldprogs/scm.cpp @@ -2031,7 +2031,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) ) - pszTreatAs = "python"; + pszTreatAs = "python3"; else if ( (cchFirst >= 13 && strncmp(pchFirst, "/usr/bin/perl", 13) == 0) || (cchFirst >= 17 && strncmp(pchFirst, "/usr/bin/env perl", 17) == 0) ) pszTreatAs = "perl"; Index: VirtualBox-5.2.12/src/libs/libxml2-2.9.4/configure =================================================================== --- VirtualBox-5.2.12.orig/src/libs/libxml2-2.9.4/configure +++ VirtualBox-5.2.12/src/libs/libxml2-2.9.4/configure @@ -15153,10 +15153,10 @@ PYTHON_SITE_PACKAGES= PYTHON_TESTS= pythondir= if test "$with_python" != "no" ; then - if test -x "$with_python/bin/python" + if test -x "$with_python/bin/python3" then - echo Found python in $with_python/bin/python - PYTHON="$with_python/bin/python" + echo Found python in $with_python/bin/python3 + PYTHON="$with_python/bin/python3" else if test -x "$with_python/python.exe" then @@ -15174,7 +15174,8 @@ if test "$with_python" != "no" ; then with_python=`$PYTHON -c "import sys; print(sys.exec_prefix)"` else # Extract the first word of "python python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5", so it can be a program name with args. -set dummy python python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5; ac_word=$2 +PYTHON=python3 +set dummy python3 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5; ac_word=$2 { $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: VirtualBox-5.2.12/src/VBox/ValidationKit/testboxscript/setup.sh =================================================================== --- VirtualBox-5.2.12.orig/src/VBox/ValidationKit/testboxscript/setup.sh +++ VirtualBox-5.2.12/src/VBox/ValidationKit/testboxscript/setup.sh @@ -644,7 +644,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);\ "; - for python in python2.7 python2.6 python2.5 python; + for python in python3.6 python2.7 python2.6 python2.5 python; do python=`which ${python} 2> /dev/null` if [ -n "${python}" -a -x "${python}" ]; then Index: VirtualBox-5.2.12/src/VBox/Installer/linux/rpm/VirtualBox.tmpl.spec =================================================================== --- VirtualBox-5.2.12.orig/src/VBox/Installer/linux/rpm/VirtualBox.tmpl.spec +++ VirtualBox-5.2.12/src/VBox/Installer/linux/rpm/VirtualBox.tmpl.spec @@ -20,7 +20,7 @@ %define %PYTHON% 1 %define VBOXDOCDIR %{_defaultdocdir}/%NAME% %global __requires_exclude_from ^/usr/lib/virtualbox/VBoxPython.*$ -%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%{!?python_sitelib: %define python_sitelib python3 -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Summary: Oracle VM VirtualBox Name: %NAME% @@ -82,7 +82,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 && \ - %{__python} ./vboxapisetup.py install --prefix %{_prefix} --root $RPM_BUILD_ROOT) + %{python3} ./vboxapisetup.py install --prefix %{_prefix} --root $RPM_BUILD_ROOT) %endif rm -rf sdk/installer mv nls $RPM_BUILD_ROOT/usr/share/virtualbox Index: VirtualBox-5.2.12/src/libs/libxml2-2.9.4/libxml.spec.in =================================================================== --- VirtualBox-5.2.12.orig/src/libs/libxml2-2.9.4/libxml.spec.in +++ VirtualBox-5.2.12/src/libs/libxml2-2.9.4/libxml.spec.in @@ -101,11 +101,11 @@ rm -fr %{buildroot} make install DESTDIR=%{buildroot} -%if 0%{?with_python3} +%if 0%{?with_python} make clean -%configure --with-python=%{__python3} +%configure --with-python=python3 make install DESTDIR=%{buildroot} -%endif # with_python3 +%endif # with_python rm -f $RPM_BUILD_ROOT%{_libdir}/*.la Index: VirtualBox-5.2.12/src/libs/libxml2-2.9.4/libxml2.spec =================================================================== --- VirtualBox-5.2.12.orig/src/libs/libxml2-2.9.4/libxml2.spec +++ VirtualBox-5.2.12/src/libs/libxml2-2.9.4/libxml2.spec @@ -103,7 +103,7 @@ make install DESTDIR=%{buildroot} %if 0%{?with_python3} make clean -%configure --with-python=%{__python3} +%configure --with-python=python3 make install DESTDIR=%{buildroot} %endif # with_python3 ++++++ vbox-usb-warning.diff ++++++ --- /var/tmp/diff_new_pack.PZDDET/_old 2018-07-04 23:54:41.511921190 +0200 +++ /var/tmp/diff_new_pack.PZDDET/_new 2018-07-04 23:54:41.511921190 +0200 @@ -49,11 +49,10 @@ =================================================================== --- /dev/null +++ VirtualBox-5.1.22/src/apps/VBoxUSB_DevRules/VBoxUSB_DevRules.cpp -@@ -0,0 +1,26 @@ +@@ -0,0 +1,25 @@ +#include <QtWidgets/QApplication> +#include <QtWidgets/QMessageBox> -+#include <QtWidgets/QPushButton> -+ ++#include <QtWidgets/QPushButton>+ +int main(int argc, char *argv[]) +{ + QApplication app(argc, argv); @@ -61,13 +60,13 @@ + QPushButton *myYesButton = msgBox.addButton("Enable", QMessageBox::YesRole); + QPushButton *myNoButton = msgBox.addButton("Disable", QMessageBox::NoRole); + msgBox.setWindowTitle(QObject::tr("USB Rules and Permissions !")); -+ msgBox.setText(QObject::tr("USB passthrough opens a security hole. " -+ "Please read \nhttps://bugzilla.novell.com/show_bug.cgi?id=664520\n" -+ "to understand the problem.\n\nWe regard USB passthrough to be extremely useful and worth the security risk. " -+ "Thus the code defaults to enabling this feature. If you agree that the risk is acceptable, then click 'Enable'.\n" ++ msgBox.setText(QObject::tr("USB passthrough requires read/write access to USB devices. " ++ "As a result, it opens a security hole.\n\n" ++ "Nonetheless, this feature is extremely useful and it may be worth the security risk. " ++ "Thus the code defaults to enabling it.\n\nIf you agree that the risk is acceptable, then click 'Enable'.\n" + "You will not be asked this question again when VB is updated. If you later change your mind, run 'rm ~/.vbox/*'\n\n" + "If you wish to disable USB passthrough to plug the security hole, then click 'Disable'. " -+ "You will be asked for the system password, and /etc/udev/rules.d/60-vboxdrv.rules will be changed.\n" ++ "You will be asked for the system password, and /etc/udev/rules.d/60-vboxdrv.rules will be changed.\n\n" + "These changes cannot be preserved through VB updates, thus this screen will be displayed again at that time.")); + msgBox.exec(); + app.quit(); ++++++ vbox-vboxadd-init-script.diff ++++++ --- /var/tmp/diff_new_pack.PZDDET/_old 2018-07-04 23:54:41.523921177 +0200 +++ /var/tmp/diff_new_pack.PZDDET/_new 2018-07-04 23:54:41.523921177 +0200 @@ -1,7 +1,7 @@ -Index: VirtualBox-5.2.8/src/VBox/Additions/linux/installer/vboxadd.sh +Index: VirtualBox-5.2.14/src/VBox/Additions/linux/installer/vboxadd.sh =================================================================== ---- VirtualBox-5.2.8.orig/src/VBox/Additions/linux/installer/vboxadd.sh -+++ VirtualBox-5.2.8/src/VBox/Additions/linux/installer/vboxadd.sh +--- VirtualBox-5.2.14.orig/src/VBox/Additions/linux/installer/vboxadd.sh ++++ VirtualBox-5.2.14/src/VBox/Additions/linux/installer/vboxadd.sh @@ -26,11 +26,14 @@ # Provides: vboxadd # Required-Start: @@ -18,7 +18,7 @@ ### END INIT INFO ## @todo This file duplicates a lot of script with vboxdrv.sh. When making -@@ -130,18 +133,9 @@ log() +@@ -138,18 +141,9 @@ module_build_log() dev=/dev/vboxguest userdev=/dev/vboxuser @@ -37,7 +37,7 @@ running_vboxguest() { lsmod | grep -q "vboxguest[^_-]" -@@ -184,12 +178,6 @@ do_vboxguest_non_udev() +@@ -192,12 +186,6 @@ do_vboxguest_non_udev() fail "Cannot create device $dev with major $maj and minor $min" } fi @@ -50,7 +50,7 @@ if [ ! -c $userdev ]; then maj=10 -@@ -200,12 +188,6 @@ do_vboxguest_non_udev() +@@ -208,12 +196,6 @@ do_vboxguest_non_udev() rmmod vboxguest 2>/dev/null fail "Cannot create device $userdev with major $maj and minor $min" } @@ -63,7 +63,7 @@ fi fi } -@@ -215,9 +197,8 @@ start() +@@ -223,9 +205,8 @@ start() begin "Starting." # If we got this far assume that the slow set-up has been done. QUICKSETUP=yes @@ -75,7 +75,7 @@ no_udev=1 running_vboxguest || { rm -f $dev || { -@@ -230,7 +211,7 @@ start() +@@ -238,7 +219,7 @@ start() $MODPROBE vboxguest >/dev/null 2>&1 || { setup @@ -84,15 +84,7 @@ fail "modprobe vboxguest failed" } case "$no_udev" in 1) -@@ -253,14 +234,15 @@ start() - fi # INSTALL_NO_MODULE_BUILDS - - # Put the X.Org driver in place. This is harmless if it is not needed. -- "${INSTALL_DIR}/init/vboxadd-x11" setup 2>> "${LOG}" -+ #/sbin/rcvboxadd-x11 setup - # Install the guest OpenGL drivers. For now we don't support - # multi-architecture installations - rm -f /etc/ld.so.conf.d/00vboxvideo.conf +@@ -269,7 +250,8 @@ start() rm -Rf /var/lib/VBoxGuestAdditions/lib if /usr/bin/VBoxClient --check3d 2>/dev/null; then mkdir -p /var/lib/VBoxGuestAdditions/lib @@ -102,7 +94,7 @@ # 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. -@@ -271,6 +253,15 @@ start() +@@ -280,6 +262,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 @@ -118,7 +110,7 @@ fi ldconfig -@@ -403,9 +394,9 @@ create_udev_rule() +@@ -414,9 +405,9 @@ create_udev_rule() echo "KERNEL=${udev_fix}\"vboxuser\", NAME=\"vboxuser\", OWNER=\"vboxadd\", MODE=\"0666\"" >> /etc/udev/rules.d/60-vboxadd.rules fi } @@ -131,7 +123,7 @@ # And a post-installation script for rebuilding modules when a new kernel # is installed. mkdir -p /etc/kernel/postinst.d /etc/kernel/prerm.d -@@ -435,45 +426,21 @@ shared_folder_setup() +@@ -446,45 +437,21 @@ 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 @@ -182,11 +174,11 @@ depmod # Remove old module sources -@@ -483,13 +450,14 @@ cleanup() +@@ -494,13 +461,14 @@ cleanup() fi # Clean-up X11-related bits -- "${INSTALL_DIR}/init/vboxadd-x11" cleanup 2>> "${LOG}" +- "${INSTALL_DIR}/init/vboxadd-x11" cleanup + #/sbin/rcvboxadd-x11 cleanup # Remove other files @@ -201,10 +193,10 @@ fi rm /etc/udev/rules.d/60-vboxadd.rules 2>/dev/null } -Index: VirtualBox-5.2.8/src/VBox/Additions/linux/installer/vboxadd-service.sh +Index: VirtualBox-5.2.14/src/VBox/Additions/linux/installer/vboxadd-service.sh =================================================================== ---- VirtualBox-5.2.8.orig/src/VBox/Additions/linux/installer/vboxadd-service.sh -+++ VirtualBox-5.2.8/src/VBox/Additions/linux/installer/vboxadd-service.sh +--- VirtualBox-5.2.14.orig/src/VBox/Additions/linux/installer/vboxadd-service.sh ++++ VirtualBox-5.2.14/src/VBox/Additions/linux/installer/vboxadd-service.sh @@ -26,7 +26,7 @@ # Provides: vboxadd-service # Required-Start: vboxadd @@ -214,10 +206,10 @@ # Default-Stop: 0 1 6 # X-Conflicts-With: systemd-timesyncd.service # Description: VirtualBox Additions Service -Index: VirtualBox-5.2.8/src/VBox/Installer/linux/vboxautostart-service.sh +Index: VirtualBox-5.2.14/src/VBox/Installer/linux/vboxautostart-service.sh =================================================================== ---- VirtualBox-5.2.8.orig/src/VBox/Installer/linux/vboxautostart-service.sh -+++ VirtualBox-5.2.8/src/VBox/Installer/linux/vboxautostart-service.sh +--- VirtualBox-5.2.14.orig/src/VBox/Installer/linux/vboxautostart-service.sh ++++ VirtualBox-5.2.14/src/VBox/Installer/linux/vboxautostart-service.sh @@ -23,7 +23,7 @@ # Provides: vboxautostart-service # Required-Start: vboxdrv @@ -227,10 +219,10 @@ # Default-Stop: 0 1 6 # Description: VirtualBox autostart service ### END INIT INFO -Index: VirtualBox-5.2.8/src/VBox/Installer/linux/vboxballoonctrl-service.sh +Index: VirtualBox-5.2.14/src/VBox/Installer/linux/vboxballoonctrl-service.sh =================================================================== ---- VirtualBox-5.2.8.orig/src/VBox/Installer/linux/vboxballoonctrl-service.sh -+++ VirtualBox-5.2.8/src/VBox/Installer/linux/vboxballoonctrl-service.sh +--- VirtualBox-5.2.14.orig/src/VBox/Installer/linux/vboxballoonctrl-service.sh ++++ VirtualBox-5.2.14/src/VBox/Installer/linux/vboxballoonctrl-service.sh @@ -23,7 +23,7 @@ # Provides: vboxballoonctrl-service # Required-Start: vboxdrv @@ -240,10 +232,10 @@ # Default-Stop: 0 1 6 # Description: VirtualBox watchdog daemon ### END INIT INFO -Index: VirtualBox-5.2.8/src/VBox/ValidationKit/testboxscript/linux/testboxscript-service.sh +Index: VirtualBox-5.2.14/src/VBox/ValidationKit/testboxscript/linux/testboxscript-service.sh =================================================================== ---- VirtualBox-5.2.8.orig/src/VBox/ValidationKit/testboxscript/linux/testboxscript-service.sh -+++ VirtualBox-5.2.8/src/VBox/ValidationKit/testboxscript/linux/testboxscript-service.sh +--- VirtualBox-5.2.14.orig/src/VBox/ValidationKit/testboxscript/linux/testboxscript-service.sh ++++ VirtualBox-5.2.14/src/VBox/ValidationKit/testboxscript/linux/testboxscript-service.sh @@ -31,7 +31,7 @@ # Provides: testboxscript-service # Required-Start: $network @@ -253,10 +245,10 @@ # Default-Stop: 0 1 6 # Description: TestBoxScript service ### END INIT INFO -Index: VirtualBox-5.2.8/src/VBox/ValidationKit/utils/TestExecServ/linux/vboxtxs-nat.sh +Index: VirtualBox-5.2.14/src/VBox/ValidationKit/utils/TestExecServ/linux/vboxtxs-nat.sh =================================================================== ---- VirtualBox-5.2.8.orig/src/VBox/ValidationKit/utils/TestExecServ/linux/vboxtxs-nat.sh -+++ VirtualBox-5.2.8/src/VBox/ValidationKit/utils/TestExecServ/linux/vboxtxs-nat.sh +--- VirtualBox-5.2.14.orig/src/VBox/ValidationKit/utils/TestExecServ/linux/vboxtxs-nat.sh ++++ VirtualBox-5.2.14/src/VBox/ValidationKit/utils/TestExecServ/linux/vboxtxs-nat.sh @@ -31,7 +31,7 @@ # Provides: vboxtxs # Required-Start: $network @@ -266,10 +258,10 @@ # Default-Stop: 0 1 6 # Description: VirtualBox Test Execution Service ### END INIT INFO -Index: VirtualBox-5.2.8/src/VBox/ValidationKit/utils/TestExecServ/linux/vboxtxs.sh +Index: VirtualBox-5.2.14/src/VBox/ValidationKit/utils/TestExecServ/linux/vboxtxs.sh =================================================================== ---- VirtualBox-5.2.8.orig/src/VBox/ValidationKit/utils/TestExecServ/linux/vboxtxs.sh -+++ VirtualBox-5.2.8/src/VBox/ValidationKit/utils/TestExecServ/linux/vboxtxs.sh +--- VirtualBox-5.2.14.orig/src/VBox/ValidationKit/utils/TestExecServ/linux/vboxtxs.sh ++++ VirtualBox-5.2.14/src/VBox/ValidationKit/utils/TestExecServ/linux/vboxtxs.sh @@ -31,7 +31,7 @@ # Provides: vboxtxs # Required-Start: $network ++++++ vbox-vboxdrv-init-script.diff ++++++ --- /var/tmp/diff_new_pack.PZDDET/_old 2018-07-04 23:54:41.527921173 +0200 +++ /var/tmp/diff_new_pack.PZDDET/_new 2018-07-04 23:54:41.527921173 +0200 @@ -1,7 +1,7 @@ -Index: VirtualBox-5.2.0/src/VBox/Installer/linux/vboxdrv.sh +Index: VirtualBox-5.2.14/src/VBox/Installer/linux/vboxdrv.sh =================================================================== ---- VirtualBox-5.2.0.orig/src/VBox/Installer/linux/vboxdrv.sh -+++ VirtualBox-5.2.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 @@ -19,11 +19,12 @@ # ### BEGIN INIT INFO @@ -19,7 +19,7 @@ ### END INIT INFO ## @todo This file duplicates a lot of script with vboxadd.sh. When making -@@ -261,13 +262,6 @@ start() +@@ -285,13 +286,6 @@ start() fi fi # ensure permissions @@ -33,34 +33,46 @@ if ! $MODPROBE vboxnetflt > /dev/null 2>&1; then failure "modprobe vboxnetflt failed. Please use 'dmesg' to find out why" fi -@@ -396,35 +390,8 @@ cleanup() +@@ -420,47 +414,8 @@ cleanup() # setup_script setup() { - begin_msg "Building VirtualBox kernel modules" console -- if ! $BUILDINTMP \ +- log "Building the main VirtualBox module." +- if ! myerr=`$BUILDINTMP \ - --save-module-symvers /tmp/vboxdrv-Module.symvers \ - --module-source "$MODULE_SRC/vboxdrv" \ -- --no-print-directory install >> $LOG 2>&1; then +- --no-print-directory install 2>&1`; then - "${INSTALL_DIR}/check_module_dependencies.sh" || exit 1 +- log "Error building the module:" +- module_build_log "$myerr" - failure "Look at $LOG to find out what went wrong" - fi -- if ! $BUILDINTMP \ +- log "Building the net filter module." +- if ! myerr=`$BUILDINTMP \ - --use-module-symvers /tmp/vboxdrv-Module.symvers \ - --module-source "$MODULE_SRC/vboxnetflt" \ -- --no-print-directory install >> $LOG 2>&1; then +- --no-print-directory install 2>&1`; then +- log "Error building the module:" +- module_build_log "$myerr" - failure "Look at $LOG to find out what went wrong" - fi -- if ! $BUILDINTMP \ +- log "Building the net adaptor module." +- if ! myerr=`$BUILDINTMP \ - --use-module-symvers /tmp/vboxdrv-Module.symvers \ - --module-source "$MODULE_SRC/vboxnetadp" \ -- --no-print-directory install >> $LOG 2>&1; then +- --no-print-directory install 2>&1`; then +- log "Error building the module:" +- module_build_log "$myerr" - failure "Look at $LOG to find out what went wrong" - fi -- if ! $BUILDINTMP \ +- log "Building the PCI pass-through module." +- if ! myerr=`$BUILDINTMP \ - --use-module-symvers /tmp/vboxdrv-Module.symvers \ - --module-source "$MODULE_SRC/vboxpci" \ -- --no-print-directory install >> $LOG 2>&1; then +- --no-print-directory install 2>&1`; then +- log "Error building the module:" +- module_build_log "$myerr" - failure "Look at $LOG to find out what went wrong" - fi - rm -f /etc/vbox/module_not_compiled ++++++ vboxguestconfig.sh ++++++ --- /var/tmp/diff_new_pack.PZDDET/_old 2018-07-04 23:54:41.587921106 +0200 +++ /var/tmp/diff_new_pack.PZDDET/_new 2018-07-04 23:54:41.587921106 +0200 @@ -12,16 +12,19 @@ # Test if vboxsf module loaded. If it is, skip everything else loaded=$(lsmod | grep vboxsf) if [ -n "$loaded" ] ; then - echo "Kernel modules available - exiting..." - exit 0 + echo "Kernel modules available. but we will continue..." fi # # Check if virtualbox-guest-source is installed, quit if not -if ! rpm -qf "$SOURCE/virtualbox/src/Makefile" &>/dev/null ; then +if ! rpm -qf "$SOURCE/additions/guest_src.tar.bz2" &>/dev/null ; then echo "Sources for building guest modules are not present," echo "Use 'sudo zypper install virtualbox-guest-source' to install them. Quitting .." exit 1 fi +# unpack source +pushd $SOURCE > /dev/null 2>&1 +tar jxf additions/guest_src.tar.bz2 > /dev/null 2>&1 +popd > /dev/null 2>&1 # # Check if virtualbox-guest-source version matches virtualbox version if [ "$(rpm -q virtualbox virtualbox-guest-source --queryformat='%{version}-%{release}\n' 2>/dev/null | sort -u | wc -l)" -ne "1" ] ; then @@ -29,10 +32,8 @@ echo "This situation is probably not fatal, thus we will try to continue .." fi # Prerequisites are available, start build -pushd $SOURCE > /dev/null 2>&1 +pushd $SOURCE/additions/src > /dev/null 2>&1 echo "Building kernel modules..." -tar jxf addition/guest_src.tar.bz2 > /dev/null 2>&1 -cd additions/src make > $LOGFILE 2>&1 if [ "$?" -ne 0 ] ; then echo "" ++++++ virtualbox-sed-params.patch ++++++ --- /var/tmp/diff_new_pack.PZDDET/_old 2018-07-04 23:54:41.675921010 +0200 +++ /var/tmp/diff_new_pack.PZDDET/_new 2018-07-04 23:54:41.675921010 +0200 @@ -1,8 +1,8 @@ -Index: VirtualBox-5.2.0/src/VBox/Main/Makefile.kmk +Index: VirtualBox-5.2.14/src/VBox/Main/Makefile.kmk =================================================================== ---- VirtualBox-5.2.0.orig/src/VBox/Main/Makefile.kmk -+++ VirtualBox-5.2.0/src/VBox/Main/Makefile.kmk -@@ -1521,7 +1521,7 @@ $(VBoxAPIWrap_0_OUTDIR)/VBoxAPI.d.ts \ +--- 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 \ $(QUIET)$(VBOX_XSLTPROC) --stringparam KBUILD_HOST $(KBUILD_HOST) \ --stringparam generating "dtrace-probes" \ -o "$@" $(VBoxAPIWrap_VBOX_XSLT) $(VBOX_XIDL_FILE) @@ -11,11 +11,11 @@ "$(VBOX_PATH_MAIN_SRC)/src-all/VBoxAPI-start.d" \ "$@" \ "$(VBOX_PATH_MAIN_SRC)/src-all/VBoxAPI-end.d" -Index: VirtualBox-5.2.0/src/VBox/Devices/Makefile.kmk +Index: VirtualBox-5.2.14/src/VBox/Devices/Makefile.kmk =================================================================== ---- VirtualBox-5.2.0.orig/src/VBox/Devices/Makefile.kmk -+++ VirtualBox-5.2.0/src/VBox/Devices/Makefile.kmk -@@ -892,8 +892,7 @@ if !defined(VBOX_ONLY_EXTPACKS) +--- 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) $(call MSG_TOOL,iasl,VBoxDD,$<,$@) $(QUIET)$(RM) -f $@ [email protected] [email protected] $(QUIET)$(TOOL_$(VBOX_GCC_TOOL)_CC) -E -P -x c -o [email protected] $< @@ -24,4 +24,4 @@ + $(QUIET)$(SED) -e "s/<NL>/\n/g" [email protected] > [email protected] $(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ [email protected] $(QUIET)$(MV) -f $@ [email protected] - $(QUIET)$(SED) -e "s/AmlCode/AmlCodeSsdtCpuHotPlug/g" \ + $(QUIET)$(SED) -e "s/AmlCode\|vboxssdt_cpuhotplug_aml_code/AmlCodeSsdtCpuHotPlug/g" \
