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:
parent
8dae9c92b6
commit
49a8684d9f
|
@ -5747,6 +5747,14 @@ encoder/decoder based on the draft-12 specification for UBJSON.")
|
||||||
(("depends=\"validate\"") "depends=\"build-prepare\"")
|
(("depends=\"validate\"") "depends=\"build-prepare\"")
|
||||||
((",download-validate") ""))
|
((",download-validate") ""))
|
||||||
#t))
|
#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
|
(add-after 'unpack 'generate-properties
|
||||||
(lambda _
|
(lambda _
|
||||||
;; This could have been passed to make-flags, but getcwd returns
|
;; This could have been passed to make-flags, but getcwd returns
|
||||||
|
|
Loading…
Reference in New Issue