Source: dahdi-linux Version: 1:2.10.0.1~dfsg-1 Severity: wishlist Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: timestamps X-Debbugs-Cc: reproducible-bui...@lists.alioth.debian.org
Hi, While working on the "reproducible builds" effort [1], we have noticed that dahdi-linux could not be built reproducibly. The attached patch removes timestamps from the build system. Once applied, dahdi-linux can be built reproducibly in our current experimental framework. [1]: https://wiki.debian.org/ReproducibleBuilds Regards, -- ,''`. : :' : Chris Lamb `. `'` la...@debian.org / chris-lamb.co.uk `-
diff -urNad dahdi-linux.orig/dahdi-linux-2.10.0.1~dfsg/debian/rules dahdi-linux/dahdi-linux-2.10.0.1~dfsg/debian/rules --- dahdi-linux.orig/dahdi-linux-2.10.0.1~dfsg/debian/rules 2015-01-30 04:52:01.053349770 +0000 +++ dahdi-linux/dahdi-linux-2.10.0.1~dfsg/debian/rules 2015-01-30 05:02:58.426022751 +0000 @@ -26,6 +26,7 @@ | sed -e 's/^[^(]*(\([^)]*\)).*/\1/') DEB_BASE_VERSION:=$(shell echo $(DEBVERSION) | sed -e 's/^.*://' -e 's/-[0-9~.a-z]*$$//') UPVERSION:=$(shell echo $(DEB_BASE_VERSION) | sed -e 's/[~+]dfsg[0-9]*\(~\|$$\)/\1/' -e 's/~\(rc\|beta\)/-\1/') +BUILD_DATE:=$(shell dpkg-parsechangelog --show-field Date) UPFILENAME := $(PACKAGE_SRC)_$(UPVERSION).orig.tar.gz FILENAME := $(PACKAGE_SRC)_$(DEB_BASE_VERSION).orig.tar.gz @@ -104,6 +105,7 @@ debian/control.modules.in \ $(TARDIR)/debian/ + find $(TARPARDIR) -print0 | xargs -0r touch --date="$(BUILD_DATE)" tar cjf debian/$(SKPG)/usr/src/$(PREFIX).tar.bz2 \ -C $(TARPARDIR) modules