Source: postfix-gld Version: 1.7-6 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 postfix-gld 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. Please also consider this other bug from the reproducible builds team: https://bugs.debian.org/777504 Cheers, akira [1]: https://wiki.debian.org/ReproducibleBuilds
diff -Nru postfix-gld-1.7/debian/changelog postfix-gld-1.7/debian/changelog --- postfix-gld-1.7/debian/changelog 2014-10-02 13:17:07.000000000 +0200 +++ postfix-gld-1.7/debian/changelog 2015-07-25 13:50:51.000000000 +0200 @@ -1,3 +1,10 @@ +postfix-gld (1.7-6.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix mtimes before building binary packages to produce reproducible output + + -- akira <marival...@gmail.com> Sat, 25 Jul 2015 13:50:37 +0200 + postfix-gld (1.7-6) unstable; urgency=medium * Pass hardening options in CPPFLAGS and LDFLAGS to gcc. diff -Nru postfix-gld-1.7/debian/rules postfix-gld-1.7/debian/rules --- postfix-gld-1.7/debian/rules 2014-10-01 17:38:47.000000000 +0200 +++ postfix-gld-1.7/debian/rules 2015-07-25 13:50:31.000000000 +0200 @@ -14,6 +14,8 @@ STRIP = strip --remove-section=.comment --remove-section=.note endif +export SOURCE_DATE_EPOCH = $(shell date -d "$$(dpkg-parsechangelog --count 1 -SDate)" +%s) + build: ./configure --prefix=/usr --with-$(DATABASE) $(MAKE) CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" @@ -58,6 +60,8 @@ dpkg-gencontrol chown -R 0:0 debian/tmp chmod -R go=rX debian/tmp + find debian/tmp -newermt "@$$SOURCE_DATE_EPOCH" -print0 | \ + xargs -0r touch --no-dereference --date="@$$SOURCE_DATE_EPOCH" dpkg --build debian/tmp .. binary: binary-indep binary-arch
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Reproducible-builds mailing list Reproducible-builds@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds