[allegro4.4] 01/01: Make build reproducible (Closes: #778231)

Andreas Rönnquist gusnan at moszumanska.debian.org
Thu Feb 12 15:19:49 UTC 2015


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

gusnan pushed a commit to branch master
in repository allegro4.4.

commit 68e7072b95931ff1d56f2f5fc7236e4d537d1e3d
Author: Andreas Rönnquist <gusnan at debian.org>
Date:   Thu Feb 12 16:18:51 2015 +0100

    Make build reproducible (Closes: #778231)
---
 debian/changelog | 6 ++++++
 debian/rules     | 4 +++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 9db0fc9..35859b7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+allegro4.4 (2:4.4.2-6) UNRELEASED; urgency=medium
+
+  * Make builds reproducible - Thanks to Chris Lamb (Closes: #778231)
+
+ -- Andreas Rönnquist <gusnan at debian.org>  Thu, 12 Feb 2015 16:03:07 +0100
+
 allegro4.4 (2:4.4.2-5) unstable; urgency=low
 
   [ Tobias Hansen ]
diff --git a/debian/rules b/debian/rules
index 10aa3e3..1635ff2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,6 +10,8 @@ CFLAGS:=$(shell dpkg-buildflags --get CFLAGS) $(CPPFLAGS)
 CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS) $(CPPFLAGS)
 LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS) -Wl,--as-needed
 
+BUILD_DATE := $(shell dpkg-parsechangelog --show-field Date)
+
 # Use this variable to allow options passed to cmake to be overridable.
 # WANT_EXAMPLES and WANT_TESTS are set to ON only to check if they build
 # successfully, as their source is shipped in the doc package.
@@ -56,7 +58,7 @@ override_dh_auto_install:
 # Create examples source tar.gz
 	rm -rf build/tmp; mkdir build/tmp
 	cp examples/*.c examples/*.h examples/*.dat examples/*.pcx examples/*.txt examples/*.ini tests/*.c build/tmp/
-	cd build/tmp; tar zcvf source.tar.gz *
+	cd build/tmp; GZIP="-9n" tar zcvf source.tar.gz --mtime="$(BUILD_DATE)" *
 	cp build/tmp/source.tar.gz $(CURDIR)/debian/tmp/$(DOC_EXAMPLES_DIR)
 
 override_dh_makeshlibs:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/allegro4.4.git



More information about the Pkg-games-commits mailing list