summary refs log tree commit diff
path: root/gnu/packages/java.scm
diff options
context:
space:
mode:
authorJulien Lepiller <julien@lepiller.eu>2018-12-26 17:40:47 +0100
committerJulien Lepiller <julien@lepiller.eu>2018-12-26 18:58:02 +0100
commit79f6fc0d9950eb96ffeea4150b1822e759efa0b7 (patch)
treedf11bd4214105216dc28d3a16d2cf8c585e2a777 /gnu/packages/java.scm
parent7ba2b27467a39956f10e2e11061d9569e4b7d632 (diff)
downloadguix-79f6fc0d9950eb96ffeea4150b1822e759efa0b7.tar.gz
gnu: antlr2: Fix reproducibility.
* gnu/packages/java.scm (antlr2)[arguments]: Add a phase to fix a timestamp issue.
Diffstat (limited to 'gnu/packages/java.scm')
-rw-r--r--gnu/packages/java.scm5
1 files changed, 5 insertions, 0 deletions
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 054ad67731..c607cbbcc5 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -6140,6 +6140,11 @@ printed.")
        (modify-phases %standard-phases
          (add-after 'install '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
            (lambda _
              (substitute* (find-files "." "Makefile")