aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/image-processing.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/image-processing.scm')
-rw-r--r--gnu/packages/image-processing.scm11
1 files changed, 10 insertions, 1 deletions
diff --git a/gnu/packages/image-processing.scm b/gnu/packages/image-processing.scm
index f4bf1724b4..0c7bae183c 100644
--- a/gnu/packages/image-processing.scm
+++ b/gnu/packages/image-processing.scm
@@ -435,7 +435,16 @@ integrates with various databases on GUI toolkits such as Qt and Tk.")
((#:configure-flags flags)
;; Otherwise, the build would fail with: "error: invalid conversion
;; from ‘const char*’ to ‘char*’ [-fpermissive]".
- `(cons "-DCMAKE_CXX_FLAGS=-fpermissive" ,flags))))))
+ `(cons "-DCMAKE_CXX_FLAGS=-fpermissive" ,flags))
+ ((#:phases phases)
+ #~(modify-phases #$phases
+ (add-after 'unpack 'remove-kernel-version
+ ;; Avoid embedding the kernel version for reproducible builds
+ (lambda _
+ (substitute*
+ "ThirdParty/hdf5/vtkhdf5/config/cmake/libhdf5.settings.cmake.in"
+ (("Host system: .CMAKE_HOST_SYSTEM.")
+ "Host system: @CMAKE_SYSTEM_NAME@"))))))))))
(define-public opencv
(package