dev-util/nvidia-cuda-toolkit: call cuda-config with absolute path
authorJason Zaman <perfinion@gentoo.org>
Sat, 30 Mar 2019 16:58:33 +0000 (00:58 +0800)
committerJason Zaman <perfinion@gentoo.org>
Fri, 5 Apr 2019 15:38:33 +0000 (23:38 +0800)
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

dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-10.1.105.ebuild

index 0ba04a3b7cc2d12d62e81445c8d3c54ca77368a8..7030ff9fe1de04f043f062966dd2b34d9d76d510 100644 (file)
@@ -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