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>
This commit is contained in:
Björn Höfling 2018-07-21 10:25:32 +02:00 committed by Julien Lepiller
parent 8dae9c92b6
commit 49a8684d9f
No known key found for this signature in database
GPG Key ID: 43111F4520086A0C
1 changed files with 8 additions and 0 deletions

View File

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