summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenda Xu <heroxbd@gentoo.org>2019-12-01 20:00:21 +0800
committerBenda Xu <heroxbd@gentoo.org>2019-12-01 20:03:54 +0800
commitbf853256b4a91c0d66c21b54fc08ea4687551a90 (patch)
tree19ea6f79d5230576f2a3f68099825c96eeb527d5 /dev-util
parentsys-libs/cracklib: stable 2.9.7 for hppa, bug #701566 (diff)
downloadgentoo-bf853256b4a91c0d66c21b54fc08ea4687551a90.tar.gz
gentoo-bf853256b4a91c0d66c21b54fc08ea4687551a90.tar.bz2
gentoo-bf853256b4a91c0d66c21b54fc08ea4687551a90.zip
dev-util/nvidia-cuda-toolkit: Do not depend on nvidia-drivers on Prefix.
Prefix does not manage kernel-related packages. Package-Manager: Portage-2.3.79, Repoman-2.3.18 Signed-off-by: Benda Xu <heroxbd@gentoo.org>
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-10.1.243.ebuild8
1 files changed, 7 insertions, 1 deletions
diff --git a/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-10.1.243.ebuild b/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-10.1.243.ebuild
index 306345210681..a88adf637084 100644
--- a/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-10.1.243.ebuild
+++ b/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-10.1.243.ebuild
@@ -21,7 +21,7 @@ RESTRICT="bindist mirror"
BDEPEND=""
RDEPEND="
<sys-devel/gcc-9[cxx]
- >=x11-drivers/nvidia-drivers-${DRIVER_PV}[X,uvm]
+ !prefix? ( >=x11-drivers/nvidia-drivers-${DRIVER_PV}[X,uvm] )
debugger? (
dev-libs/openssl-compat:1.0.0
sys-libs/libtermcap-compat
@@ -147,4 +147,10 @@ pkg_postinst() {
if [[ ${MERGE_TYPE} != binary ]]; then
pkg_postinst_check
fi
+
+ if use prefix; then
+ ewarn "Gentoo Prefix does not manage kernel modules. You need to make certain"
+ ewarn "the function counterpart to >=x11-drivers/nvidia-drivers-${DRIVER_PV}[X,uvm]"
+ ewarn "is available from the host"
+ fi
}