Hi, On Mon, 20 Jul 2015 12:00:25 +0100 Ian Jackson <[email protected]> wrote: > FAOD I did not understand your covering note to say that you were actually > doing an NMU. But, such an NMU would be welcome. > > If you don't do an NMU I will fold this patch in at some point, but maybe not > particularly soon. I may rewrite the build system instead.
since you expressed that an NMU would be welcome I just uploaded one to DELAYED/5. Notice, that this is not using akira's original patch which makes use of $BUILD_DATE but instead $SOURCE_DATE_EPOCH which was later agreed to become the cross-distribution environment variable for this kind of purpose. You can find the debdiff attached. Thanks! cheers, josch
diff -Nru authbind-2.1.1/debian/changelog authbind-2.1.1+nmu1/debian/changelog --- authbind-2.1.1/debian/changelog 2012-06-11 00:17:19.000000000 +0200 +++ authbind-2.1.1+nmu1/debian/changelog 2015-07-26 11:23:38.000000000 +0200 @@ -1,3 +1,11 @@ +authbind (2.1.1+nmu1) unstable; urgency=medium + + * Non-maintainer upload. + * Fix mtimes before building binary packages to produce reproducible output + Based on patch by akira (Closes: #792945) + + -- Johannes Schauer <[email protected]> Sun, 26 Jul 2015 11:23:35 +0200 + authbind (2.1.1) unstable; urgency=low * Manpage has an example of which files will be checked and read diff -Nru authbind-2.1.1/debian/rules authbind-2.1.1+nmu1/debian/rules --- authbind-2.1.1/debian/rules 2012-06-03 02:45:04.000000000 +0200 +++ authbind-2.1.1+nmu1/debian/rules 2015-07-26 11:18:57.000000000 +0200 @@ -29,6 +29,8 @@ arch = $(shell dpkg --print-architecture) +export SOURCE_DATE_EPOCH = $(shell date -d "$$(dpkg-parsechangelog --count 1 -SDate)" +%s) + INSTALL = install INSTALL_FILE = $(INSTALL) -p -o root -g root -m 644 INSTALL_PROGRAM = $(INSTALL) -p -o root -g root -m 755 @@ -90,6 +92,8 @@ dpkg-gencontrol -isp chown -R root.root debian/tmp chmod -R g-ws 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: signature

