From 38f0acd3a2cb845b4f03515c6203d853a0ebc05b Mon Sep 17 00:00:00 2001 From: Jason Zaman Date: Sun, 14 Oct 2018 23:44:48 +0800 Subject: [PATCH] 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 --- eclass/cuda.eclass | 5 +++++ 1 file changed, 5 insertions(+) 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 " -- 2.26.2