x11-drivers/nvidia-drivers: Depend on acct-group/video
authorJeroen Roovers <jer@gentoo.org>
Tue, 3 Mar 2020 11:24:54 +0000 (12:24 +0100)
committerJeroen Roovers <jer@gentoo.org>
Tue, 10 Mar 2020 08:22:29 +0000 (09:22 +0100)
Package-Manager: Portage-2.3.91, Repoman-2.3.20
Bug: https://bugs.gentoo.org/show_bug.cgi?id=701210
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
x11-drivers/nvidia-drivers/nvidia-drivers-340.108.ebuild
x11-drivers/nvidia-drivers/nvidia-drivers-390.132-r1.ebuild
x11-drivers/nvidia-drivers/nvidia-drivers-430.64-r1.ebuild
x11-drivers/nvidia-drivers/nvidia-drivers-435.21-r1.ebuild
x11-drivers/nvidia-drivers/nvidia-drivers-440.59.ebuild
x11-drivers/nvidia-drivers/nvidia-drivers-440.64.ebuild

index 103ebfe12f10636727f57f98d234e960b85c9e59..dd49f94e3b959c86a11acad4c93b98db5a80222e 100644 (file)
@@ -3,7 +3,7 @@
 
 EAPI=7
 inherit desktop flag-o-matic linux-info linux-mod multilib-minimal \
-       nvidia-driver portability toolchain-funcs unpacker user udev
+       nvidia-driver portability toolchain-funcs unpacker udev
 
 NV_URI="https://us.download.nvidia.com/XFree86/"
 X86_NV_PACKAGE="NVIDIA-Linux-x86-${PV}"
@@ -31,7 +31,10 @@ SLOT="0/${PV%.*}"
 
 COMMON="
        app-eselect/eselect-opencl
