From f854927ba36b667c29c9ad3afb85478c84cee499d099790d3dc8172e1b91e850 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 6 May 2015 15:41:28 +0000 Subject: [PATCH 1/7] - Reorder alignment of buildroot for various install commands so it does not look so fuzzy OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=182 --- virtualbox.changes | 6 +++ virtualbox.spec | 97 +++++++++++++++++----------------------------- 2 files changed, 42 insertions(+), 61 deletions(-) diff --git a/virtualbox.changes b/virtualbox.changes index 1f0ef74..fe43a24 100644 --- a/virtualbox.changes +++ b/virtualbox.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed May 6 15:40:52 UTC 2015 - tchvatal@suse.com + +- Reorder alignment of buildroot for various install commands so it + does not look so fuzzy + ------------------------------------------------------------------- Mon Apr 20 11:10:16 UTC 2015 - tchvatal@suse.com diff --git a/virtualbox.spec b/virtualbox.spec index 45ae4b8..f283591 100644 --- a/virtualbox.spec +++ b/virtualbox.spec @@ -361,7 +361,6 @@ install -d -m 755 %{buildroot}%{_datadir}/virtualbox/nls install -d -m 755 %{buildroot}%{_datadir}/pixmaps install -d -m 755 %{buildroot}%{_datadir}/applications install -d -m 755 %{buildroot}%{_vbox_instdir}/sdk/bindings/xpcom -#%__install -d -m 755 %{buildroot}%{_vbox_instdir}/sdk/bindings/glue install -d -m 755 %{buildroot}%{_vbox_instdir}/components install -d -m 755 %{buildroot}%{_libdir}/dri install -d -m 755 %{buildroot}%{_libdir}/xorg/modules/drivers @@ -390,16 +389,11 @@ done ########################################### echo "entering guest-tools install section" ########################################### -install -m 755 out/linux.*/release/bin/additions/VBoxControl \ - %{buildroot}%{_bindir}/VBoxControl -install -m 755 out/linux.*/release/bin/additions/VBoxService \ - %{buildroot}%{_bindir}/VBoxService -install -m 755 out/linux.*/release/bin/additions/mount.vboxsf \ - %{buildroot}/sbin/mount.vboxsf -install -m 744 src/VBox/Additions/linux/installer/vboxadd.sh \ - %{buildroot}%{_sysconfdir}/init.d/vboxadd -ln -s %{_sysconfdir}/init.d/vboxadd \ - %{buildroot}%{_sbindir}/rcvboxadd +install -m 755 out/linux.*/release/bin/additions/VBoxControl %{buildroot}%{_bindir}/VBoxControl +install -m 755 out/linux.*/release/bin/additions/VBoxService %{buildroot}%{_bindir}/VBoxService +install -m 755 out/linux.*/release/bin/additions/mount.vboxsf %{buildroot}/sbin/mount.vboxsf +install -m 744 src/VBox/Additions/linux/installer/vboxadd.sh %{buildroot}%{_sysconfdir}/init.d/vboxadd +ln -s %{_sysconfdir}/init.d/vboxadd %{buildroot}%{_sbindir}/rcvboxadd # udev rule for guest (virtualbox-guest-tools) install -m 644 %{SOURCE3} %{buildroot}%{_udevrulesdir}/60-vboxguest.rules # @@ -409,21 +403,15 @@ 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 mouse and videos check suse version to add propper driver -# check the patch https://www.virtualbox.org/changeset/38784, regarding the -# dropped xorg mouse driver in >= 1130 - +# xorg drivers for video %if 0%{?suse_version} > 1320 - install -m 755 vboxvideo_drv_117.so \ - %{buildroot}%{_libdir}/xorg/modules/drivers/vboxvideo_drv.so -%else -%if 0%{?suse_version} >= 1315 - install -m 755 vboxvideo_drv_116.so \ - %{buildroot}%{_libdir}/xorg/modules/drivers/vboxvideo_drv.so + install -m 755 vboxvideo_drv_117.so %{buildroot}%{_libdir}/xorg/modules/drivers/vboxvideo_drv.so +%endif +%if 0%{?suse_version} == 1315 + install -m 755 vboxvideo_drv_116.so %{buildroot}%{_libdir}/xorg/modules/drivers/vboxvideo_drv.so %endif %if 0%{?suse_version} == 1310 - install -m 755 vboxvideo_drv_114.so \ - %{buildroot}%{_libdir}/xorg/modules/drivers/vboxvideo_drv.so + install -m 755 vboxvideo_drv_114.so %{buildroot}%{_libdir}/xorg/modules/drivers/vboxvideo_drv.so %endif %endif popd @@ -433,8 +421,7 @@ install -m 644 out/linux.*/release/bin/additions/VBoxOGL*.so \ # 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 +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" @@ -443,27 +430,25 @@ echo "entering virtualbox(-qt) install section" pushd out/linux.*/release/bin install -m 755 VBoxManage %{buildroot}%{_vbox_instdir} install -m 755 VBoxHeadless %{buildroot}%{_vbox_instdir} -install -m 755 VBoxSDL %{buildroot}%{_vbox_instdir} +install -m 755 VBoxSDL %{buildroot}%{_vbox_instdir} install -m 755 VBoxTunctl %{buildroot}%{_vbox_instdir} # create links to vbox tools in PATH - they could be usefull for controlling vbox from command line ln -s %{_vbox_instdir}/VBoxManage %{buildroot}%{_bindir}/VBoxManage -ln -s %{_vbox_instdir}/VBoxHeadless \ - %{buildroot}%{_bindir}/VBoxHeadless -ln -s %{_vbox_instdir}/VBoxSDL %{buildroot}%{_bindir}/VBoxSDL +ln -s %{_vbox_instdir}/VBoxHeadless %{buildroot}%{_bindir}/VBoxHeadless +ln -s %{_vbox_instdir}/VBoxSDL %{buildroot}%{_bindir}/VBoxSDL ln -s %{_vbox_instdir}/VBoxTunctl %{buildroot}%{_bindir}/VBoxTunctl -install -m 755 VBoxSVC %{buildroot}%{_vbox_instdir} -install -m 755 VBoxXPCOMIPCD %{buildroot}%{_vbox_instdir} +install -m 755 VBoxSVC %{buildroot}%{_vbox_instdir} +install -m 755 VBoxXPCOMIPCD %{buildroot}%{_vbox_instdir} install -m 755 VBoxExtPackHelperApp %{buildroot}%{_vbox_instdir} install -m 755 VBoxTestOGL %{buildroot}%{_vbox_instdir} -install -m 755 VBoxPermissionMessage \ - %{buildroot}%{_vbox_instdir} +install -m 755 VBoxPermissionMessage %{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 VBoxEFI*.fd %{buildroot}%{_vbox_instdir} -install -m 755 VBoxSysInfo.sh %{buildroot}%{_vbox_instdir} +install -m 755 VBoxSysInfo.sh %{buildroot}%{_vbox_instdir} install -m 644 *.so %{buildroot}%{_vbox_instdir} -install -m 644 V*.gc %{buildroot}%{_vbox_instdir} +install -m 644 V*.gc %{buildroot}%{_vbox_instdir} install -m 644 *.r0 %{buildroot}%{_vbox_instdir} install -m 644 components/* %{buildroot}%{_vbox_instdir}/components/ # install languages @@ -471,13 +456,11 @@ install -m 644 nls/* %{buildroot}%{_datadir}/virtualbox/nls/ popd # install desktop file -install -m 644 out/linux.*/release/bin/virtualbox.desktop \ - %{buildroot}%{_datadir}/applications/%{name}.desktop +install -m 644 out/linux.*/release/bin/virtualbox.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop %suse_update_desktop_file %{buildroot}%{_datadir}/applications/%{name}.desktop 'System Emulator' # create a menu entry -install -m 644 out/linux.*/release/bin/VBox.png \ - %{buildroot}%{_datadir}/pixmaps/virtualbox.png +install -m 644 out/linux.*/release/bin/VBox.png %{buildroot}%{_datadir}/pixmaps/virtualbox.png # install udev rule for host (virtualbox) install -m 644 %{SOURCE2} %{buildroot}%{_udevrulesdir}/60-vboxdrv.rules # install config with session shutdown defs @@ -489,25 +472,20 @@ install -m 644 %{SOURCE9} %{buildroot}%{_bindir}/VirtualBox # TODO: some of this stuff breaks the fillup macros below? sed -i "s|%{NOLSB}%|yes|g;s|%{DEBIAN}%||g;s|%{PACKAGE}%|virtualbox|g" \ src/VBox/Installer/linux/vboxdrv.sh.in -install -m 744 src/VBox/Installer/linux/vboxdrv.sh.in \ - %{buildroot}%{_sysconfdir}/init.d/vboxdrv -ln -s %{_sysconfdir}/init.d/vboxdrv \ - %{buildroot}%{_sbindir}/rcvboxdrv +install -m 744 src/VBox/Installer/linux/vboxdrv.sh.in %{buildroot}%{_sysconfdir}/init.d/vboxdrv +ln -s %{_sysconfdir}/init.d/vboxdrv %{buildroot}%{_sbindir}/rcvboxdrv # Init script to start virtual boxes during boot -install -m 755 %{SOURCE12} %{buildroot}%{_sysconfdir}/init.d/vboxes -ln -s %{_sysconfdir}/init.d/vboxes \ - %{buildroot}%{_sbindir}/rcvboxes +install -m 755 %{SOURCE12} %{buildroot}%{_sysconfdir}/init.d/vboxes +ln -s %{_sysconfdir}/init.d/vboxes %{buildroot}%{_sbindir}/rcvboxes # sysconfig file intended for vboxes script -install -d -m 755 %{buildroot}%{_var}/adm/fillup-templates -install -m 640 %{SOURCE13} %{buildroot}%{_var}/adm/fillup-templates/sysconfig.vbox +install -d -m 755 %{buildroot}%{_var}/adm/fillup-templates +install -m 640 %{SOURCE13} %{buildroot}%{_var}/adm/fillup-templates/sysconfig.vbox # config file for vboxdrv script and vboxweb -install -d -m 755 %{buildroot}%{_sysconfdir}/vbox -echo -e "#settings for vboxwebsrn\nVBOXWEB_USER=root" > \ - %{buildroot}%{_sysconfdir}/vbox/vbox.cfg +install -d -m 755 %{buildroot}%{_sysconfdir}/vbox +echo -e "#settings for vboxwebsrn\nVBOXWEB_USER=root" > %{buildroot}%{_sysconfdir}/vbox/vbox.cfg # install udev helper script for creating usb devices -install -m 0755 -D src/VBox/Installer/linux/VBoxCreateUSBNode.sh \ - %{buildroot}%{_udevrulesdir}/../VBoxCreateUSBNode.sh +install -m 0755 -D src/VBox/Installer/linux/VBoxCreateUSBNode.sh %{buildroot}%{_udevrulesdir}/../VBoxCreateUSBNode.sh ###################################################### echo "entrering python-virtualbox install section" ###################################################### @@ -536,16 +514,13 @@ cp out/linux.*/release/bin/sdk/bindings/VirtualBox.xidl %{buildroot}%{_vbox_inst echo "entering virtualbox-websrv install section" ###################################################### pushd out/linux.*/release/bin -install -m 755 vboxwebsrv %{buildroot}%{_vbox_instdir} -install -m 755 webtest %{buildroot}%{_vbox_instdir} +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 +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" From f91da82a251500fdfcb8628df092834b222a48b36d906c7f300fdbb4c88d856a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 6 May 2015 15:50:34 +0000 Subject: [PATCH 2/7] OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=183 --- virtualbox.spec | 1 - 1 file changed, 1 deletion(-) diff --git a/virtualbox.spec b/virtualbox.spec index f283591..a14aedf 100644 --- a/virtualbox.spec +++ b/virtualbox.spec @@ -413,7 +413,6 @@ install -m 755 VBoxClient %{buildroot}%{_bindir} %if 0%{?suse_version} == 1310 install -m 755 vboxvideo_drv_114.so %{buildroot}%{_libdir}/xorg/modules/drivers/vboxvideo_drv.so %endif -%endif popd # VBoxOGL* libs for guest-x11 subpackage install -m 644 out/linux.*/release/bin/additions/VBoxOGL*.so \ From 8b7d755e0e729efd87cd28eeb54179c2e21309703834ffcbdd2e7b6e77fbcc13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 6 May 2015 15:51:56 +0000 Subject: [PATCH 3/7] - Split kmk call to multiple lines OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=184 --- virtualbox.changes | 5 +++++ virtualbox.spec | 10 +++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/virtualbox.changes b/virtualbox.changes index fe43a24..d22589c 100644 --- a/virtualbox.changes +++ b/virtualbox.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed May 6 15:51:43 UTC 2015 - tchvatal@suse.com + +- Split kmk call to multiple lines + ------------------------------------------------------------------- Wed May 6 15:40:52 UTC 2015 - tchvatal@suse.com diff --git a/virtualbox.spec b/virtualbox.spec index a14aedf..06ffbc1 100644 --- a/virtualbox.spec +++ b/virtualbox.spec @@ -310,7 +310,15 @@ source ./env.sh # VBOX_PATH_PACKAGE_DOCS set propper path for link to pdf in .desktop file # VBOX_WITH_REGISTRATION_REQUEST= VBOX_WITH_UPDATE_REQUEST= just disable some functionality in gui echo "build basic parts" -%{_bindir}/kmk %{?_smp_mflags} VBOX_JAVA_HOME=%{_sysconfdir}/alternatives/java_sdk_openjdk/ VBOX_GCC_WERR= KBUILD_VERBOSE=2 VBOX_WITH_REGISTRATION_REQUEST= VBOX_WITH_UPDATE_REQUEST= TOOL_YASM_AS=yasm VBOX_PATH_PACKAGE_DOCS=%{_docdir}/virtualbox all +%{_bindir}/kmk %{?_smp_mflags} \ + VBOX_JAVA_HOME=%{_sysconfdir}/alternatives/java_sdk_openjdk/ \ + VBOX_GCC_WERR= \ + KBUILD_VERBOSE=2 \ + VBOX_WITH_REGISTRATION_REQUEST= VBOX_WITH_UPDATE_REQUEST= \ + TOOL_YASM_AS=yasm \ + VBOX_USE_SYSTEM_XORG_HEADERS=1 \ + VBOX_PATH_PACKAGE_DOCS=%{_docdir}/virtualbox \ + all # # build kernel modules for guest and host (check novel-kmp package as example) # host modules : vboxdrv,vboxnetflt,vboxnetadp From 8136611603cbe2d3181643bf9767603016bb1287fa27f56612642ca953b0d88c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 6 May 2015 16:53:12 +0000 Subject: [PATCH 4/7] - Try to build with system libs for X instead of localy built ones OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=185 --- virtualbox.changes | 5 +++++ virtualbox.spec | 42 ++++++++++++++++++++++++++++++------------ 2 files changed, 35 insertions(+), 12 deletions(-) diff --git a/virtualbox.changes b/virtualbox.changes index d22589c..6fe389f 100644 --- a/virtualbox.changes +++ b/virtualbox.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed May 6 16:52:56 UTC 2015 - tchvatal@suse.com + +- Try to build with system libs for X instead of localy built ones + ------------------------------------------------------------------- Wed May 6 15:51:43 UTC 2015 - tchvatal@suse.com diff --git a/virtualbox.spec b/virtualbox.spec index 06ffbc1..86a0dde 100644 --- a/virtualbox.spec +++ b/virtualbox.spec @@ -108,11 +108,25 @@ BuildRequires: udev BuildRequires: update-desktop-files BuildRequires: which BuildRequires: xorg-x11 -BuildRequires: xorg-x11-devel BuildRequires: xorg-x11-server BuildRequires: xorg-x11-server-sdk BuildRequires: yasm BuildRequires: zlib-devel-static +BuildRequires: pkgconfig(fontsproto) +BuildRequires: pkgconfig(randrproto) +BuildRequires: pkgconfig(renderproto) +BuildRequires: pkgconfig(resourceproto) +BuildRequires: pkgconfig(scrnsaverproto) +BuildRequires: pkgconfig(x11) +BuildRequires: pkgconfig(xau) +BuildRequires: pkgconfig(xcomposite) +BuildRequires: pkgconfig(xdmcp) +BuildRequires: pkgconfig(xext) +BuildRequires: pkgconfig(xextproto) +BuildRequires: pkgconfig(xf86driproto) +BuildRequires: pkgconfig(xfixes) +BuildRequires: pkgconfig(xineramaproto) +BuildRequires: pkgconfig(xproto) Requires: %{name}-host-kmp = %{version} Requires(post): sysvinit(syslog) Requires(pre): permissions @@ -295,13 +309,15 @@ rm -rf src/libs/{libpng-*,libxml2-*,libxslt-*,zlib-*,boost-*} # --nofatal try to avoid build fail caused by missing makeself package # NOT an autoconf configure macro ./configure \ - --enable-vnc \ - --enable-vde \ - --disable-kmods \ - --disable-java \ - --disable-docs \ - --nofatal \ - --enable-webservice + --ose \ + --enable-vnc \ + --enable-vde \ + --disable-kmods \ + --with-linux="/usr" \ + --disable-java \ + --disable-docs \ + --nofatal \ + --enable-webservice # configure actually warns we should source env.sh (which seems like it could influence the build...) source ./env.sh @@ -311,14 +327,16 @@ source ./env.sh # VBOX_WITH_REGISTRATION_REQUEST= VBOX_WITH_UPDATE_REQUEST= just disable some functionality in gui echo "build basic parts" %{_bindir}/kmk %{?_smp_mflags} \ - VBOX_JAVA_HOME=%{_sysconfdir}/alternatives/java_sdk_openjdk/ \ VBOX_GCC_WERR= \ KBUILD_VERBOSE=2 \ + VBOX_USE_SYSTEM_XORG_HEADERS=1 \ VBOX_WITH_REGISTRATION_REQUEST= VBOX_WITH_UPDATE_REQUEST= \ TOOL_YASM_AS=yasm \ - VBOX_USE_SYSTEM_XORG_HEADERS=1 \ - VBOX_PATH_PACKAGE_DOCS=%{_docdir}/virtualbox \ - all + VBOX_WITH_VMSVGA= VBOX_WITH_VMSVGA3D= \ + VBOX_BUILD_PUBLISHER=_SUSE \ + TOOL_GCC3_CFLAGS="%{optflags}" TOOL_GCC3_CXXFLAGS="%{optflags}" \ + VBOX_GCC_OPT="%{optflags}" + # # build kernel modules for guest and host (check novel-kmp package as example) # host modules : vboxdrv,vboxnetflt,vboxnetadp From 374881396c8fb482287d4e50916303cd08a27cc37e51c8d5d0d6a2808eeb4d03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 6 May 2015 20:07:21 +0000 Subject: [PATCH 5/7] - Build with system libs for X instead of localy built ones. This should fix bnc#929697 - Adds patch: * virtualbox-system-x.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=186 --- virtualbox-LocalConfig.kmk | 3 ++ virtualbox-system-x.patch | 59 ++++++++++++++++++++++++++++++++++++++ virtualbox.changes | 5 +++- virtualbox.spec | 15 +++------- 4 files changed, 70 insertions(+), 12 deletions(-) create mode 100644 virtualbox-system-x.patch diff --git a/virtualbox-LocalConfig.kmk b/virtualbox-LocalConfig.kmk index e34ab95..6a6dd84 100644 --- a/virtualbox-LocalConfig.kmk +++ b/virtualbox-LocalConfig.kmk @@ -3,6 +3,9 @@ VBOX_WITH_TESTSUITE = VBOX_WITH_ORIGIN := VBOX_WITH_REGISTRATION_REQUEST = VBOX_WITH_UPDATE_REQUEST = +VBOX_WITH_INSTALLER = 1 +VBOX_WITH_LINUX_ADDITIONS = 1 +VBOX_WITH_X11_ADDITIONS = 1 VBOX_PATH_APP_PRIVATE_ARCH := /usr/lib/virtualbox VBOX_PATH_SHARED_LIBS := $(VBOX_PATH_APP_PRIVATE_ARCH) VBOX_WITH_RUNPATH := $(VBOX_PATH_APP_PRIVATE_ARCH) diff --git a/virtualbox-system-x.patch b/virtualbox-system-x.patch new file mode 100644 index 0000000..c93b529 --- /dev/null +++ b/virtualbox-system-x.patch @@ -0,0 +1,59 @@ +Description: Build the X.Org driver only for the selected system X Server version. +Author: Michael Meskes , Felix Geyer + +Index: virtualbox/src/VBox/Additions/common/VBoxGuestLib/Makefile.kmk +=================================================================== +--- virtualbox.orig/src/VBox/Additions/common/VBoxGuestLib/Makefile.kmk 2013-11-19 04:35:17.181627034 -0500 ++++ virtualbox/src/VBox/Additions/common/VBoxGuestLib/Makefile.kmk 2013-11-19 04:36:33.913630598 -0500 +@@ -40,8 +40,6 @@ + VBoxGuestR3LibShared + ifndef VBOX_ONLY_TESTSUITE + if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd) +- LIBRARIES += \ +- VBoxGuestR3LibXFree86 + endif + if1of ($(KBUILD_TARGET), freebsd linux netbsd openbsd solaris) + LIBRARIES += \ +Index: virtualbox/src/VBox/Additions/common/crOpenGL/Makefile.kmk +=================================================================== +--- virtualbox.orig/src/VBox/Additions/common/crOpenGL/Makefile.kmk 2013-11-19 04:35:17.181627034 -0500 ++++ virtualbox/src/VBox/Additions/common/crOpenGL/Makefile.kmk 2013-11-19 04:35:17.181627034 -0500 +@@ -74,18 +74,12 @@ + VBoxOGL_INCS = . + if1of ($(KBUILD_TARGET), linux solaris freebsd) + 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 \ ++ /usr/include/x11 \ ++ /usr/include/xorg \ ++ /usr/include/pixman-1 \ + $(VBOX_MESA_INCS) \ +- $(PATH_ROOT)/src/VBox/Additions/x11/x11include/libdrm-2.4.13 ++ /usr/include/drm \ ++ /usr/include/libdrm + VBoxOGL_DEFS += VBOX_NO_NATIVEGL + endif + +@@ -215,10 +209,10 @@ + $(PATH_STAGE_LIB)/additions/VBoxOGLspuload$(VBOX_SUFF_LIB) + if1of ($(KBUILD_TARGET), linux solaris freebsd) + 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 + ifdef VBoxOGL_FAKEDRI + ifeq ($(KBUILD_TARGET), freebsd) + VBoxOGL_LIBS += \ diff --git a/virtualbox.changes b/virtualbox.changes index 6fe389f..650d1e1 100644 --- a/virtualbox.changes +++ b/virtualbox.changes @@ -1,7 +1,10 @@ ------------------------------------------------------------------- Wed May 6 16:52:56 UTC 2015 - tchvatal@suse.com -- Try to build with system libs for X instead of localy built ones +- Build with system libs for X instead of localy built ones. + This should fix bnc#929697 +- Adds patch: + * virtualbox-system-x.patch ------------------------------------------------------------------- Wed May 6 15:51:43 UTC 2015 - tchvatal@suse.com diff --git a/virtualbox.spec b/virtualbox.spec index 86a0dde..ae9b5a1 100644 --- a/virtualbox.spec +++ b/virtualbox.spec @@ -55,6 +55,8 @@ Patch3: vbox-vboxweb-init-script.diff #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 +#PATCH-FIX-OPENSUSE: Use system X libraries and do not build local things +Patch4: virtualbox-system-x.patch #fix build of Python and dev package on openSUSE 11.3 Patch8: vbox-python-detection.diff #deprecated old-style C++ service proxies and objects,we have to use soapcpp2 -z1 flag @@ -85,7 +87,6 @@ BuildRequires: fdupes BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: glibc-devel-static -#gsoap,libopenssl and java needed for building webservice BuildRequires: gsoap-devel BuildRequires: java-devel >= 1.6.0 BuildRequires: kbuild >= 0.1.9998svn2689 @@ -268,6 +269,7 @@ This package contains icons for guest desktop files that were created on the des %patch1 %patch2 %patch3 -p1 +%patch4 -p1 %patch6 -p1 %patch8 -p1 %patch9 -p1 @@ -332,7 +334,6 @@ echo "build basic parts" VBOX_USE_SYSTEM_XORG_HEADERS=1 \ VBOX_WITH_REGISTRATION_REQUEST= VBOX_WITH_UPDATE_REQUEST= \ TOOL_YASM_AS=yasm \ - VBOX_WITH_VMSVGA= VBOX_WITH_VMSVGA3D= \ VBOX_BUILD_PUBLISHER=_SUSE \ TOOL_GCC3_CFLAGS="%{optflags}" TOOL_GCC3_CXXFLAGS="%{optflags}" \ VBOX_GCC_OPT="%{optflags}" @@ -430,15 +431,7 @@ pushd out/linux.*/release/bin/additions/ #VBoxClient daemon (support for clipboard,autoresize,seamless windows) install -m 755 VBoxClient %{buildroot}%{_bindir} # xorg drivers for video -%if 0%{?suse_version} > 1320 - install -m 755 vboxvideo_drv_117.so %{buildroot}%{_libdir}/xorg/modules/drivers/vboxvideo_drv.so -%endif -%if 0%{?suse_version} == 1315 - install -m 755 vboxvideo_drv_116.so %{buildroot}%{_libdir}/xorg/modules/drivers/vboxvideo_drv.so -%endif -%if 0%{?suse_version} == 1310 - install -m 755 vboxvideo_drv_114.so %{buildroot}%{_libdir}/xorg/modules/drivers/vboxvideo_drv.so -%endif +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 \ From 89ff2d9dac1c80a68822bbfd1fe6de86a0d764ee96b1671c644b4f0fcb681ed4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 6 May 2015 20:36:38 +0000 Subject: [PATCH 6/7] - Create groups properly and also create vboxsf and vboxguest on guest additions bnc#927708 OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=187 --- virtualbox.changes | 6 ++++++ virtualbox.spec | 8 ++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/virtualbox.changes b/virtualbox.changes index 650d1e1..34e5ee5 100644 --- a/virtualbox.changes +++ b/virtualbox.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed May 6 20:35:29 UTC 2015 - tchvatal@suse.com + +- Create groups properly and also create vboxsf and vboxguest on + guest additions bnc#927708 + ------------------------------------------------------------------- Wed May 6 16:52:56 UTC 2015 - tchvatal@suse.com diff --git a/virtualbox.spec b/virtualbox.spec index ae9b5a1..b894cb5 100644 --- a/virtualbox.spec +++ b/virtualbox.spec @@ -568,8 +568,12 @@ popd ###################################################### %pre -echo "creating group vboxusers..." -groupadd -r vboxusers 2>/dev/null || : +getent group vboxusers >/dev/null || groupadd -r vboxusers + +%pre guest-tools +# Add groups for seamless mode and shared folders: +getent group vboxguest >/dev/null || groupadd -r vboxguest +getent group vboxsf >/dev/null || groupadd -r vboxsf ####################################################### # scriptlets - post From fcec7bc030c6f7767d0445e961deb27dc454ece4ade29a39523f3b015665dc14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Sun, 10 May 2015 14:59:12 +0000 Subject: [PATCH 7/7] Accepting request 306208 from home:bmwiedemann:branches:Virtualization Provide host-kmp src for use with custom kernels (bnc#925663) now also requires gcc+make at runtime for building OBS-URL: https://build.opensuse.org/request/show/306208 OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=188 --- virtualbox.changes | 5 +++++ virtualbox.spec | 22 ++++++++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/virtualbox.changes b/virtualbox.changes index 34e5ee5..70c2dd6 100644 --- a/virtualbox.changes +++ b/virtualbox.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun May 10 10:47:58 UTC 2015 - bwiedemann@suse.com + +- Provide host-kmp src for use with custom kernels (bnc#925663) + ------------------------------------------------------------------- Wed May 6 20:35:29 UTC 2015 - tchvatal@suse.com diff --git a/virtualbox.spec b/virtualbox.spec index b894cb5..c944a93 100644 --- a/virtualbox.spec +++ b/virtualbox.spec @@ -253,6 +253,20 @@ Obsoletes: %{name}-ose-devel < %{version} Development file for %{name} ########################################### +%package host-source +Summary: Source files for %{name} kernel modules +Group: Development/Sources +Requires: %{name} = %{version} +BuildArch: noarch +Requires: gcc +Requires: make + +%description host-source +Source files for %{name} kernel modules +These can be built for custom kernels using +cd /usr/src/kernel-modules/virtualbox ; make ; make install +########################################### + %package guest-desktop-icons Summary: Icons for guest desktop files Group: System/Emulators/PC @@ -471,6 +485,9 @@ install -m 644 *.r0 %{buildroot}%{_vbox_instdir} install -m 644 components/* %{buildroot}%{_vbox_instdir}/components/ # install languages install -m 644 nls/* %{buildroot}%{_datadir}/virtualbox/nls/ +# install kmp src +mkdir -p %{buildroot}%{_usrsrc}/kernel-modules +cp -a src %{buildroot}%{_usrsrc}/kernel-modules/virtualbox popd # install desktop file @@ -763,6 +780,11 @@ exit 0 %{_vbox_instdir}/sdk/bindings/xpcom/samples %{_vbox_instdir}/sdk/bindings/auth +%files host-source +%defattr(-,root, root) +%dir %{_usrsrc}/kernel-modules +%{_usrsrc}/kernel-modules/virtualbox + %files websrv %defattr(-,root, root) %{_vbox_instdir}/vboxwebsrv