Source: dhcp-helper Version: 1.1-2 Severity: wishlist Tags: patch User: reproducible-builds@lists.alioth.debian.org Usertags: timestamps
Hi, While working on the "reproducible builds" effort [1], we have noticed that dhcp-helper could not be built reproducibly. The attached patch fixes the mtime of the files before building the binary packages. Once applied, dhcp-helper can be built reproducibly in our current experimental framework. [1]: https://wiki.debian.org/ReproducibleBuilds -- Dhole
diff --git a/dhcp-helper-1.1/debian/rules b/dhcp-helper-1.1/debian/rules index 0ff9269..e949ba3 100755 --- a/dhcp-helper-1.1/debian/rules +++ b/dhcp-helper-1.1/debian/rules @@ -15,6 +15,7 @@ CFLAGS = $(shell export DEB_BUILD_OPTIONS=$(DEB_BUILD_OPTIONS); dpkg-buildflags CFLAGS += $(shell dpkg-buildflags --get CPPFLAGS) CFLAGS += $(shell dpkg-buildflags --get LDFLAGS) CFLAGS += -Wall -W +BUILD_DATE=$(shell dpkg-parsechangelog --show-field Date) build: $(checkdir) @@ -67,6 +68,8 @@ endif dpkg-gencontrol -isp chown -R root.root debian/tmp chmod -R g-ws debian/tmp + find debian/tmp -depth -newermt '$(BUILD_DATE)' -print0 | \ + xargs -0r touch --no-dereference --date='$(BUILD_DATE)' dpkg --build debian/tmp .. define checkdir
_______________________________________________ Reproducible-builds mailing list Reproducible-builds@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds