[Pkg-sdl-commits] [libsdl2] 05/08: Fix for reproducible builds: timestamps_in_tarball

Manuel A. Fernandez Montecelo mafm at moszumanska.debian.org
Sat Mar 12 02:19:08 UTC 2016


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

mafm pushed a commit to branch master
in repository libsdl2.

commit c9a624c7e9ea52abff46b0b27d832ef47e3a2d4d
Author: Manuel A. Fernandez Montecelo <mafm at debian.org>
Date:   Sat Mar 12 01:48:29 2016 +0000

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

diff --git a/debian/changelog b/debian/changelog
index 13345bb..62ec387 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ libsdl2 (2.0.4+dfsg2-1) UNRELEASED; urgency=medium
   [ Manuel A. Fernandez Montecelo ]
   * Bump Policy Standards-Version to 3.9.7 (no changes needed)
   * Drop -dbg package
+  * Fix for reproducible builds: timestamps_in_tarball
 
   [ Gianfranco Costamagna ]
   * Fix insecure VCS fields.
diff --git a/debian/rules b/debian/rules
index 6a11bb7..c50956f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -33,6 +33,9 @@ ifeq (hurd,$(findstring hurd,$(DEB_HOST_ARCH_CPU)))
   confflags += --disable--video-opengles
 endif
 
+# for reproducible builds, timestamps_in_tarball
+SOURCE_DATE := $(shell dpkg-parsechangelog --show-field=Date)
+
 
 %:
 	dh $@ --with autoreconf --parallel
@@ -68,7 +71,7 @@ override_dh_auto_configure:
 	dh_auto_configure -- $(confflags)
 
 override_dh_auto_build-indep:
-	tar czf debian/examples.tar.gz test --owner=0 --group=0 --mode=go=rX,u+rw,a-s
+	tar czf debian/examples.tar.gz test --owner=0 --group=0 --mode=go=rX,u+rw,a-s --clamp-mtime --mtime="$(SOURCE_DATE)"
 	doxygen docs/doxyfile
 	# useless files
 	find output -name "*.md5" -delete

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



More information about the pkg-sdl-commits mailing list