1
0
forked from jengelh/virtualbox

- Update so that the system will build on the new Leap 15 kernel.

OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=412
This commit is contained in:
Larry Finger
2018-03-21 04:07:32 +00:00
committed by Git OBS Bridge
parent b60141ed05
commit cf13951bb8
3 changed files with 153 additions and 15 deletions

View File

@@ -109,7 +109,7 @@ Patch115: vbox_fix_for_gcc7.patch
Patch116: Fix_for_server_1.19.patch
# Fix invalid use of internal headers
Patch118: internal-headers.patch
# Fix kernl API change in Leap 15
# Fix kernel API change in Leap 15
Patch119: fixes_for_leap15.patch
# Fix rpmlint error for script /lib/usr/virtualbox/vboxshell.py
Patch120: fixes_for_python.patch
@@ -409,7 +409,10 @@ as an "extpack" for VirtualBox. The implementation is licensed under GPL.
%endif
%patch120 -p1
%patch121 -p1
%if 0%{suse_version} != 1500
# The patch for kernel 4.16 interferes with Leap 15 fixes
%patch122 -p1
%endif
#copy user manual
cp %{SOURCE1} UserManual.pdf
@@ -763,7 +766,7 @@ getent group vboxsf >/dev/null || groupadd -r vboxsf
# scriptlets - post
#######################################################
%post
%posttrans
/sbin/ldconfig
#setup our sysconfig file /etc/sysconfig/vbox
%set_permissions %{_vbox_instdir}/VBoxNetNAT
@@ -772,7 +775,7 @@ getent group vboxsf >/dev/null || groupadd -r vboxsf
%set_permissions %{_vbox_instdir}/VBoxHeadless
%service_add_post vboxdrv.service
%post qt
%posttrans qt
%set_permissions %{_vbox_instdir}/VirtualBox
%set_permissions %{_vbox_instdir}/VBoxSDL
@@ -786,12 +789,12 @@ getent group vboxsf >/dev/null || groupadd -r vboxsf
%verify_permissions -e %{_vbox_instdir}/VirtualBox
%verify_permissions -e %{_vbox_instdir}/VBoxSDL
%post guest-tools
%posttrans guest-tools
%service_add_post vboxadd-service.service
%post websrv
%posttrans websrv
%post vnc
%posttrans vnc
EXTPACK="/usr/share/virtualbox/extensions/VNC-%{version}.vbox-extpack"
ACCEPT="$(tar --to-stdout -xf "${EXTPACK}" ./ExtPack-license.txt | sha256sum | head --bytes=64)"
VBoxManage extpack install --replace "${EXTPACK}" --accept-license="${ACCEPT}" > /dev/null
@@ -819,7 +822,7 @@ exit 0
# scriptlets postun
#######################################################
%postun
%posttrans
/sbin/ldconfig
%restart_on_update vboxdrv
%insserv_cleanup
@@ -827,13 +830,13 @@ exit 0
export DISABLE_RESTART_ON_UPDATE=yes
%service_del_postun vboxdrv.service
%postun guest-tools
%posttrans guest-tools
%restart_on_update vboxadd
%restart_on_update vboxadd-service
%insserv_cleanup
%service_del_postun vboxadd-service.service
%postun websrv
%posttrans websrv
%restart_on_update vboxweb-service
%insserv_cleanup
#