Source: tox Version: 1.9.2-1 Severity: wishlist Tags: patch User: [email protected] Usertags: timestamps X-Debbugs-CC: [email protected]
Hi! While working on Debian's “reproducible builds” effort [1], we have noticed that tox doesn't build reproducibly. During build the current date is embedded into the manpage. The attached patch uses the date from the latest changelog entry instead. Regards, Reiner [1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/debian/rules b/debian/rules index 9cc22dc..0722029 100755 --- a/debian/rules +++ b/debian/rules @@ -3,6 +3,8 @@ #export DH_VERBOSE=1 PYTHON3=$(shell py3versions -sv) +BUILD_DATE=$(shell dpkg-parsechangelog -S Date | LC_ALL=C date -u "+%B %d, %Y" -f -) + # Prevent setuptools/distribute from accessing the internet. export http_proxy = http://127.0.9.1:9 export https_proxy = https://127.0.9.1:9 @@ -35,7 +37,7 @@ override_dh_installdocs: override_dh_installman: (cd debian/manpage; \ - sphinx-build -b man -d _build/doctrees . _build/man) + sphinx-build -b man -D today="$(BUILD_DATE)" -d _build/doctrees . _build/man) dh_installman debian/manpage/_build/man/tox.1 override_dh_installchangelogs:
signature.asc
Description: OpenPGP digital signature

