[glassfish] 03/05: Make the build reproducible (Closes: #785719)

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Thu May 21 15:47:33 UTC 2015


This is an automated email from the git hooks/post-receive script.

ebourg-guest pushed a commit to branch master
in repository glassfish.

commit 5adf84405258d67313998bb4dbd27a79483f3ded
Author: Daniel Kahn Gillmor <dkg at fifthhorseman.net>
Date:   Thu May 21 15:41:28 2015 +0200

    Make the build reproducible (Closes: #785719)
---
 debian/changelog | 4 ++++
 debian/rules     | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 35c9101..e7f00ea 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,10 @@ glassfish (1:2.1.1-b31g+dfsg1-3) UNRELEASED; urgency=medium
     with Java 8 (Closes: #750747)
   * Standards-Version updated to 3.9.6 (no changes)
 
+  [ Daniel Kahn Gillmor ]
+  * Make the build reproducible by setting the timestamp in the manifests
+    to the date from debian/changelog (Closes: #785719)
+
  -- Emmanuel Bourg <ebourg at apache.org>  Thu, 21 May 2015 15:27:19 +0200
 
 glassfish (1:2.1.1-b31g+dfsg1-2) unstable; urgency=medium
diff --git a/debian/rules b/debian/rules
index 420f4c1..70f2475 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,10 +3,14 @@
 include /usr/share/cdbs/1/class/ant.mk
 include /usr/share/cdbs/1/rules/debhelper.mk
 
+LAST_CHANGE=$(shell dpkg-parsechangelog -S Date)
+BUILD_DATE=$(shell LC_ALL=C date -u "+%m/%d/%Y" -d "$(LAST_CHANGE)")
+
 JAVA_HOME               := /usr/lib/jvm/default-java
 DEB_ANT_BUILDFILE	:= debian/build.xml
 DEB_DESTDIR		:= $(CURDIR)/debian/tmp
 DEB_JARS                := jaxrpc
+DEB_ANT_ARGS            := -Dbuild_date=$(BUILD_DATE)
 
 ALL_JARS := $(wildcard publish/glassfish/lib/*.jar)
 ALL_JARS += $(wildcard */build/release/*.jar)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/glassfish.git



More information about the pkg-java-commits mailing list