Fixes failures when invoking nvcc. link.stub and prelink.stub need to be
in crt subdirectory otherwise nvcc fails to find them.
Also extras/demo_suite were not executable.
Thanks to Jan Vesely and Nathaniel R. Lewis, this fix was derived from
patches from them.
Closes: https://github.com/gentoo/gentoo/pull/11735
Closes: https://bugs.gentoo.org/684392
Signed-off-by: Jason Zaman <perfinion@gentoo.org>
Package-Manager: Portage-2.3.62, Repoman-2.3.11
eend
done
- dodir ${cudadir} || die
- # Install binaries separately to amke sure the X permission is set
- into ${cudadir} || die
- dobin $(find bin nvvm/bin -type f) || die
- find bin nvvm/bin -type f -delete || die
+ dodir ${cudadir}
+ into ${cudadir}
+
+ # Install binaries separately to make sure the X permission is set
+ local bindirs=( bin nvvm/bin extras/demo_suite )
+ for i in $(find "${bindirs[@]}" -maxdepth 1 -type f); do
+ exeinto ${cudadir}/${i%/*}
+ doexe ${i}
+ rm ${i} || die
+ done
# Install the rest
- insinto ${cudadir} || die
- doins -r * || die
+ insinto ${cudadir}
+ doins -r *
cat > "${T}"/99cuda <<- EOF || die
PATH=${ecudadir}/bin$(usex profiler ":${ecudadir}/libnvvp" "")