Source: fastforward Version: 1:0.51-3 Severity: wishlist Tags: patch User: [email protected] Usertags: timestamps X-Debbugs-Cc: [email protected]
Hi! While working on the “reproducible builds” effort [1], we have noticed that fastforward could not be built reproducibly. The attached patch sets the mtimes of all files which are modified during the built to the date of the last changelog entry in order to produce files with reproducible metadata. Cheers, akira [1]: https://wiki.debian.org/ReproducibleBuilds
diff -u fastforward-0.51/debian/changelog fastforward-0.51/debian/changelog --- fastforward-0.51/debian/changelog +++ fastforward-0.51/debian/changelog @@ -1,3 +1,10 @@ +fastforward (1:0.51-3.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix mtimes before building binary packages to produce reproducible output + + -- akira <[email protected]> Fri, 17 Jul 2015 22:09:07 +0200 + fastforward (1:0.51-3) unstable; urgency=low * debian/rules: install the fastforward's newaliases program as diff -u fastforward-0.51/debian/rules fastforward-0.51/debian/rules --- fastforward-0.51/debian/rules +++ fastforward-0.51/debian/rules @@ -7,6 +7,8 @@ DIR=$(shell pwd)/debian/fastforward +BUILD_DATE := $(shell dpkg-parsechangelog --show-field Date) + patch: deb-checkdir patch-stamp patch-stamp: for i in `ls -1 debian/diff/*.diff || :`; do \ @@ -70,6 +72,8 @@ binary-arch: install fastforward.deb dpkg-shlibdeps '$(DIR)'/usr/bin/* '$(DIR)'/usr/sbin/* dpkg-gencontrol -isp -pfastforward -P'$(DIR)' + find '$(DIR)' -newermt '$(BUILD_DATE)' -print0 | \ + xargs -0r touch --no-dereference --date='$(BUILD_DATE)' dpkg -b '$(DIR)' .. binary-indep:

