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

View file

@ -5747,6 +5747,14 @@ (define-public java-tomcat
(("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