From 3c11eb20ca3a64ce5918f7a72490febaa6551c2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sun, 17 Apr 2016 20:31:02 +0200 Subject: make the build reproducibly --- debian/changelog | 3 +++ debian/rules | 4 +--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index 61311fc..c87b0ba 100644 --- a/debian/changelog +++ b/debian/changelog @@ -12,6 +12,9 @@ shotwell (0.22.1-1) UNRELEASED; urgency=medium + Replaces: shotwell (<< 0.12.3-1) * Set compat level to 10 (no changes required). * Correct typo at shotwell-dbg.README.Debian. + * debian/rules: + - To make the build reproducibly use the solution from + https://wiki.debian.org/ReproducibleBuilds/TimestampsInTarball. -- Jörg Frings-Fürst Sun, 17 Apr 2016 07:26:27 +0200 diff --git a/debian/rules b/debian/rules index 6b9f82f..a64e2c5 100755 --- a/debian/rules +++ b/debian/rules @@ -5,7 +5,6 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all export VALAFLAGS:=$(foreach w,$(CPPFLAGS) $(CFLAGS) $(LDFLAGS),-X $(w)) CHDATE:=$(shell dpkg-parsechangelog --show-field=Date) -B_DATE:=$(shell date -d "$(CHDATE)") %: dh $@ @@ -21,8 +20,7 @@ override_dh_install: mkdir -p debian/shotwell-dbg/usr/share/doc/shotwell-dbg/temp-source find -type f -name '*.c' -exec cp --parent '{}' debian/shotwell-dbg/usr/share/doc/shotwell-dbg/temp-source/ ';' cd debian/shotwell-dbg/usr/share/doc/shotwell-dbg && \ - find . -newermt '$(B_DATE)' -print0 | xargs -0r touch --no-dereference --date='$(B_DATE)' && \ - tar --mtime="$(B_DATE)" -cJf temp-source.tar.xz temp-source + tar --mtime="$(CHDATE)" -cJf temp-source.tar.xz temp-source rm -fr debian/shotwell-dbg/usr/share/doc/shotwell-dbg/temp-source override_dh_installchangelogs: -- cgit v1.2.3