mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05: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)
|
||||
(zero? (apply system* "./configure" flags)))))
|
||||
(add-after 'configure 'clean-local-references
|
||||
;; Try to keep build directory names from leaking into compiled code
|
||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||
(let ((out (assoc-ref outputs "out")))
|
||||
(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
|
||||
;; Try to keep installed files from leaking build directory names.
|
||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||
|
|
Loading…
Reference in a new issue