diff options
author | Björn Höfling <bjoern.hoefling@bjoernhoefling.de> | 2018-07-21 10:25:32 +0200 |
---|---|---|
committer | Julien Lepiller <julien@lepiller.eu> | 2018-07-25 00:27:21 +0200 |
commit | 49a8684d9f20656aaa9094c02164cbf2f67b290b (patch) | |
tree | 163587d5cfe60dc7c2b5ac20309f177d6f9e9f2f /gnu | |
parent | 8dae9c92b660f421b78ba79d643288a09c35eafe (diff) | |
download | patches-49a8684d9f20656aaa9094c02164cbf2f67b290b.tar patches-49a8684d9f20656aaa9094c02164cbf2f67b290b.tar.gz |
gnu: java-tomcat: Strip timestamps
* gnu/package/web.scm (java-tomcat)[arguments]: Add phase 'strip timestamps.
Makes build deterministic.
Signed-off-by: Julien Lepiller <julien@lepiller.eu>
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/web.scm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index de6b118a59..c4b78d0b64 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -5747,6 +5747,14 @@ encoder/decoder based on the draft-12 specification for UBJSON.") (("depends=\"validate\"") "depends=\"build-prepare\"") ((",download-validate") "")) #t)) + (add-after 'unpack 'strip-timestamps + (lambda _ + (substitute* "build.xml" + (("<filter token=\"YEAR\" value=.*") + "<filter token=\"YEAR\" value=\"1970\"/>") + (("<filter token=\"VERSION_BUILT\" value=.*") + "<filter token=\"VERSION_BUILT\" value=\"Jan 1 1970 00:00:00 UTC\"/>")) + #t)) (add-after 'unpack 'generate-properties (lambda _ ;; This could have been passed to make-flags, but getcwd returns |