From fd87b7c771378b2116981e3924bee5805148e118 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 22 Nov 2023 17:18:34 +0000 Subject: gentoo auto-resync : 22:11:2023 - 17:18:34 --- media-libs/opencv/Manifest | 7 ++-- .../files/opencv-4.8.0-fix-cuda-12.2.0.patch | 40 ++++++++++++++++++++++ media-libs/opencv/opencv-4.8.0-r1.ebuild | 1 + media-libs/opencv/opencv-4.8.0.ebuild | 1 + media-libs/opencv/opencv-4.8.1.ebuild | 1 + 5 files changed, 47 insertions(+), 3 deletions(-) create mode 100644 media-libs/opencv/files/opencv-4.8.0-fix-cuda-12.2.0.patch (limited to 'media-libs/opencv') diff --git a/media-libs/opencv/Manifest b/media-libs/opencv/Manifest index ed351ce2fcb6..e12cd8b94887 100644 --- a/media-libs/opencv/Manifest +++ b/media-libs/opencv/Manifest @@ -6,6 +6,7 @@ AUX opencv-4.5.0-link-with-cblas-for-lapack.patch 726 BLAKE2B adbffd961c88229bf8 AUX opencv-4.6.0-fix-build-examples.patch 700 BLAKE2B 4560255001cde7e8071d2ee93a437f01a9f745e825b92b1a9f66fab143f5e060a01c706d180e8ee5449e4ca1a0eec591c71215df18ba3f49fab683124f577007 SHA512 02c51e755c98b2b51f11f1d34a88ec77f727f91d5af91426a5c625215ccde28ca57de356f2187df003fa2bc97ef9304a2d95b8aca0e71b999341b0d258e8bc0b AUX opencv-4.6.0-fix-ffmpeg-5.patch 547 BLAKE2B a1257e21f8c9ae5255c9155d913c304907e9af0ba8ca1d2d2bb10e2cbe54c9c98aa495f15c6c7b999bbfe2ee9c47c2898859ed84a121fcdd1549c1d122779cc4 SHA512 75961c301082e21839ade53a9ec3adb8d8f2b150e1a87effa7a0d7de3b30ccc7f1506d94311740fc2c933666317e32953626cdd38acecfaff854124b1f8d4163 AUX opencv-4.8.0-arm64-fp16.patch 12222 BLAKE2B 18803d74cb57bbc303c8159ca69d24dcc47d00a314bfdababeadd3b85306d289c8b35a1106011086931396e0ab82d98964434d0c0eaa34c25451c766ca9b9199 SHA512 1d9d42a711a1ae0ec7f1f641a68271d4b36f6b8701997a05d65c633d3531cad75e4edbf71c4f80cc59a9a14baa8ddebf19081dc67b99898dce13da8e3746227e +AUX opencv-4.8.0-fix-cuda-12.2.0.patch 1920 BLAKE2B c43157c4859666a962fa40ed435aeab6b17ac01b9b67dbba0955fb7c009504b1780f5de2a40ee63db245cadf0da41b40fda0d7e06ad719071b12ba385f693ea2 SHA512 5ab0c15811748307971e8939a40c08c2c9cf3e38d2acafff72a3890f6d7c7133d8c7a087cf1a05b2dbe1907dd88911872c61c10f7638edb46ee679f658b265c6 AUX opencv-4.8.0-fix-flatbuffer.patch 1764 BLAKE2B 806f61bf7017fbcb5b5058686db9dd2272eb61d6a2952f0f029bc76d62172a18f9a21661426f13cfd5066fc60710b218bb9b2dfded61e33040469da0e0b72c94 SHA512 2679f52c3df16b7daac1fafa0b24796568a2555de03805ee6ee6b2e08a2be9f63fca44c1b472f5ffe2dfb7fe8b3d754b3ba39a71419974613a9b3de70a09cefb AUX opencv-4.8.0-fix-protobuf.patch 543 BLAKE2B 2c3ac7ddeda366cb117d5deddefe732dd6918bc54e468b1cc8d95e40bb9e5cde1776046a894e8f26416edffa39dc6c97547cbd688e0566587f9690e721b4c1e1 SHA512 799e3f3d019624476a285c2795d28f022bb126e9b9f511b153aef131a7cae2e3fb6361bd21b7ea34dfea984e3ef9e1a0a40d09a5a72a808a31e1eb15548b15a7 DIST opencv-3.4.0-face_landmark_model.tar.gz 63299830 BLAKE2B 58f08cd8c030ee1c8b66e76a561fd625e112face427d001185f8d7c0eaace55adbd8474663021841a1382bfe393a210e64c51223441713cdb9156fac866a845c SHA512 2cd29ce42c08b2966db3ef4a2bc217ab3d07051819757ec6de8f3deea29e28f60abab39f101dba03f766f17018598e411bd687a7eaab0c681c113e10a2de2b23 @@ -23,7 +24,7 @@ DIST vgg_boostdesc-3.2.0.tar.gz 1867770 BLAKE2B 1fa5b58e73b6fa56ecf8d19af22298f7 EBUILD opencv-4.6.0-r4.ebuild 21277 BLAKE2B 458906fe516524a8d997e6645d16ca3621774795271cb06aa2bb414a5937139db84beffb1dfa39d96215f45aa56c93461463a62f5f771cfc16396b3d926e049b SHA512 2d2b557fe6b260cd4c3ffbd4159cac68dafb9fc22138ff2f119350723a44f3376ee39f20d8c8b2d61952d88d9a60b470d36477552f0a1eb9b12eccd690547e6e EBUILD opencv-4.7.0-r1.ebuild 21289 BLAKE2B 0e2c1ac23fcd0ec261329eeeb73f035bb92bdd0d114b6123a9934d85937034e65e22a5264553cf294c66023a23e7bab7bb77560bb422a0d36ed726bc010afdd8 SHA512 332206b352f57fd16375b104f84e3019a8358ed174159f0827f51ac522ccdb62c360fcea1a94c2333adae5468acb95e78ad6897c3e8f9daa33292161794b737e EBUILD opencv-4.7.0.ebuild 21242 BLAKE2B 930ce7cdb362134193217aced8fb53e6695cde0d2abf1582db923c5bad84c01189eea5d76dc6bfd81e1bbcd0e286f94c2d17b59bb3ace0dd2cdbf26e21be6d17 SHA512 43f45361d176e7f34dc0c1d98dc459b351215b9a2db8d76390b384e774a95db8792386fecd35007ffee90d2a275f3daea010da1cea5e9728221f71d6c6a44164 -EBUILD opencv-4.8.0-r1.ebuild 21498 BLAKE2B fdcc6acc16e49e2d7d612617b551e532612490b72a27b2aecd39d45d02164419aacea7fd13dc68ddcb1166b54dbdfb8cbf8167690071e353eba64c6a5173fcb9 SHA512 7532f01d5c725efd1c20019eab7879a8e31ba8b2194b4b0869971827512392145667f642cbc77672a82edd2f83cc77a0378386dbf1ac1cf1ba55aa388f97a196 -EBUILD opencv-4.8.0.ebuild 21266 BLAKE2B f7eef7599c1dba1eeafc61ff2717d47229c64ce3c9592da01a2ac8d0e75e6c7158c1b66346db77d969e573d5f7e50880b42827b185184c5fa571b7cc7b4dc747 SHA512 a47347e0966585c4b5789ddb11373e5b9b7559e26a8ab401de25b2f427b85cdbf7a9d47ea53d654e79bd44fece38d45f437ad91bdbe872410b9cd881192d3055 -EBUILD opencv-4.8.1.ebuild 21961 BLAKE2B bd26de4aff6ccfce3b9b1e19f21a17c18ade279734bb79a988d27b84e1f17e8c4a4804d7ccd1e7fd51d2ec627525d0feea73b91339d9dfa53b219cf8b2c5557f SHA512 686cebafbc8e3c0995ab210006a613feb5384bafbaf8368b7d6e21faec0aae68cef33f94e58a8327374f92536dda4394b5e25ec50b0e3f847cf1d5e3c9ef5915 +EBUILD opencv-4.8.0-r1.ebuild 21547 BLAKE2B b99ae2674efe89748d80fbdc59b54f48f71e4e992552cfc63dadcbf195d2418f01701873158c43417f03d7d055c187611b0b7a9d4a4ab800acfa4153c02f5911 SHA512 187cdc3fa84b29f5e59a136ade5bb6fb28c183140eb27ceff352ca928d29f7b2e6407445a58bc36b7770d36cda3595e66d86095e23cd53126786594111c5b48e +EBUILD opencv-4.8.0.ebuild 21315 BLAKE2B 47d10c626c58b570d2decb6dcc387825c73ebeb1040f0301bc5d5763a19f0c85132ce521dc3425f9191ea086f0ecb6d309fb07cf8787de5d437f6c4dc3a409a8 SHA512 8c894c1d251090c1bb9a93c138103cd9f2049e633958f9cb7964f00ef0838b3d654cd89bcfce44027baff33c0b6cea21e6a47c816b67c501bd5da21dd88c66e3 +EBUILD opencv-4.8.1.ebuild 22010 BLAKE2B f45246f83b047a92b03a544571a50517e4c982fae42190afd01bc1d77e1c6aa40d157ea0d580ea570ab9871fccf3bb07755ea3730a88182a42ea66a411c66709 SHA512 78be48109a65ed6e0a648acbf87d11cc6183af1a701dcb186e806e367cff7e074ab4d90c2bcbeff60310064791c15bd2b43d9eb5b1ba9fdfc53bf6b3fe3de9e0 MISC metadata.xml 3380 BLAKE2B 7110d6b679cf07eab5c673fccdee71ac80bc0634209ab0cf711a31569163ba713679b0f708e6d3a1dafe54efaf9116bd2892417b276cc27f80b1af1ace5737b0 SHA512 81b1e28bf9a48457633547213c9df82ed3b54864681474692dc441f5006fefd6907c1d7a6a617e40a2e8d38c25ef90e0e79561e206b92ff92188005e24ac5759 diff --git a/media-libs/opencv/files/opencv-4.8.0-fix-cuda-12.2.0.patch b/media-libs/opencv/files/opencv-4.8.0-fix-cuda-12.2.0.patch new file mode 100644 index 000000000000..fd7d12af2644 --- /dev/null +++ b/media-libs/opencv/files/opencv-4.8.0-fix-cuda-12.2.0.patch @@ -0,0 +1,40 @@ +https://github.com/opencv/opencv/pull/24104 +https://github.com/opencv/opencv/commit/5466fd2606ca6df57bbe43f064d2ae73fe4329eb +https://bugs.gentoo.org/915775 + +From ab8cb6f8a9034da2a289b84685c6d959266029be Mon Sep 17 00:00:00 2001 +From: cudawarped <12133430+cudawarped@users.noreply.github.com> +Date: Tue, 1 Aug 2023 13:02:42 +0300 +Subject: [PATCH] cuda: fix for compatibility with CUDA Toolkit >= 12.2.0 + +--- + modules/dnn/src/cuda4dnn/primitives/normalize_bbox.hpp | 2 +- + modules/dnn/src/cuda4dnn/primitives/region.hpp | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/modules/dnn/src/cuda4dnn/primitives/normalize_bbox.hpp b/modules/dnn/src/cuda4dnn/primitives/normalize_bbox.hpp +index f067dddaa701..91ff33f81718 100644 +--- a/modules/dnn/src/cuda4dnn/primitives/normalize_bbox.hpp ++++ b/modules/dnn/src/cuda4dnn/primitives/normalize_bbox.hpp +@@ -111,7 +111,7 @@ namespace cv { namespace dnn { namespace cuda4dnn { + * or there might be several weights + * or we don't have to scale + */ +- if (weight != 1.0) ++ if (weight != static_cast(1.0f)) + { + kernels::scale1_with_bias1(stream, output, input, weight, 1.0); + } +diff --git a/modules/dnn/src/cuda4dnn/primitives/region.hpp b/modules/dnn/src/cuda4dnn/primitives/region.hpp +index d22d44214e7b..3af05155feea 100644 +--- a/modules/dnn/src/cuda4dnn/primitives/region.hpp ++++ b/modules/dnn/src/cuda4dnn/primitives/region.hpp +@@ -121,7 +121,7 @@ namespace cv { namespace dnn { namespace cuda4dnn { + new_coords + ); + +- if (nms_iou_threshold > 0) { ++ if (nms_iou_threshold > static_cast(0.0f)) { + auto output_mat = output_wrapper->getMutableHostMat(); + CV_Assert(output_mat.type() == CV_32F); + for (int i = 0; i < input.get_axis_size(0); i++) { diff --git a/media-libs/opencv/opencv-4.8.0-r1.ebuild b/media-libs/opencv/opencv-4.8.0-r1.ebuild index 2910615c0b36..ad47071aba4d 100644 --- a/media-libs/opencv/opencv-4.8.0-r1.ebuild +++ b/media-libs/opencv/opencv-4.8.0-r1.ebuild @@ -295,6 +295,7 @@ PATCHES=( "${FILESDIR}"/${PN}-4.8.0-fix-protobuf.patch "${FILESDIR}"/${PN}-4.8.0-fix-flatbuffer.patch "${FILESDIR}"/${PN}-4.8.0-arm64-fp16.patch + "${FILESDIR}"/${PN}-4.8.0-fix-cuda-12.2.0.patch ) pkg_pretend() { diff --git a/media-libs/opencv/opencv-4.8.0.ebuild b/media-libs/opencv/opencv-4.8.0.ebuild index 772cd8408d98..82322d2d67fb 100644 --- a/media-libs/opencv/opencv-4.8.0.ebuild +++ b/media-libs/opencv/opencv-4.8.0.ebuild @@ -290,6 +290,7 @@ PATCHES=( "${FILESDIR}"/${PN}-4.1.2-opencl-license.patch "${FILESDIR}"/${PN}-4.4.0-disable-native-cpuflag-detect.patch "${FILESDIR}"/${PN}-4.5.0-link-with-cblas-for-lapack.patch + "${FILESDIR}"/${PN}-4.8.0-fix-cuda-12.2.0.patch ) pkg_pretend() { diff --git a/media-libs/opencv/opencv-4.8.1.ebuild b/media-libs/opencv/opencv-4.8.1.ebuild index 0bfc5cab4674..3f219f22a627 100644 --- a/media-libs/opencv/opencv-4.8.1.ebuild +++ b/media-libs/opencv/opencv-4.8.1.ebuild @@ -300,6 +300,7 @@ PATCHES=( "${FILESDIR}"/${PN}-4.8.0-fix-protobuf.patch "${FILESDIR}"/${PN}-4.8.0-fix-flatbuffer.patch "${FILESDIR}"/${PN}-4.8.0-arm64-fp16.patch + "${FILESDIR}"/${PN}-4.8.0-fix-cuda-12.2.0.patch ) pkg_pretend() { -- cgit v1.2.3