3
0
Fork 0
forked from mirrors/nixpkgs

opencv4: fix OpenCV issue 13207

This is the same fix as for opencv3 in commit:
2572dd11ac
This commit is contained in:
Bas van Dijk 2018-12-20 09:45:37 +01:00
parent 49965e61d7
commit 6267a02d9c

View file

@ -160,7 +160,15 @@ stdenv.mkDerivation rec {
cp --no-preserve=mode -r "${contribSrc}/modules" "$NIX_BUILD_TOP/source/opencv_contrib" cp --no-preserve=mode -r "${contribSrc}/modules" "$NIX_BUILD_TOP/source/opencv_contrib"
''; '';
patches = patches = [
# https://github.com/opencv/opencv/pull/13232
# This also fixes the test of haskell-opencv HEAD where we got the following error:
# libgomp: Out of memory allocating 927712937064 bytes
(fetchpatch {
url = https://github.com/opencv/opencv/commit/e1ac8589f8a19b9bf5598bbae073ae12721c541d.patch;
sha256 = "1ap2818lixjhc5jgf779c57kwacafc0ap40lqrx6nqfz31silglj";
})
] ++
# Fixes issue: https://github.com/opencv/opencv_contrib/issues/1923 # Fixes issue: https://github.com/opencv/opencv_contrib/issues/1923
# PR: https://github.com/opencv/opencv_contrib/pull/1913 # PR: https://github.com/opencv/opencv_contrib/pull/1913
lib.optional buildContrib (fetchpatch { lib.optional buildContrib (fetchpatch {