Source: bbswitch Version: 0.8-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 bbswitch could not be built reproducibly. The attached patch removes timestamps from the build system. Once applied, bbswitch can be built reproducibly in our reproducible toolchain. [1]: https://wiki.debian.org/ReproducibleBuilds Regards, -- ,''`. : :' : Chris Lamb `. `'` la...@debian.org / chris-lamb.co.uk `-
diff -urNad bbswitch.orig/bbswitch-0.8/debian/rules bbswitch/bbswitch-0.8/debian/rules --- bbswitch.orig/bbswitch-0.8/debian/rules 2015-02-15 10:35:15.491475845 +0000 +++ bbswitch/bbswitch-0.8/debian/rules 2015-02-15 10:36:49.419590438 +0000 @@ -8,6 +8,8 @@ version := $(shell dpkg-parsechangelog | grep '^Version:' | cut -d' ' -f2 |\ rev | cut -d- -f2- | rev | cut -d':' -f2) +BUILD_DATE := $(shell dpkg-parsechangelog --show-field Date) + %: dh $@ --with dkms @@ -33,7 +35,7 @@ for file in changelog compat control control.modules.in copyright; do \ install -m 644 debian/$$file debian/$(name)-source/usr/src/modules/$(name)/debian/; \ done - cd debian/$(name)-source/usr/src && tar cfj $(name).tar.bz2 modules && rm -rf modules + cd debian/$(name)-source/usr/src && tar cfj $(name).tar.bz2 --mtime="$(BUILD_DATE)" modules && rm -rf modules override_dh_installchangelogs: dh_installchangelogs NEWS