[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/01: gnu: nspr: Build reproducibly.
From: |
Marius Bakke |
Subject: |
01/01: gnu: nspr: Build reproducibly. |
Date: |
Tue, 16 Jan 2018 11:18:50 -0500 (EST) |
mbakke pushed a commit to branch staging
in repository guix.
commit 6d7786ff13c91f9881a0bbf424b71e2560dca168
Author: Marius Bakke <address@hidden>
Date: Sat Jan 13 18:15:17 2018 +0100
gnu: nspr: Build reproducibly.
Fixes <https://bugs.gnu.org/30097>.
Reported by Gábor Boskovits <address@hidden>.
* 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 a0819b8..388c5db 100644
--- a/gnu/packages/gnuzilla.scm
+++ b/gnu/packages/gnuzilla.scm
@@ -268,6 +268,10 @@ in C/C++.")
(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)))))