Source: lava-server Version: 2014.09.1-1 Severity: wishlist Tags: patch User: reproducible-builds@lists.alioth.debian.org Usertags: timestamps X-Debbugs-CC: reproducible-builds@lists.alioth.debian.org
Hi! While working on Debian's “reproducible builds” effort [1], we have noticed that lava-server doesn't build reproducibly. It embeds the current date into the manpage. The attached patch fixes this by using the last 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 622ae88..b506f94 100755 --- a/debian/rules +++ b/debian/rules @@ -16,6 +16,9 @@ # Prevent setuptools/distribute from accessing the internet. export http_proxy = http://127.0.9.1:9 +export LAST_CHANGE=$(shell dpkg-parsechangelog -S Date) +export BUILD_DATE=$(shell LC_ALL=C date -u "+%B %d, %Y" -d "$(LAST_CHANGE)") + # This has to be exported to make some magic below work. export DH_OPTIONS @@ -29,8 +32,8 @@ override_dh_auto_build: dh_auto_build cp etc/lava-server.init debian/ python setup.py build - make -C doc/ html - make -C man/ man + make -C doc/ html SPHINXOPTS="-D today=\"$(BUILD_DATE)\"" + make -C man/ man SPHINXOPTS="-D today=\"$(BUILD_DATE)\"" override_dh_auto_install: dh_auto_install
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Reproducible-builds mailing list Reproducible-builds@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds