[mauve] 01/04: Make the build reproducible (Closes: #778274)

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Fri Feb 13 10:02:10 UTC 2015


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

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

commit 39d65a7903265c90374e73d95b69e1d36a5d9ed9
Author: Chris Lamb <lamby at debian.org>
Date:   Fri Feb 13 10:51:22 2015 +0100

    Make the build reproducible (Closes: #778274)
---
 debian/changelog | 9 +++++++++
 debian/rules     | 5 +++--
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 8d79db9..9057682 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
+mauve (20140821-2) UNRELEASED; urgency=medium
+
+  * Team upload.
+
+  [ Chris Lamb ]
+  * Make the build reproducible (Closes: #778274)
+
+ -- Emmanuel Bourg <ebourg at apache.org>  Fri, 13 Feb 2015 10:49:48 +0100
+
 mauve (20140821-1) unstable; urgency=medium
 
   * Update from CVS.
diff --git a/debian/rules b/debian/rules
index 5bdb479..f76a48d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,6 +4,7 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+BUILD_DATE := $(shell dpkg-parsechangelog --show-field Date)
 
 build: build-stamp
 build-arch: build-stamp
@@ -29,8 +30,8 @@ install: build
 	mkdir -p debian/mauve/usr/src/mauve
 	cp -a $(filter-out debian, $(wildcard .??* *)) \
 		debian/mauve/usr/src/mauve/
-	tar -c --gzip -f $(CURDIR)/debian/mauve/usr/src/mauve.tar.gz \
-		-C debian/mauve/usr/src mauve
+	GZIP="-9n" tar -c --gzip -f $(CURDIR)/debian/mauve/usr/src/mauve.tar.gz \
+		-C debian/mauve/usr/src --mtime="$(BUILD_DATE)" mauve
 	rm -rf debian/mauve/usr/src/mauve
 
 # Build architecture-independent files here.

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



More information about the pkg-java-commits mailing list