-       kernel_linux? ( >=sys-libs/glibc-2.6.1 )
+       kernel_linux? (
+               >=sys-libs/glibc-2.6.1
+               acct-group/video
+       )
        tools? (
                >=x11-libs/gtk+-2.4:2
                dev-libs/atk
@@ -435,7 +438,7 @@ pkg_preinst() {
        if use kernel_linux; then
                linux-mod_pkg_preinst
 
-               local videogroup="$(egetent group video | cut -d ':' -f 3)"
+               local videogroup="$(getent group video | cut -d ':' -f 3)"
                if [ -z "${videogroup}" ]; then
                        eerror "Failed to determine the video group gid"
                        die "Failed to determine the video group gid"
index 4105f9051740bf1ddeb5d16a17b987e2ff9af42a..cf876da824e4b6c2919f95d89fa636c843e77ee1 100644 (file)
@@ -3,7 +3,7 @@
 
 EAPI=7
 inherit desktop flag-o-matic linux-info linux-mod multilib-minimal \
-       nvidia-driver portability toolchain-funcs unpacker user udev
+       nvidia-driver portability toolchain-funcs unpacker udev
 
 DESCRIPTION="NVIDIA Accelerated Graphics Driver"
 HOMEPAGE="https://www.nvidia.com/"
@@ -39,6 +39,7 @@ REQUIRED_USE="
 
 COMMON="
        app-eselect/eselect-opencl
+       driver? ( kernel_linux? ( acct-group/video ) )
        kernel_linux? ( >=sys-libs/glibc-2.6.1 )
        tools? (
                dev-libs/atk
@@ -499,7 +500,7 @@ pkg_preinst() {
        if use driver && use kernel_linux; then
                linux-mod_pkg_preinst
 
-               local videogroup="$(egetent group video | cut -d ':' -f 3)"
+               local videogroup="$(getent group video | cut -d ':' -f 3)"
                if [ -z "${videogroup}" ]; then
                        eerror "Failed to determine the video group gid"
                        die "Failed to determine the video group gid"
index 3703f7a20d3c79254ae04afeadb9c38a309c56c5..bf97c9200785f98e7d3178a82a23e71acaa6750e 100644 (file)
@@ -3,7 +3,7 @@
 
 EAPI=7
 inherit desktop flag-o-matic linux-info linux-mod multilib-minimal \
-       nvidia-driver portability toolchain-funcs unpacker user udev
+       nvidia-driver portability toolchain-funcs unpacker udev
 
 DESCRIPTION="NVIDIA Accelerated Graphics Driver"
 HOMEPAGE="https://www.nvidia.com/"
@@ -34,6 +34,7 @@ REQUIRED_USE="
 
 COMMON="
        app-eselect/eselect-opencl
+       driver? ( kernel_linux? ( acct-group/video ) )
        kernel_linux? ( >=sys-libs/glibc-2.6.1 )
        tools? (
                dev-libs/atk
@@ -493,7 +494,7 @@ pkg_preinst() {
        if use driver && use kernel_linux; then
                linux-mod_pkg_preinst
 
-               local videogroup="$(egetent group video | cut -d ':' -f 3)"
+               local videogroup="$(getent group video | cut -d ':' -f 3)"
                if [ -z "${videogroup}" ]; then
                        eerror "Failed to determine the video group gid"
                        die "Failed to determine the video group gid"
index 1d8a6ae60a0b3acb33dd78b035f9bf16e26cca6f..efc890c088a7a403df4f9a88311096f674ac9d06 100644 (file)
@@ -3,7 +3,7 @@
 
 EAPI=7
 inherit desktop flag-o-matic linux-info linux-mod multilib-minimal \
-       nvidia-driver portability toolchain-funcs unpacker user udev
+       nvidia-driver portability toolchain-funcs unpacker udev
 
 DESCRIPTION="NVIDIA Accelerated Graphics Driver"
 HOMEPAGE="https://www.nvidia.com/"
@@ -34,6 +34,7 @@ REQUIRED_USE="
 
 COMMON="
        app-eselect/eselect-opencl
+       driver? ( kernel_linux? ( acct-group/video ) )
        kernel_linux? ( >=sys-libs/glibc-2.6.1 )
        tools? (
                dev-libs/atk
@@ -505,7 +506,7 @@ pkg_preinst() {
        if use driver && use kernel_linux; then
                linux-mod_pkg_preinst
 
-               local videogroup="$(egetent group video | cut -d ':' -f 3)"
+               local videogroup="$(getent group video | cut -d ':' -f 3)"
                if [ -z "${videogroup}" ]; then
                        eerror "Failed to determine the video group gid"
                        die "Failed to determine the video group gid"
index e416cc204eef87118a657a1ea823221182b8b615..c239b98ea0163c2f1651f70d23a67410bfd7f3d6 100644 (file)
@@ -3,7 +3,7 @@
 
 EAPI=7
 inherit desktop flag-o-matic linux-info linux-mod multilib-minimal \
-       nvidia-driver portability toolchain-funcs unpacker user udev
+       nvidia-driver portability toolchain-funcs unpacker udev
 
 DESCRIPTION="NVIDIA Accelerated Graphics Driver"
 HOMEPAGE="https://www.nvidia.com/"
@@ -34,6 +34,7 @@ REQUIRED_USE="
 
 COMMON="
        app-eselect/eselect-opencl
+       driver? ( kernel_linux? ( acct-group/video ) )
        kernel_linux? ( >=sys-libs/glibc-2.6.1 )
        tools? (
                dev-libs/atk
@@ -511,7 +512,7 @@ pkg_preinst() {
        if use driver && use kernel_linux; then
                linux-mod_pkg_preinst
 
-               local videogroup="$(egetent group video | cut -d ':' -f 3)"
+               local videogroup="$(getent group video | cut -d ':' -f 3)"
                if [ -z "${videogroup}" ]; then
                        eerror "Failed to determine the video group gid"
                        die "Failed to determine the video group gid"
index 7170a8ba16d41301767b82f080fffc8c29385c57..2cf1e05e95724db757a8a18903bde18b05c279b7 100644 (file)
@@ -3,7 +3,7 @@
 
 EAPI=7
 inherit desktop flag-o-matic linux-info linux-mod multilib-minimal \
-       nvidia-driver portability toolchain-funcs unpacker user udev
+       nvidia-driver portability toolchain-funcs unpacker udev
 
 DESCRIPTION="NVIDIA Accelerated Graphics Driver"
 HOMEPAGE="https://www.nvidia.com/"
@@ -34,6 +34,7 @@ REQUIRED_USE="
 
 COMMON="
        app-eselect/eselect-opencl
+       driver? ( kernel_linux? ( acct-group/video ) )
        kernel_linux? ( >=sys-libs/glibc-2.6.1 )
        tools? (
                dev-libs/atk
@@ -511,7 +512,7 @@ pkg_preinst() {
        if use driver && use kernel_linux; then
                linux-mod_pkg_preinst
 
-               local videogroup="$(egetent group video | cut -d ':' -f 3)"
+               local videogroup="$(getent group video | cut -d ':' -f 3)"
                if [ -z "${videogroup}" ]; then
                        eerror "Failed to determine the video group gid"
                        die "Failed to determine the video group gid"