Source: wheel Version: 0.24.0-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 Debian's “reproducible builds” effort [1], we have noticed that wheel doesn't build reproducibly. It embeds the current date into the manpage. The attached patch fixes this by using the latest changelog date as a timestamp that will be embedded. Regards, Reiner [1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/debian/rules b/debian/rules index 3c850f4..c8bf2f3 100755 --- a/debian/rules +++ b/debian/rules @@ -1,6 +1,8 @@ #!/usr/bin/make -f export PYBUILD_NAME=wheel +LAST_CHANGE=$(shell dpkg-parsechangelog -S Date) +BUILD_DATE=$(shell LC_ALL=C date -u "+%B %d, %Y" -d "$(LAST_CHANGE)") %: dh $@ --with python2,python3 --buildsystem=pybuild @@ -13,7 +15,7 @@ override_dh_install: override_dh_installman: (cd debian/manpages; \ - sphinx-build -b man -d _build/doctrees . _build/man) + sphinx-build -D today="$(BUILD_DATE)" -b man -d _build/doctrees . _build/man) dh_installman
signature.asc
Description: OpenPGP digital signature