[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/03: gnu: exim: Build (more) reproducibly.
From: |
guix-commits |
Subject: |
03/03: gnu: exim: Build (more) reproducibly. |
Date: |
Tue, 7 Jan 2020 21:10:32 -0500 (EST) |
nckx pushed a commit to branch master
in repository guix.
commit bb335e84ed98055599752740a0f6114fe31f325d
Author: Tobias Geerinckx-Rice <address@hidden>
AuthorDate: Tue Jan 7 18:55:40 2020 +0100
gnu: exim: Build (more) reproducibly.
* gnu/packages/mail.scm (exim)[arguments]: Add a ‘build-reproducibly’
phase.
---
gnu/packages/mail.scm | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index 30623d7..7d56949 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -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")