From: Axel Beckert Date: Sun, 8 Feb 2015 00:18:12 +0000 (+0100) Subject: debian/rules: Set timestamp of all files to the same time X-Git-Tag: debian/3.4-2~2^2~2 X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=11c9459470c8ca6202d85107f8bca040675348e7;p=pkg%2Ft-prot.git debian/rules: Set timestamp of all files to the same time This makes the build reproducible. --- diff --git a/debian/changelog b/debian/changelog index b5c11ea..0f090ab 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +t-prot (3.3-2) UNRELEASED; urgency=medium + + * debian/rules: Set timestamp of all new files to the same time to make + builds reproducible. + + -- Axel Beckert Sun, 08 Feb 2015 01:13:18 +0100 + t-prot (3.3-1) unstable; urgency=medium * New upstream release diff --git a/debian/rules b/debian/rules index 0c66739..3104ee7 100755 --- a/debian/rules +++ b/debian/rules @@ -5,6 +5,7 @@ PKG = t-prot TMP = $(CURDIR)/debian/$(PKG) +BUILD_DATE = $(shell dpkg-parsechangelog --show-field Date) INSTALL = install INSTALL_FILE = $(INSTALL) -p -oroot -groot -m644 @@ -71,6 +72,8 @@ binary-indep: install dpkg-gencontrol -ldebian/changelog -isp -p$(PKG) -P$(TMP) cd $(TMP) && find * -type f ! -regex '^DEBIAN/.*' -print0 | \ xargs -r0 md5sum > DEBIAN/md5sums + find $(TMP) -depth -newermt '$(BUILD_DATE)' -print0 | \ + xargs -0r touch --no-dereference --date='$(BUILD_DATE)' dpkg --build $(TMP) ..