From 6d7786ff13c91f9881a0bbf424b71e2560dca168 Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Sat, 13 Jan 2018 18:15:17 +0100 Subject: gnu: nspr: Build reproducibly. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes . Reported by Gábor Boskovits . * gnu/packages/gnuzilla.scm (nspr)[arguments]: Add #:make-flags to prevent indeterministic timestamps from being recorded. --- gnu/packages/gnuzilla.scm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gnu/packages/gnuzilla.scm b/gnu/packages/gnuzilla.scm index a0819b809a..388c5db642 100644 --- a/gnu/packages/gnuzilla.scm +++ b/gnu/packages/gnuzilla.scm @@ -268,6 +268,10 @@ (define-public nspr (string-append "LDFLAGS=-Wl,-rpath=" (assoc-ref %outputs "out") "/lib")) + ;; Use fixed timestamps for reproducibility. + #:make-flags '("SH_DATE='1970-01-01 00:00:01'" + ;; This is epoch 1 in microseconds. + "SH_NOW=100000") #:phases (modify-phases %standard-phases (add-before 'configure 'chdir (lambda _ (chdir "nspr") #t))))) -- cgit v1.2.3