Accepting request 461358 from Virtualization
1 OBS-URL: https://build.opensuse.org/request/show/461358 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/virtualbox?expand=0&rev=129
This commit is contained in:
commit
d343927129
@ -1,7 +1,7 @@
|
||||
Index: VirtualBox-5.1.4/src/VBox/Additions/linux/installer/vboxadd.sh
|
||||
Index: VirtualBox-5.1.14/src/VBox/Additions/linux/installer/vboxadd.sh
|
||||
===================================================================
|
||||
--- VirtualBox-5.1.4.orig/src/VBox/Additions/linux/installer/vboxadd.sh
|
||||
+++ VirtualBox-5.1.4/src/VBox/Additions/linux/installer/vboxadd.sh
|
||||
--- VirtualBox-5.1.14.orig/src/VBox/Additions/linux/installer/vboxadd.sh
|
||||
+++ VirtualBox-5.1.14/src/VBox/Additions/linux/installer/vboxadd.sh
|
||||
@@ -23,9 +23,12 @@
|
||||
# Provides: vboxadd
|
||||
# Required-Start:
|
||||
@ -73,7 +73,7 @@ Index: VirtualBox-5.1.4/src/VBox/Additions/linux/installer/vboxadd.sh
|
||||
fail "modprobe vboxguest failed"
|
||||
}
|
||||
}
|
||||
@@ -217,7 +200,7 @@ start()
|
||||
@@ -217,14 +200,14 @@ start()
|
||||
}
|
||||
|
||||
# Put the X.Org driver in place. This is harmless if it is not needed.
|
||||
@ -82,7 +82,32 @@ Index: VirtualBox-5.1.4/src/VBox/Additions/linux/installer/vboxadd.sh
|
||||
# Install the guest OpenGL drivers. For now we don't support
|
||||
# multi-architecture installations
|
||||
rm -f /etc/ld.so.conf.d/00vboxvideo.conf
|
||||
@@ -378,7 +361,7 @@ extra_setup()
|
||||
if /usr/bin/VBoxClient --check3d 2>/dev/null; then
|
||||
mkdir -p /var/lib/VBoxGuestAdditions/lib
|
||||
- ln -sf "${INSTALL_DIR}/lib/VBoxOGL.so" /var/lib/VBoxGuestAdditions/lib/libGL.so.1
|
||||
- ln -sf "${INSTALL_DIR}/lib/VBoxEGL.so" /var/lib/VBoxGuestAdditions/lib/libEGL.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.
|
||||
@@ -237,6 +220,15 @@ start()
|
||||
chcon -h -t lib_t "/var/lib/VBoxGuestAdditions/lib/libEGL.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
|
||||
|
||||
@@ -382,7 +374,7 @@ extra_setup()
|
||||
ln -sf "$lib_path/$PACKAGE/mount.vboxsf" /sbin
|
||||
# And an rc file to re-build the kernel modules and re-set-up the X server.
|
||||
ln -sf "$lib_path/$PACKAGE/vboxadd" /sbin/rcvboxadd
|
||||
@ -91,7 +116,7 @@ Index: VirtualBox-5.1.4/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
|
||||
@@ -411,49 +394,13 @@ EOF
|
||||
@@ -415,49 +407,13 @@ EOF
|
||||
# setup_script
|
||||
setup()
|
||||
{
|
||||
@ -143,7 +168,7 @@ Index: VirtualBox-5.1.4/src/VBox/Additions/linux/installer/vboxadd.sh
|
||||
# Delete old versions of VBox modules.
|
||||
cleanup_modules
|
||||
depmod
|
||||
@@ -464,12 +411,12 @@ cleanup()
|
||||
@@ -468,12 +424,12 @@ cleanup()
|
||||
done
|
||||
|
||||
# Clean-up X11-related bits
|
||||
|
@ -1,13 +0,0 @@
|
||||
Index: VirtualBox-5.1.2/src/VBox/Additions/common/crOpenGL/Makefile.kmk
|
||||
===================================================================
|
||||
--- VirtualBox-5.1.2.orig/src/VBox/Additions/common/crOpenGL/Makefile.kmk
|
||||
+++ VirtualBox-5.1.2/src/VBox/Additions/common/crOpenGL/Makefile.kmk
|
||||
@@ -221,7 +221,7 @@ if1of ($(KBUILD_TARGET), linux solaris f
|
||||
dl
|
||||
endif
|
||||
else
|
||||
- VBoxOGL_SONAME.linux = libGL.so.1
|
||||
+ VBoxOGL_SONAME.linux = VBoxOGL.so.1
|
||||
VBoxOGL_LDFLAGS.linux += -Wl,-e,LibMain
|
||||
endif
|
||||
endif
|
@ -1,3 +1,31 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 28 21:06:30 UTC 2017 - dimstar@opensuse.org
|
||||
|
||||
- Do not proivde libGL.so.1 and libEGL.so.1 symbols into the rpm
|
||||
database.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Feb 26 20:17:02 UTC 2017 - Larry.Finger@lwfinger.net
|
||||
|
||||
- The fix for 3D acceleration only works for Gmome desktops. KDE desktops fail. Accordingly,
|
||||
3D acceleration must still be disabled "out-of-the-box". File /etc/init.d/vboxadd contains
|
||||
comments on the modifications needed to turn 3D acceleration on, thus Gnome users may turn
|
||||
it on selectively.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 24 03:34:35 UTC 2017 - Larry.Finger@lwfinger.net
|
||||
|
||||
- Fix 3D acceleration as reported in bsc #1024934. The steps needed are as follows:
|
||||
- Remove file "vbox_prevent_wrong_SONAME.patch" - the original SONAME values are needed for
|
||||
libGL.so.1 and libEGL.so.1 to be replaced by VBoxOGL.so and VBoxEGL.so, respectively.
|
||||
- Package VBoxEGL.so
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 23 12:37:09 CET 2017 - kukuk@suse.de
|
||||
|
||||
- Require insserv and fillup by the packages who call it in the
|
||||
pre/post install sections
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 2 15:30:05 UTC 2017 - adam.majer@suse.de
|
||||
|
||||
|
@ -16,6 +16,9 @@
|
||||
#
|
||||
|
||||
|
||||
# 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.*$
|
||||
|
||||
%define _vbox_instdir %{_libexecdir}/virtualbox
|
||||
%define _udevrulesdir %{_sysconfdir}/udev/rules.d
|
||||
Name: virtualbox
|
||||
@ -83,8 +86,6 @@ Patch107: virtualbox-sed-params.patch
|
||||
Patch108: virtualbox-snpritnf-buffer-overflow.patch
|
||||
# Patch to add code to explain USB Passthru
|
||||
Patch109: vbox-usb-warning.diff
|
||||
# Prevent Guest Additions from creating wrong SONAME
|
||||
Patch111: vbox_prevent_wrong_SONAME.patch
|
||||
# Fix change in kernel API for ttm_bo_move_memcpy()
|
||||
Patch112: modify_for_4_8_bo_move.patch
|
||||
# Remove all mention of _smp_mflags
|
||||
@ -164,6 +165,8 @@ Requires: %{name}-host-kmp = %{version}
|
||||
Requires(post): sysvinit(syslog)
|
||||
Requires(pre): permissions
|
||||
Requires(pre): pwdutils
|
||||
Requires(pre): %insserv_prereq
|
||||
Requires(pre): %fillup_prereq
|
||||
Recommends: %{name}-gui = %{version}
|
||||
#rename from ose version:
|
||||
Provides: %{name}-ose = %{version}
|
||||
@ -209,6 +212,7 @@ Summary: WebService GUI part for %{name}
|
||||
Group: System/Emulators/PC
|
||||
Requires: %{name} = %{version}
|
||||
Provides: %{name}-gui = %{version}
|
||||
Requires(pre): %insserv_prereq
|
||||
|
||||
%description websrv
|
||||
websrv GUI part for %{name}.
|
||||
@ -254,6 +258,7 @@ 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
|
||||
|
||||
%description guest-tools
|
||||
VirtualBox guest addition tools.
|
||||
@ -329,7 +334,6 @@ This package contains icons for guest desktop files that were created on the des
|
||||
%patch107 -p1
|
||||
%patch108 -p1
|
||||
%patch109 -p1
|
||||
%patch111 -p1
|
||||
%patch112 -p1
|
||||
%patch113 -p1
|
||||
%patch116 -p1
|
||||
@ -504,6 +508,9 @@ popd
|
||||
# VBoxOGL* libs for guest-x11 subpackage
|
||||
install -m 644 out/linux.*/release/bin/additions/VBoxOGL*.so \
|
||||
%{buildroot}%{_libdir}
|
||||
# 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)
|
||||
@ -756,6 +763,7 @@ exit 0
|
||||
%{_vbox_instdir}/VBoxSharedCrOpenGL.so
|
||||
%{_vbox_instdir}/VBoxSharedFolders.so
|
||||
%{_vbox_instdir}/VBoxVMM.so
|
||||
#%{_vbox_instdir}/VBoxVNC.so
|
||||
%{_vbox_instdir}/VBoxXPCOMC.so
|
||||
%{_vbox_instdir}/VBoxXPCOM.so
|
||||
%{_vbox_instdir}/VBoxDD2RC.rc
|
||||
@ -819,6 +827,7 @@ exit 0
|
||||
%dir %{_libdir}/dri/
|
||||
%{_bindir}/VBoxClient
|
||||
%{_libdir}/VBoxOGL*.so
|
||||
%{_libdir}/VBoxEGL*.so
|
||||
%{_libdir}/xorg/modules/drivers/vboxvideo_drv.so
|
||||
%{_libdir}/dri/vboxvideo_dri.so
|
||||
%{_sysconfdir}/X11/xinit/xinitrc.d/vboxadd-xclient.sh
|
||||
|
Loading…
Reference in New Issue
Block a user