gnu: hdf5: Do not record the build-time kernel version.

* gnu/packages/maths.scm (hdf5)[arguments]: Patch libhdf5.settings to prevent
the kernel version on the build node from affecting the output.
This commit is contained in:
Ricardo Wurmus 2018-03-09 11:20:22 +01:00
parent 1b5905fe68
commit d8f46d5234
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 5 additions and 1 deletions

View File

@ -724,7 +724,11 @@ incompatible with HDF5.")
;; unnecessary store references to those compilers: ;; unnecessary store references to those compilers:
(substitute* "src/libhdf5.settings" (substitute* "src/libhdf5.settings"
(("(/gnu/store/)([a-Z0-9]*)" all prefix hash) (("(/gnu/store/)([a-Z0-9]*)" all prefix hash)
(string-append prefix (string-take hash 10) "..."))) (string-append prefix (string-take hash 10) "..."))
;; Don't record the build-time kernel version to make the
;; settings file reproducible.
(("Uname information:.*")
"Uname information: Linux\n"))
#t)) #t))
(add-after 'install 'patch-references (add-after 'install 'patch-references
(lambda* (#:key inputs outputs #:allow-other-keys) (lambda* (#:key inputs outputs #:allow-other-keys)