[packages/VirtualBox] fix lightdm greeter linking, enable bcond

glen glen at pld-linux.org
Sun Jun 2 12:29:06 CEST 2013


commit 8d08b90747b853dd07197323da27f48e2eeb6e65
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Jun 2 11:53:47 2013 +0300

    fix lightdm greeter linking, enable bcond

 VirtualBox.spec                | 30 ++++++++++++++++++++++++++++--
 lightdm-greeter-g++-link.patch | 10 ++++++++++
 2 files changed, 38 insertions(+), 2 deletions(-)
---
diff --git a/VirtualBox.spec b/VirtualBox.spec
index 02f8a38..0731c11 100644
--- a/VirtualBox.spec
+++ b/VirtualBox.spec
@@ -15,7 +15,7 @@
 %bcond_without	kernel		# don't build kernel module
 %bcond_without	userspace	# don't build userspace package
 %bcond_with	webservice	# webservice (soap) support
-%bcond_with	lightdm	# lightdm greeter
+%bcond_without	lightdm	# lightdm greeter
 %bcond_without	verbose
 %bcond_with	force_userspace # force userspace build (useful if alt_kernel is set)
 
@@ -33,7 +33,7 @@
 %define		_enable_debug_packages	0
 %endif
 
-%define		rel		7
+%define		rel		8
 %define		pname		VirtualBox
 Summary:	VirtualBox - x86 hardware virtualizer
 Summary(pl.UTF-8):	VirtualBox - wirtualizator sprzętu x86
@@ -70,6 +70,7 @@ Patch4:		%{pname}-disable_build_NetBiosBin.patch
 Patch5:		xserver-1.12.patch
 Patch6:		gcc48.patch
 Patch7:		lightdm-greeter-glib-includes.patch
+Patch8:		lightdm-greeter-g++-link.patch
 # ubuntu patches
 Patch10:	16-no-update.patch
 Patch11:	18-system-xorg.patch
@@ -172,6 +173,7 @@ BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %endif
 %define		vbox_platform	linux.%{vbox_arch}
 %define		outdir		out/%{vbox_platform}/release/bin
+%define		objdir		out/%{vbox_platform}/release/obj
 %define		_sbindir	/sbin
 
 # workaround buggy 'file' results:
@@ -288,6 +290,16 @@ X.org X11 video and mouse drivers
 
 You should install this package in your Guest OS for X11 session.
 
+%package -n lightdm-vbox-greeter
+Summary:	VirtualBox greeter for lightdm
+Group:		Themes
+URL:		http://www.virtualbox.org/manual/ch09.html#autologon_unix_lightdm
+Requires:	lightdm >= 1.0.1
+Provides:	lightdm-greeter
+
+%description -n lightdm-vbox-greeter
+VirtualBox greeter for LightDM.
+
 %package -n pam-pam_vbox
 Summary:	PAM module to perform automated guest logons
 Group:		Base
@@ -520,6 +532,7 @@ Moduł jądra Linuksa dla VirtualBoksa - sterownik obsługi DRM.
 %patch5 -p1
 %patch6 -p1
 %patch7 -p1
+%patch8 -p1
 
 %{__sed} -i -e 's, at VBOX_DOC_PATH@,%{_docdir}/%{name}-%{version},' \
 	-e 's/Categories=.*/Categories=Utility;Emulator;/' src/VBox/Installer/common/virtualbox.desktop.in
@@ -659,6 +672,12 @@ install -p -D src/VBox/Additions/x11/Installer/98vboxadd-xclient \
 cp -p src/VBox/Additions/x11/Installer/vboxclient.desktop \
 	$RPM_BUILD_ROOT/etc/xdg/autostart/vboxclient.desktop
 
+%if %{with lightdm}
+install -d $RPM_BUILD_ROOT%{_datadir}/xgreeters
+install -p %{objdir}/vbox-greeter/vbox-greeter $RPM_BUILD_ROOT%{_sbindir}
+cp -p %{objdir}/Additions/Installer/linux/share/VBoxGuestAdditions/vbox-greeter.desktop $RPM_BUILD_ROOT%{_datadir}/xgreeters
+%endif
+
 # unknown - checkme
 %if 1
 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/SUPInstall
@@ -1032,6 +1051,13 @@ fi
 %attr(755,root,root) %{_libdir}/%{pname}/additions/vboxadd-service
 %attr(755,root,root) %{_libdir}/%{pname}/additions/vboxadd-x11
 
+%if %{with lightdm}
+%files -n lightdm-vbox-greeter
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_sbindir}/vbox-greeter
+%{_datadir}/xgreeters/vbox-greeter.desktop
+%endif
+
 %files -n pam-pam_vbox
 %defattr(644,root,root,755)
 %attr(755,root,root) /%{_lib}/security/pam_vbox.so
diff --git a/lightdm-greeter-g++-link.patch b/lightdm-greeter-g++-link.patch
new file mode 100644
index 0000000..4261c71
--- /dev/null
+++ b/lightdm-greeter-g++-link.patch
@@ -0,0 +1,10 @@
+--- VirtualBox-4.2.12/src/VBox/Additions/linux/lightdm-greeter/Makefile.kmk~	2013-06-01 11:13:40.000000000 +0300
++++ VirtualBox-4.2.12/src/VBox/Additions/linux/lightdm-greeter/Makefile.kmk	2013-06-02 11:08:48.853803103 +0300
+@@ -82,4 +82,7 @@
+  endif
+ endif
+ 
++# as vbox build links this with gcc not g++, add -lsupc++
++vbox-greeter_LIBS += supc++
++
+ include $(FILE_KBUILD_SUB_FOOTER)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/VirtualBox.git/commitdiff/0ccbe8d9c4e6f64debb5f80e79db89c2fc422791



More information about the pld-cvs-commit mailing list