all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Björn Höfling" <bjoern.hoefling@bjoernhoefling.de>
To: 32231@debbugs.gnu.org
Subject: [bug#32231] [PATCH 8/8] gnu: java-tomcat: Strip timestamps
Date: Sat, 21 Jul 2018 10:25:32 +0200	[thread overview]
Message-ID: <20180721102532.2e2ba08a@alma-ubu> (raw)
In-Reply-To: <20180721101401.63dee9b6@alma-ubu>

[-- Attachment #1: Type: text/plain, Size: 1125 bytes --]


* gnu/package/web.scm (java-tomcat)[arguments]: Add phase 'strip timestamps.
Makes build deterministic.
---
 gnu/packages/web.scm | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index a3290a3..565198f 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
-- 
2.7.4


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

  parent reply	other threads:[~2018-07-21  8:26 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-21  8:14 [bug#32231] [PATCH 0/8] Tomcat related updates Björn Höfling
2018-07-21  8:20 ` [bug#32231] [PATCH 1/8] gnu: java-guice: Remove jars Björn Höfling
2018-07-21  8:22 ` [bug#32231] [PATCH 2/8] gnu: java-logback-core: Add file-name field Björn Höfling
2018-07-21  8:23 ` [bug#32231] [PATCH 3/8] gnu: java: Use java-classpathx-servletapi instead of java-tomcat where possible Björn Höfling
2018-07-21  8:23 ` [bug#32231] [PATCH 4/8] gnu: Add java-javaee-servletapi Björn Höfling
2018-07-21  8:24 ` [bug#32231] [PATCH 5/8] gnu: java: Use java-javaee-servletapi instead of java-tomcat Björn Höfling
2018-07-21  8:24 ` [bug#32231] [PATCH 6/8] gnu: java-tomcat: Update to 8.5.32 Björn Höfling
2018-07-21  8:25 ` [bug#32231] [PATCH 7/8] gnu: java-tomcat: Remove bundled jars Björn Höfling
2018-07-21  8:25 ` Björn Höfling [this message]
2018-07-24 22:30 ` bug#32231: [PATCH 0/8] Tomcat related updates Julien Lepiller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180721102532.2e2ba08a@alma-ubu \
    --to=bjoern.hoefling@bjoernhoefling.de \
    --cc=32231@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.