Source: debdelta Version: 0.55 Severity: wishlist Tags: patch User: reproducible-builds@lists.alioth.debian.org Usertags: timestamps X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org
Hi! While working on the “reproducible builds” effort [1], we have noticed that debdelta 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 -Nru debdelta-0.55/debian/changelog debdelta-0.55+nmu1/debian/changelog --- debdelta-0.55/debian/changelog 2014-11-30 18:31:13.000000000 +0100 +++ debdelta-0.55+nmu1/debian/changelog 2015-07-17 17:14:11.000000000 +0200 @@ -1,3 +1,10 @@ +debdelta (0.55+nmu1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix mtimes before building binary packages to produce reproducible output + + -- akira <marival...@gmail.com> Fri, 17 Jul 2015 17:13:55 +0200 + debdelta (0.55) unstable; urgency=medium * update git location diff -Nru debdelta-0.55/debian/rules debdelta-0.55+nmu1/debian/rules --- debdelta-0.55/debian/rules 2014-11-30 18:31:13.000000000 +0100 +++ debdelta-0.55+nmu1/debian/rules 2015-07-17 17:13:52.000000000 +0200 @@ -5,6 +5,8 @@ D = debian/debdelta +BUILD_DATE := $(shell dpkg-parsechangelog --show-field Date) + docdir = $(D)/usr/share/doc/$(package) mandir = $(D)/usr/share/man/man1/ @@ -58,6 +60,8 @@ # build package dpkg-gencontrol -Pdebian/debdelta-doc -pdebdelta-doc chown -R root:root $(D2) + find debian/debdelta-doc -newermt '$(BUILD_DATE)' -print0 | \ + xargs -0r touch --no-dereference --date='$(BUILD_DATE)' dpkg-deb --build $(D2) .. binary-arch: checkroot build @@ -102,6 +106,8 @@ dpkg-shlibdeps $(D)/usr/lib/debdelta/minigzip $(D)/usr/lib/debdelta/minibzip2 dpkg-gencontrol -Pdebian/debdelta -pdebdelta chown -R root:root $(D) + find debian/debdelta -newermt '$(BUILD_DATE)' -print0 | \ + xargs -0r touch --no-dereference --date='$(BUILD_DATE)' dpkg-deb --build $(D) .. define checkdir
_______________________________________________ Reproducible-builds mailing list Reproducible-builds@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds