Source: west-chamber Version: 20100405+svn20111107.r124-5 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 west-chamber could not be built reproducibly. The attached patch removes timestamps from the build system. Once applied, west-chamber can be built reproducibly in our current reproducible toolchain. [1]: https://wiki.debian.org/ReproducibleBuilds Regards, -- ,''`. : :' : Chris Lamb `. `'` la...@debian.org / chris-lamb.co.uk `-
diff -urNad west-chamber.orig/west-chamber-20100405+svn20111107.r124/debian/rules west-chamber/west-chamber-20100405+svn20111107.r124/debian/rules --- west-chamber.orig/west-chamber-20100405+svn20111107.r124/debian/rules 2015-02-14 00:33:51.656312555 +0000 +++ west-chamber/west-chamber-20100405+svn20111107.r124/debian/rules 2015-02-14 00:40:17.413693682 +0000 @@ -7,6 +7,7 @@ DEB_SOURCE := $(shell dpkg-parsechangelog | grep Source: | sed -e 's/Source: //') DEB_VERSION := $(shell dpkg-parsechangelog | grep Version: | sed -e 's/Version: //') DEB_UPSTREAM_VERSION := $(shell echo $(DEB_VERSION) | sed -e 's/-[^-]*$$//') +BUILD_DATE := $(shell dpkg-parsechangelog --show-field Date) SVN_URL = http://scholarzhang.googlecode.com/svn/trunk/west-chamber # package version @@ -161,7 +162,7 @@ cp debian/rules debian/changelog debian/copyright debian/clean \ debian/compat debian/control \ debian/$(psource)/usr/src/modules/$(sname)/debian/ - cd debian/$(psource)/usr/src && tar c modules | bzip2 -9 > $(sname).tar.bz2 && rm -rf modules + cd debian/$(psource)/usr/src && tar c --mtime="$(BUILD_DATE)" modules | bzip2 -9 > $(sname).tar.bz2 && rm -rf modules # DKMS # DKMS: Create the directories to install the source into