me
/
guix
Archived
1
0
Fork 0

gnu: exim: Build (more) reproducibly.

* gnu/packages/mail.scm (exim)[arguments]: Add a ‘build-reproducibly’
phase.
master
Tobias Geerinckx-Rice 2020-01-07 18:55:40 +01:00
parent c9b99e88f5
commit bb335e84ed
No known key found for this signature in database
GPG Key ID: D889B0F018C5493C
1 changed files with 8 additions and 1 deletions

View File

@ -1338,7 +1338,14 @@ delivery.")
(let ((bash (assoc-ref inputs "bash")))
(substitute* '("scripts/Configure-eximon")
(("#!/bin/sh") (string-append "#!" bash "/bin/sh"))))
#t)))
#t))
(add-before 'build 'build-reproducibly
(lambda _
;; The compilation number is incremented for every build from the
;; same source tree. It appears to vary over different (parallel?)
;; builds. Make it a constant number instead.
(substitute* "src/version.c"
(("#include \"cnumber.h\"") "1")))))
#:make-flags
(list "CC=gcc"
"INSTALL_ARG=-no_chown")