[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
195/265: gnu: opencv: Fix build with new version of jasper.
From: |
guix-commits |
Subject: |
195/265: gnu: opencv: Fix build with new version of jasper. |
Date: |
Wed, 19 Aug 2020 13:09:29 -0400 (EDT) |
dannym pushed a commit to branch wip-desktop
in repository guix.
commit 9c2031f1bbfad113cb179508c91329f8e5284a86
Author: Raghav Gururajan <raghavgururajan@disroot.org>
AuthorDate: Fri Aug 14 04:24:26 2020 -0400
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 <dannym@scratchpost.org>
---
gnu/packages/image-processing.scm | 56 ++++++++++++++++++++++-----------------
1 file changed, 32 insertions(+), 24 deletions(-)
diff --git a/gnu/packages/image-processing.scm
b/gnu/packages/image-processing.scm
index abdaec5..deab738 100644
--- a/gnu/packages/image-processing.scm
+++ b/gnu/packages/image-processing.scm
@@ -245,8 +245,8 @@ integrates with various databases on GUI toolkits such as
Qt and Tk.")
(source (origin
(method git-fetch)
(uri (git-reference
- (url "https://github.com/opencv/opencv")
- (commit version)))
+ (url "https://github.com/opencv/opencv")
+ (commit version)))
(file-name (git-file-name name version))
(sha256
(base32
@@ -272,7 +272,7 @@ integrates with various databases on GUI toolkits such as
Qt and Tk.")
`(#:configure-flags
(list "-DWITH_IPP=OFF"
"-DWITH_ITT=OFF"
- "-DWITH_CAROTENE=OFF" ; only visible on arm/aarch64
+ "-DWITH_CAROTENE=OFF" ; only visible on arm/aarch64
"-DENABLE_PRECOMPILED_HEADERS=OFF"
;; CPU-Features:
@@ -360,25 +360,33 @@ integrates with various databases on GUI toolkits such as
Qt and Tk.")
"--strip-components=1"
"-C" "../opencv-contrib")))
+ (add-after 'unpack 'fix-jasper
+ (lambda _
+ ;; See <https://github.com/opencv/opencv/pull/17983>.
+ (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
- ;; in the CPATH, so we need to add "$ilmbase/include/OpenEXR/" to
- ;; the CPATH to satisfy the dependency on "ImathVec.h".
- (setenv "CPATH"
- (string-append (assoc-ref inputs "ilmbase")
- "/include/OpenEXR"
- ":" (or (getenv "CPATH") "")))
- #t))
- (add-before 'check 'start-xserver
- (lambda* (#:key inputs #:allow-other-keys)
- (let ((xorg-server (assoc-ref inputs "xorg-server"))
- (disp ":1"))
- (setenv "HOME" (getcwd))
- (setenv "DISPLAY" disp)
- ;; There must be a running X server and make check doesn't start
one.
- ;; Therefore we must do it.
- (zero? (system (format #f "~a/bin/Xvfb ~a &" xorg-server
disp)))))))))
+ ;; OpenEXR propagates ilmbase, but its include files do not appear
+ ;; in the CPATH, so we need to add "$ilmbase/include/OpenEXR/" to
+ ;; the CPATH to satisfy the dependency on "ImathVec.h".
+ (setenv "CPATH"
+ (string-append (assoc-ref inputs "ilmbase")
+ "/include/OpenEXR"
+ ":" (or (getenv "CPATH") "")))
+ #t))
+ (add-before 'check 'start-xserver
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((xorg-server (assoc-ref inputs "xorg-server"))
+ (disp ":1"))
+ (setenv "HOME" (getcwd))
+ (setenv "DISPLAY" disp)
+ ;; There must be a running X server and make check doesn't
start one.
+ ;; Therefore we must do it.
+ (zero? (system (format #f "~a/bin/Xvfb ~a &" xorg-server
disp)))))))))
(native-inputs
`(("pkg-config" ,pkg-config)
("xorg-server" ,xorg-server-for-tests) ; For running the tests
@@ -386,8 +394,8 @@ integrates with various databases on GUI toolkits such as
Qt and Tk.")
,(origin
(method git-fetch)
(uri (git-reference
- (url "https://github.com/opencv/opencv_extra")
- (commit version)))
+ (url "https://github.com/opencv/opencv_extra")
+ (commit version)))
(file-name (git-file-name "opencv_extra" version))
(sha256
(base32 "08p5xnq8n1jw8svvz0fnirfg7q8dm3p4a5dl7527s5xj0f9qn7lp"))))
@@ -395,8 +403,8 @@ integrates with various databases on GUI toolkits such as
Qt and Tk.")
,(origin
(method git-fetch)
(uri (git-reference
- (url "https://github.com/opencv/opencv_contrib")
- (commit version)))
+ (url "https://github.com/opencv/opencv_contrib")
+ (commit version)))
(file-name (git-file-name "opencv_contrib" version))
(patches (search-patches "opencv-rgbd-aarch64-test-fix.patch"))
(sha256
- 183/265: gnu: Add mozjs-68., (continued)
- 183/265: gnu: Add mozjs-68., guix-commits, 2020/08/19
- 185/265: gnu: mutter: Update package definition., guix-commits, 2020/08/19
- 186/265: gnu: gdm: Update package definition., guix-commits, 2020/08/19
- 188/265: build-system/glib-or-gtk: Include GI_TYPELIB_PATH in wrapper., guix-commits, 2020/08/19
- 190/265: build-system/python: Also wrap executables that are in "libexec"., guix-commits, 2020/08/19
- 192/265: build-system/cmake: Wrap Python executables, too., guix-commits, 2020/08/19
- 158/265: gnu: gnome-keyring: Update package definition., guix-commits, 2020/08/19
- 170/265: gnu: gnome-user-docs: Update package definition., guix-commits, 2020/08/19
- 184/265: gnu: gjs: Update package definition., guix-commits, 2020/08/19
- 194/265: gnu: Add gnome-minimal., guix-commits, 2020/08/19
- 195/265: gnu: opencv: Fix build with new version of jasper.,
guix-commits <=
- 196/265: build-system/meson: Only include phases that are enabled., guix-commits, 2020/08/19
- 200/265: gnu: at-spi2-core: Include python phases., guix-commits, 2020/08/19
- 218/265: gnu: wpebackend-fdo: Include glib-or-gtk phases., guix-commits, 2020/08/19
- 222/265: gnu: geocode-glib: Include python phases., guix-commits, 2020/08/19
- 223/265: gnu: gexiv2: Include python phases., guix-commits, 2020/08/19
- 224/265: gnu: gom: Include python phases., guix-commits, 2020/08/19
- 165/265: gnu: gnome-settings-daemon: Update package definition., guix-commits, 2020/08/19
- 172/265: gnu: gnome-weather: Update package definition., guix-commits, 2020/08/19
- 173/265: gnu: nautilus: Update package definition., guix-commits, 2020/08/19
- 178/265: gnu: libmusicbrainz: Propagate inputs., guix-commits, 2020/08/19