From bb335e84ed98055599752740a0f6114fe31f325d Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Tue, 7 Jan 2020 18:55:40 +0100 Subject: [PATCH] gnu: exim: Build (more) reproducibly. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 30623d786b..7d56949ae9 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")