summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorRicardo Wurmus <ricardo.wurmus@mdc-berlin.de>2017-06-15 14:45:08 +0200
committerRicardo Wurmus <rekado@elephly.net>2017-06-15 17:24:34 +0200
commitec7e9eeae6167bc5b16673d448e710468216ca05 (patch)
tree2b3ef3dcf825a320d8adc4a15f3d7c9d2c9daf68 /gnu
parentc4fd86f9c1efdb6b413dd6b7a00f03a5f9558b8d (diff)
downloadguix-ec7e9eeae6167bc5b16673d448e710468216ca05.tar.gz
gnu: sablevm: Build reproducibly.
* gnu/packages/java.scm (sablevm)[arguments]: Add build phase
"remove-timestamp-for-reproducibility".
Diffstat (limited to 'gnu')
-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 1496af7591..7bdf97f98a 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -167,6 +167,11 @@ This package provides the classpath library.")
              "--with-internal-libpopt=no")
        #:phases
        (modify-phases %standard-phases
+         (add-after 'unpack 'remove-timestamp-for-reproducibility
+           (lambda _
+             (substitute* "src/sablevm/Makefile.in"
+               (("\\$\\(SVMCOMPILETIME\\)") "(unknown)"))
+             #t))
          (add-after 'unpack 'link-with-popt
            (lambda _
              (substitute* "src/sablevm/Makefile.in"