[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/08: gnu: java-tomcat: Strip timestamps
From: |
julien lepiller |
Subject: |
08/08: gnu: java-tomcat: Strip timestamps |
Date: |
Tue, 24 Jul 2018 18:29:20 -0400 (EDT) |
roptat pushed a commit to branch master
in repository guix.
commit 49a8684d9f20656aaa9094c02164cbf2f67b290b
Author: Björn Höfling <address@hidden>
Date: Sat Jul 21 10:25:32 2018 +0200
gnu: java-tomcat: Strip timestamps
* gnu/package/web.scm (java-tomcat)[arguments]: Add phase 'strip timestamps.
Makes build deterministic.
Signed-off-by: Julien Lepiller <address@hidden>
---
gnu/packages/web.scm | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index de6b118..c4b78d0 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
- branch master updated (718f791 -> 49a8684), julien lepiller, 2018/07/24
- 01/08: gnu: java-guice: Remove jars., julien lepiller, 2018/07/24
- 03/08: gnu: java: Use java-classpathx-servletapi instead of java-tomcat where possible., julien lepiller, 2018/07/24
- 06/08: gnu: java-tomcat: Update to 8.5.32., julien lepiller, 2018/07/24
- 07/08: gnu: java-tomcat: Remove bundled jars., julien lepiller, 2018/07/24
- 08/08: gnu: java-tomcat: Strip timestamps,
julien lepiller <=
- 02/08: gnu: java-logback-core: Add file-name field., julien lepiller, 2018/07/24
- 04/08: gnu: Add java-javaee-servletapi., julien lepiller, 2018/07/24
- 05/08: gnu: java: Use java-javaee-servletapi instead of java-tomcat., julien lepiller, 2018/07/24