1 |
commit: 38f0acd3a2cb845b4f03515c6203d853a0ebc05b |
2 |
Author: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Oct 14 15:44:48 2018 +0000 |
4 |
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Oct 17 04:45:25 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=38f0acd3 |
7 |
|
8 |
cuda.eclass: Add nvidia-cuda-toolkit dep |
9 |
|
10 |
The eclass checked for nvidia-cuda-toolkit but was missing the DEPEND. |
11 |
Also for EAPI7 both DEPEND and BDEPEND are needed for the compiler and |
12 |
libraries. |
13 |
|
14 |
Closes: https://bugs.gentoo.org/654168 |
15 |
Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org> |
16 |
|
17 |
eclass/cuda.eclass | 5 +++++ |
18 |
1 file changed, 5 insertions(+) |
19 |
|
20 |
diff --git a/eclass/cuda.eclass b/eclass/cuda.eclass |
21 |
index f1c09ca2e45..f8f0822d4e0 100644 |
22 |
--- a/eclass/cuda.eclass |
23 |
+++ b/eclass/cuda.eclass |
24 |
@@ -41,6 +41,11 @@ inherit flag-o-matic toolchain-funcs |
25 |
# Being verbose during compilation to see underlying commands |
26 |
: ${CUDA_VERBOSE:=true} |
27 |
|
28 |
+DEPEND="dev-util/nvidia-cuda-toolkit" |
29 |
+if [[ ${EAPI} != [56] ]]; then |
30 |
+ BDEPEND="dev-util/nvidia-cuda-toolkit" |
31 |
+fi |
32 |
+ |
33 |
# @FUNCTION: cuda_gccdir |
34 |
# @USAGE: [-f] |
35 |
# @RETURN: gcc bindir compatible with current cuda, optionally (-f) prefixed with "--compiler-bindir " |