diff options
author | Sam James <sam@gentoo.org> | 2024-11-05 02:57:22 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-11-05 02:58:00 +0000 |
commit | acdafb3f95a4dd143af220d4213893f86719b2e4 (patch) | |
tree | cdd527b667384466bc2c49fbe8d1f08824889d57 /media-libs | |
parent | www-client/chromium: fix duplicate KEYWORDS and revert #942590 stabilization (diff) | |
download | gentoo-acdafb3f95a4dd143af220d4213893f86719b2e4.tar.gz gentoo-acdafb3f95a4dd143af220d4213893f86719b2e4.tar.bz2 gentoo-acdafb3f95a4dd143af220d4213893f86719b2e4.zip |
media-libs/opencv: fix check for whether nvcc is installed
```
* Applying opencv_contrib-4.8.1-NVIDIAOpticalFlowSDK-2.0.tar.gz.patch ...
[ ok ]
/var/tmp/portage/media-libs/opencv-4.10.0/temp/environment: line 5691: nvcc: command not found
* ERROR: media-libs/opencv-4.10.0::gentoo failed (prepare phase):
* __eapi7_ver_compare: invalid version:
```
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs')
-rw-r--r-- | media-libs/opencv/opencv-4.10.0.ebuild | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/media-libs/opencv/opencv-4.10.0.ebuild b/media-libs/opencv/opencv-4.10.0.ebuild index ea1242c5e0b7..853455f07d30 100644 --- a/media-libs/opencv/opencv-4.10.0.ebuild +++ b/media-libs/opencv/opencv-4.10.0.ebuild @@ -458,7 +458,7 @@ src_prepare() { cd "${WORKDIR}/${PN}_contrib-${PV}" || die eapply "${FILESDIR}/${PN}_contrib-4.8.1-rgbd.patch" eapply "${FILESDIR}/${PN}_contrib-4.8.1-NVIDIAOpticalFlowSDK-2.0.tar.gz.patch" - if ver_test "$(nvcc --version | tail -n 1 | cut -d '_' -f 2- | cut -d '.' -f 1-2)" -ge 12.4; then + if type -P nvcc &> /dev/null && ver_test "$(nvcc --version | tail -n 1 | cut -d '_' -f 2- | cut -d '.' -f 1-2)" -ge 12.4; then eapply "${DISTDIR}/${PN}_contrib-4.10.0-3607.patch" eapply "${FILESDIR}/${PN}_contrib-4.10.0-CUDA-12.6-tuple_size.patch" # 3785 fi |