1 |
commit: ae90e7d8c2d34aed7961f2de107959cb8605559c |
2 |
Author: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Apr 29 13:22:00 2019 +0000 |
4 |
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Apr 29 13:28:45 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae90e7d8 |
7 |
|
8 |
dev-util/nvidia-cuda-toolkit-10.1.105: Fix installation location of executables |
9 |
|
10 |
Fixes failures when invoking nvcc. link.stub and prelink.stub need to be |
11 |
in crt subdirectory otherwise nvcc fails to find them. |
12 |
Also extras/demo_suite were not executable. |
13 |
|
14 |
Thanks to Jan Vesely and Nathaniel R. Lewis, this fix was derived from |
15 |
patches from them. |
16 |
|
17 |
Closes: https://github.com/gentoo/gentoo/pull/11735 |
18 |
Closes: https://bugs.gentoo.org/684392 |
19 |
Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org> |
20 |
Package-Manager: Portage-2.3.62, Repoman-2.3.11 |
21 |
|
22 |
....ebuild => nvidia-cuda-toolkit-10.1.105-r1.ebuild} | 19 ++++++++++++------- |
23 |
1 file changed, 12 insertions(+), 7 deletions(-) |
24 |
|
25 |
diff --git a/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-10.1.105.ebuild b/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-10.1.105-r1.ebuild |
26 |
similarity index 91% |
27 |
rename from dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-10.1.105.ebuild |
28 |
rename to dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-10.1.105-r1.ebuild |
29 |
index 7030ff9fe1d..aeec8c41cba 100644 |
30 |
--- a/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-10.1.105.ebuild |
31 |
+++ b/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-10.1.105-r1.ebuild |
32 |
@@ -90,15 +90,20 @@ src_install() { |
33 |
eend |
34 |
done |
35 |
|
36 |
- dodir ${cudadir} || die |
37 |
- # Install binaries separately to amke sure the X permission is set |
38 |
- into ${cudadir} || die |
39 |
- dobin $(find bin nvvm/bin -type f) || die |
40 |
- find bin nvvm/bin -type f -delete || die |
41 |
+ dodir ${cudadir} |
42 |
+ into ${cudadir} |
43 |
+ |
44 |
+ # Install binaries separately to make sure the X permission is set |
45 |
+ local bindirs=( bin nvvm/bin extras/demo_suite ) |
46 |
+ for i in $(find "${bindirs[@]}" -maxdepth 1 -type f); do |
47 |
+ exeinto ${cudadir}/${i%/*} |
48 |
+ doexe ${i} |
49 |
+ rm ${i} || die |
50 |
+ done |
51 |
|
52 |
# Install the rest |
53 |
- insinto ${cudadir} || die |
54 |
- doins -r * || die |
55 |
+ insinto ${cudadir} |
56 |
+ doins -r * |
57 |
|
58 |
cat > "${T}"/99cuda <<- EOF || die |
59 |
PATH=${ecudadir}/bin$(usex profiler ":${ecudadir}/libnvvp" "") |