~ruther/guix-local

b730b43770249f41dc7987b912cdc17df7035238 — Eric Bavier 9 years ago 64dcc28
gnu: petsc: Make header generation reproducible.

* gnu/packages/maths.scm (petsc)[arguments]: Scrub timestamp from
  petscmachineinfo.h header.
1 files changed, 4 insertions(+), 2 deletions(-)

M gnu/packages/maths.scm
M gnu/packages/maths.scm => gnu/packages/maths.scm +4 -2
@@ 842,11 842,13 @@ ASCII text files using Gmsh's own scripting language.")
              (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)