Skip to content

Commit

Permalink
dev-util/nvidia-cuda-toolkit: call cuda-config with absolute path
Browse files Browse the repository at this point in the history
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 <[email protected]>
Package-Manager: Portage-2.3.62, Repoman-2.3.11
  • Loading branch information
perfinion committed Apr 5, 2019
1 parent 08a12de commit 9ac3025
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9ac3025

Please sign in to comment.