From d01cae1ab3008a8db32f9b142f17a6d2553bf180 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 21 Mar 2015 12:35:36 +0100 Subject: [PATCH] nvidia: split libs into -libs and -gtklibs subpkgs. This should avoid the circular dependencies reported by @duncaen. --- common/shlibs | 11 ++++++++--- srcpkgs/nvidia-gtklibs | 1 + srcpkgs/nvidia-libs | 1 + srcpkgs/nvidia/template | 23 ++++++++++++++++++----- 4 files changed, 28 insertions(+), 8 deletions(-) create mode 120000 srcpkgs/nvidia-gtklibs create mode 120000 srcpkgs/nvidia-libs diff --git a/common/shlibs b/common/shlibs index 689ff001c7a..3ce8d055eea 100644 --- a/common/shlibs +++ b/common/shlibs @@ -121,9 +121,14 @@ libGLESv2.so rpi-firmware-20150207_1 libwayland-egl.so.1 libwayland-egl-9.0.1_4 libGL.so.1 libGL-7.11_1 libGL.so.1 catalyst-14.2_1 -libGL.so.1 nvidia-346.47_1 -libGL.so.1 nvidia304-304.00_1 -libGL.so.1 nvidia-stable-340.46_1 +libGL.so.1 nvidia-libs-346.47_1 +libGL.so.1 nvidia304-libs-304.00_1 +libGL.so.1 nvidia-stable-libs-340.46_1 +libnvidia-ml.so.1 nvidia-libs-346.47_1 +libnvidia-tls.so.346.47 nvidia-libs-346.47_1 +libnvidia-glcore.so.346.47 nvidia-libs-346.47_1 +libnvidia-gtk2.so.346.47 nvidia-gtklibs-346.47_1 +libnvidia-gtk3.so.346.47 nvidia-gtklibs-346.47_1 libglapi.so.0 libglapi-7.11_1 libgbm.so.1 libgbm-9.0_1 librsvg-2.so.2 librsvg-2.26.0_1 diff --git a/srcpkgs/nvidia-gtklibs b/srcpkgs/nvidia-gtklibs new file mode 120000 index 00000000000..746a30838a6 --- /dev/null +++ b/srcpkgs/nvidia-gtklibs @@ -0,0 +1 @@ +nvidia \ No newline at end of file diff --git a/srcpkgs/nvidia-libs b/srcpkgs/nvidia-libs new file mode 120000 index 00000000000..746a30838a6 --- /dev/null +++ b/srcpkgs/nvidia-libs @@ -0,0 +1 @@ +nvidia \ No newline at end of file diff --git a/srcpkgs/nvidia/template b/srcpkgs/nvidia/template index a6cdaa6737a..ca1845bac6e 100644 --- a/srcpkgs/nvidia/template +++ b/srcpkgs/nvidia/template @@ -4,7 +4,7 @@ _desc="NVIDIA drivers for linux" pkgname=nvidia version=346.47 -revision=3 +revision=4 maintainer="Juan RP " license="Propietary NVIDIA license" homepage="http://www.nvidia.com" @@ -13,12 +13,9 @@ only_for_archs="i686 x86_64" repository="nonfree" create_wrksrc=yes short_desc="${_desc} - Libraries and Utilities" -depends="nvidia-dkms-${version}_${revision} pkg-config" +depends="nvidia-gtklibs-${version}_${revision} nvidia-dkms-${version}_${revision} pkg-config" conflicts="xserver-abi-video>20" -provides="libGL-${version}_${revision}" -replaces="libGL>=0" - if [ "$XBPS_TARGET_MACHINE" = "i686" ]; then _pkg="NVIDIA-Linux-x86-${version}" distfiles="http://us.download.nvidia.com/XFree86/Linux-x86/${version}/NVIDIA-Linux-x86-${version}.run" @@ -29,6 +26,8 @@ else checksum=d1b6672a9ddef2a01a527902b524dec232792cf9b61d3fa7bd0189488a961677 fi +subpackages="nvidia-gtklibs nvidia-dkms nvidia-opencl nvidia-libs" + do_extract() { install -m755 ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_pkg}.run ${wrksrc} cd ${wrksrc} @@ -176,6 +175,20 @@ do_install() { echo "omit_dracutmodules+=\" drm \"" > ${DESTDIR}/usr/lib/dracut/dracut.conf.d/99-nvidia.conf } +nvidia-gtklibs_package() { + short_desc="${_desc} - GTK libraries" + pkg_install() { + vmove usr/lib/lib*gtk*.so* + } +} +nvidia-libs_package() { + short_desc="${_desc} - common libraries" + provides="libGL-${version}_${revision}" + replaces="libGL>=0" + pkg_install() { + vmove usr/lib + } +} nvidia-dkms_package() { short_desc="${_desc} - DKMS kernel module" triggers="dkms"