From: Jason Zaman Date: Sun, 14 Oct 2018 15:44:48 +0000 (+0800) Subject: cuda.eclass: Add nvidia-cuda-toolkit dep X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=38f0acd3a2cb845b4f03515c6203d853a0ebc05b;p=gentoo.git cuda.eclass: Add nvidia-cuda-toolkit dep The eclass checked for nvidia-cuda-toolkit but was missing the DEPEND. Also for EAPI7 both DEPEND and BDEPEND are needed for the compiler and libraries. Closes: https://bugs.gentoo.org/654168 Signed-off-by: Jason Zaman --- diff --git a/eclass/cuda.eclass b/eclass/cuda.eclass index f1c09ca2e453..f8f0822d4e0d 100644 --- a/eclass/cuda.eclass +++ b/eclass/cuda.eclass @@ -41,6 +41,11 @@ inherit flag-o-matic toolchain-funcs # Being verbose during compilation to see underlying commands : ${CUDA_VERBOSE:=true} +DEPEND="dev-util/nvidia-cuda-toolkit" +if [[ ${EAPI} != [56] ]]; then + BDEPEND="dev-util/nvidia-cuda-toolkit" +fi + # @FUNCTION: cuda_gccdir # @USAGE: [-f] # @RETURN: gcc bindir compatible with current cuda, optionally (-f) prefixed with "--compiler-bindir "