summaryrefslogtreecommitdiff
path: root/gnu/packages/gnuzilla.scm
diff options
context:
space:
mode:
authorMarius Bakke <mbakke@fastmail.com>2018-01-13 18:15:17 +0100
committerMarius Bakke <mbakke@fastmail.com>2018-01-16 17:12:02 +0100
commit6d7786ff13c91f9881a0bbf424b71e2560dca168 (patch)
tree648e3c2365bb79d60f73cc8e2719960096661ad0 /gnu/packages/gnuzilla.scm
parentae307724de2957bbed6b763a1d039dba0876b5a7 (diff)
downloadpatches-6d7786ff13c91f9881a0bbf424b71e2560dca168.tar
patches-6d7786ff13c91f9881a0bbf424b71e2560dca168.tar.gz
gnu: nspr: Build reproducibly.
Fixes <https://bugs.gnu.org/30097>. Reported by Gábor Boskovits <boskovits@gmail.com>. * gnu/packages/gnuzilla.scm (nspr)[arguments]: Add #:make-flags to prevent indeterministic timestamps from being recorded.
Diffstat (limited to 'gnu/packages/gnuzilla.scm')
-rw-r--r--gnu/packages/gnuzilla.scm4
1 files changed, 4 insertions, 0 deletions
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 @@ 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)))))