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.
This commit is contained in:
Marius Bakke 2018-01-13 18:15:17 +01:00
parent ae307724de
commit 6d7786ff13
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -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)))))