[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/02: gnu: vtk@7: Do not embed running kernel version.
From: |
guix-commits |
Subject: |
01/02: gnu: vtk@7: Do not embed running kernel version. |
Date: |
Thu, 9 Jun 2022 18:23:40 -0400 (EDT) |
vagrantc pushed a commit to branch master
in repository guix.
commit e92508baebebb4306779e6f4e2dff8c838b389cd
Author: Vagrant Cascadian <vagrant@reproducible-builds.org>
AuthorDate: Thu Jun 9 13:53:33 2022 -0700
gnu: vtk@7: Do not embed running kernel version.
* gnu/packages/image-processing.scm (vtk-7)[arguments]: Add
'remove-kernel-version phase.
---
gnu/packages/image-processing.scm | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
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