[Pkg-sdl-commits] [libsdl1.2] 04/08: Fix for reproducible builds: timestamps_in_tarball

Manuel A. Fernandez Montecelo mafm at moszumanska.debian.org
Sat Mar 12 00:40:35 UTC 2016


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

mafm pushed a commit to branch master
in repository libsdl1.2.

commit 6183f4f0ebbd2929c9e0e83a182d0a0783842a5a
Author: Manuel A. Fernandez Montecelo <manuel.montezelo at gmail.com>
Date:   Sat Mar 12 00:06:22 2016 +0000

    Fix for reproducible builds: timestamps_in_tarball
---
 debian/changelog | 1 +
 debian/rules     | 6 +++++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 5eafadc..c46cd28 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ libsdl1.2 (1.2.15+dfsg1-3) UNRELEASED; urgency=medium
 
   * Disable suppot for DirectFB (Closes: #816125)
   * d/control: Update Vcs-* URLs, use https
+  * Fix for reproducible builds: timestamps_in_tarball
 
  -- Manuel A. Fernandez Montecelo <mafm at debian.org>  Fri, 11 Mar 2016 23:45:17 +0000
 
diff --git a/debian/rules b/debian/rules
index b20706c..657e974 100755
--- a/debian/rules
+++ b/debian/rules
@@ -23,6 +23,10 @@ ifneq (,$(findstring $(DEB_HOST_ARCH_CPU),powerpc ppc64))
 endif
 
 
+# for reproducible builds, timestamps_in_tarball
+SOURCE_DATE := $(shell dpkg-parsechangelog --show-field=Date)
+
+
 %:
 	dh $@ --with autoreconf --parallel
 
@@ -58,7 +62,7 @@ override_dh_auto_configure:
 
 override_dh_auto_build:
 	dh_auto_build
-	tar czf debian/examples.tar.gz test --owner=0 --group=0 --mode=go=rX,u+rw,a-s
+	tar --clamp-mtime --mtime="$(SOURCE_DATE)" czf debian/examples.tar.gz test --owner=0 --group=0 --mode=go=rX,u+rw,a-s
 
 override_dh_auto_clean:
 	dh_auto_clean

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-sdl/packages/libsdl1.2.git



More information about the pkg-sdl-commits mailing list