gnu: antlr2: Fix reproducibility.

* gnu/packages/java.scm (antlr2)[arguments]: Add a phase to fix a timestamp issue.
This commit is contained in:
Julien Lepiller 2018-12-26 17:40:47 +01:00
parent 7ba2b27467
commit 79f6fc0d99
No known key found for this signature in database
GPG key ID: 43111F4520086A0C

View file

@ -6140,6 +6140,11 @@ (define-public antlr2
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'install 'strip-jar-timestamps (add-after 'install 'strip-jar-timestamps
(assoc-ref ant:%standard-phases 'strip-jar-timestamps)) (assoc-ref ant:%standard-phases 'strip-jar-timestamps))
(add-before 'configure 'fix-timestamp
(lambda _
(substitute* "configure"
(("^TIMESTAMP.*") "TIMESTAMP=19700101\n"))
#t))
(add-after 'configure 'fix-bin-ls (add-after 'configure 'fix-bin-ls
(lambda _ (lambda _
(substitute* (find-files "." "Makefile") (substitute* (find-files "." "Makefile")