summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Zaman <perfinion@gentoo.org>2019-03-31 00:58:33 +0800
committerJason Zaman <perfinion@gentoo.org>2019-04-05 23:38:33 +0800
commit9ac30253c9155b30564a3176afc127ad71841566 (patch)
tree04750e6ff5d92007bf4f8d0da87ceb941f4b00e2 /dev-util/nvidia-cuda-toolkit
parentdev-util/nvidia-cuda-toolkit: Bump to 10.1.105 (diff)
downloadgentoo-9ac30253c9155b30564a3176afc127ad71841566.tar.gz
gentoo-9ac30253c9155b30564a3176afc127ad71841566.tar.bz2
gentoo-9ac30253c9155b30564a3176afc127ad71841566.zip
dev-util/nvidia-cuda-toolkit: call cuda-config with absolute path
When doing a clean install, cuda-config is not in $PATH yet so the gcc version check fails with 0.0. Calling with the absolute path fixes it. Signed-off-by: Jason Zaman <perfinion@gentoo.org> Package-Manager: Portage-2.3.62, Repoman-2.3.11
Diffstat (limited to 'dev-util/nvidia-cuda-toolkit')
-rw-r--r--dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-10.1.105.ebuild4
1 files changed, 2 insertions, 2 deletions
diff --git a/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-10.1.105.ebuild b/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-10.1.105.ebuild
index 0ba04a3b7cc2..7030ff9fe1de 100644
--- a/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-10.1.105.ebuild
+++ b/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-10.1.105.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -115,7 +115,7 @@ src_install() {
pkg_postinst_check() {
local a b
- a="$(cuda-config -s)"
+ a="$(${EROOT%/}/opt/cuda/bin/cuda-config -s)"
b="0.0"
for v in $a; do
if ver_test "${v}" -gt "${b}"; then