Package: python-scrapy
Version: 0.24.2-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 python-scrapy could not be built reproducibly.

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

 [1]: https://wiki.debian.org/ReproducibleBuilds
diff -urNp python-scrapy-0.24.2.old/debian/rules python-scrapy-0.24.2/debian/rules
--- python-scrapy-0.24.2.old/debian/rules	2014-07-20 03:17:42.000000000 -0300
+++ python-scrapy-0.24.2/debian/rules	2015-06-12 09:25:52.127792490 -0300
@@ -3,12 +3,16 @@
 
 export DH_ALWAYS_EXCLUDE=license.txt:_sources/:.buildinfo:*.egg
 
+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,bash_completion
 
 override_dh_auto_install:
 	dh_auto_install
-	cd docs/ && $(MAKE) html
+	cd docs/ && $(MAKE) html SPHINXOPTS="$(SPHINXOPTS)"
 
 override_dh_install:
 	dh_install -Xjquery.js
_______________________________________________
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