1
Fork 0
mirror of https://https.git.savannah.gnu.org/git/guix.git/ synced 2025-07-14 19:10:49 +02:00

gnu: opencv: Loosen test suite failures.

* gnu/packages/image-processing.scm (opencv)[native-inputs]: Add patch
to opencv-contrib.
[arguments]: Update 'unpack-submodule-sources phase.
* gnu/packages/patches/opencv-rgbd-aarch64-test-fix.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register it.
This commit is contained in:
Efraim Flashner 2019-01-14 11:32:02 +02:00
parent fdeb2def6a
commit 8e21fa0bd3
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351
3 changed files with 48 additions and 2 deletions

View file

@ -322,9 +322,13 @@ integrates with various databases on GUI toolkits such as Qt and Tk.")
(let ((unpack (lambda (source target)
(with-directory-excursion target
(apply invoke "unzip"
(list (assoc-ref inputs source)))))))
(list (assoc-ref inputs source))))))
(untar (lambda (source target)
(with-directory-excursion target
(apply invoke "tar" "xvf"
(list (assoc-ref inputs source)))))))
(unpack "opencv-extra" "../opencv-extra")
(unpack "opencv-contrib" "../opencv-contrib"))))
(untar "opencv-contrib" "../opencv-contrib"))))
(add-after 'set-paths 'add-ilmbase-include-path
(lambda* (#:key inputs #:allow-other-keys)
@ -363,6 +367,7 @@ integrates with various databases on GUI toolkits such as Qt and Tk.")
(uri (string-append "https://codeload.github.com/"
"opencv/opencv_contrib/zip/" version))
(file-name (string-append "opencv-contrib-" version ".zip"))
(patches (search-patches "opencv-rgbd-aarch64-test-fix.patch"))
(sha256
(base32 "0j0ci6ia1qwklp9hq07ypl0vkngj1wrgh6n98n657m5d0pyp4m0g"))))))
(inputs `(("libjpeg" ,libjpeg)