commit:     76ad930669a5078e69470a7aed8728f23daba43a
Author:     Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
AuthorDate: Thu Dec  5 11:05:45 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Dec  5 18:01:17 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=76ad9306

media-libs/opencv: explicitly pass NVCC_CCBIN to fix <=cuda-12.4.1

Closes: https://bugs.gentoo.org/945333
Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-libs/opencv/opencv-4.10.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/media-libs/opencv/opencv-4.10.0.ebuild 
b/media-libs/opencv/opencv-4.10.0.ebuild
index 34bfb33194a0..0fddb4ef92d5 100644
--- a/media-libs/opencv/opencv-4.10.0.ebuild
+++ b/media-libs/opencv/opencv-4.10.0.ebuild
@@ -381,7 +381,7 @@ cuda_get_host_compiler() {
 
        ebegin "testing ${NVCC_CCBIN_default} (default)"
 
-       while ! nvcc - -x cu <<<"int main(){}" &>/dev/null; do
+       while ! nvcc -v -ccbin "${NVCC_CCBIN}" - -x cu <<<"int main(){}" &>> 
"${T}/cuda_get_host_compiler.log" ; do
                eend 1
 
                while true; do

Reply via email to