mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
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
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue