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
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
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