mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-20 14:47:20 +01:00
gnu: petsc: Make header generation reproducible.
* gnu/packages/maths.scm (petsc)[arguments]: Scrub timestamp from petscmachineinfo.h header.
This commit is contained in:
parent
64dcc28963
commit
b730b43770
1 changed files with 4 additions and 2 deletions
|
@ -842,11 +842,13 @@ (define-public petsc
|
||||||
(format #t "configure flags: ~s~%" flags)
|
(format #t "configure flags: ~s~%" flags)
|
||||||
(zero? (apply system* "./configure" flags)))))
|
(zero? (apply system* "./configure" flags)))))
|
||||||
(add-after 'configure 'clean-local-references
|
(add-after 'configure 'clean-local-references
|
||||||
;; Try to keep build directory names from leaking into compiled code
|
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
(let ((out (assoc-ref outputs "out")))
|
(let ((out (assoc-ref outputs "out")))
|
||||||
(substitute* (find-files "." "^petsc(conf|machineinfo).h$")
|
(substitute* (find-files "." "^petsc(conf|machineinfo).h$")
|
||||||
(((getcwd)) out)))))
|
;; Prevent build directory from leaking into compiled code
|
||||||
|
(((getcwd)) out)
|
||||||
|
;; Scrub timestamp for reproducibility
|
||||||
|
((".*Libraries compiled on.*") "")))))
|
||||||
(add-after 'install 'clean-install
|
(add-after 'install 'clean-install
|
||||||
;; Try to keep installed files from leaking build directory names.
|
;; Try to keep installed files from leaking build directory names.
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
|
|
Loading…
Reference in a new issue