Package: astroquery
Version: 0.2.4+dfsg-1
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps

Hi!

While working on the "reproducible builds" effort [1], we have noticed
that astroquery could not be built reproducibly.

The attached patch removes extra timestamps from the build system.
Once applied, astroquery can be built reproducibly in our current
experimental framework.

 [1]: https://wiki.debian.org/ReproducibleBuilds
diff -urNp astroquery-0.2.4+dfsg.old/debian/rules astroquery-0.2.4+dfsg/debian/rules
--- astroquery-0.2.4+dfsg.old/debian/rules	2015-04-07 06:53:09.000000000 -0300
+++ astroquery-0.2.4+dfsg/debian/rules	2015-06-11 09:10:16.195865837 -0300
@@ -6,12 +6,16 @@ export PYBUILD_TEST_PYTEST=1
 export PYBUILD_TEST_ARGS=../../../astroquery
 export http_proxy=127.0.0.1:9
 
+LAST_CHANGE = $(shell dpkg-parsechangelog -S Date)
+BUILD_DATE  = $(shell LC_ALL=C date -u "+%B %d, %Y" -d "$(LAST_CHANGE)")
+SPHINXOPTS := -D html_last_updated_fmt="$(BUILD_DATE)"
+
 %:
 	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
 
 override_dh_auto_build:
 	dh_auto_build
-	PYTHONPATH=. sphinx-build -N -bhtml docs/ build/html # HTML generator
+	PYTHONPATH=. sphinx-build $(SPHINXOPTS) -N -bhtml docs/ build/html # HTML generator
 
 override_dh_auto_clean:
 	dh_auto_clean
_______________________________________________
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to