From 2759d4ca74ff4846b79c406c000b64dc2f2ed0ac Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Fri, 14 Aug 2020 16:08:17 +0200 Subject: [PATCH] gnu: opencv: Fix build with new version of jasper. * gnu/packages/image-processing.scm (opencv): Fix build failure. [arguments]<#:phases>[fix-jasper]: New phase. Signed-off-by: Danny Milosavljevic --- gnu/packages/image-processing.scm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gnu/packages/image-processing.scm b/gnu/packages/image-processing.scm index 52e0311943..b93ad161db 100644 --- a/gnu/packages/image-processing.scm +++ b/gnu/packages/image-processing.scm @@ -358,6 +358,14 @@ (define-public opencv "--strip-components=1" "-C" "../opencv-contrib"))) + (add-after 'unpack 'fix-jasper + (lambda _ + ;; See . + (substitute* "modules/imgcodecs/src/grfmt_jpeg2000.cpp" + (("&jas_matrix_get") + "jas_matrix_getref")) + #t)) + (add-after 'set-paths 'add-ilmbase-include-path (lambda* (#:key inputs #:allow-other-keys) ;; OpenEXR propagates ilmbase, but its include files do not appear