Package: simplejson
Version: 3.7.3-1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: timestamps

Hi!

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

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

 [1]: https://wiki.debian.org/ReproducibleBuilds
diff -urNp simplejson-3.7.3.old/debian/rules simplejson-3.7.3/debian/rules
--- simplejson-3.7.3.old/debian/rules	2014-09-07 10:55:45.000000000 -0300
+++ simplejson-3.7.3/debian/rules	2015-06-12 21:00:25.234750413 -0300
@@ -6,13 +6,17 @@ export PYBUILD_DESTDIR_python3=debian/py
 export PYBUILD_DESTDIR_python3-dbg=debian/python3-simplejson-dbg/
 export PYBUILD_DESTDIR_pypy=debian/pypy-simplejson/
 
+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,pypy,sphinxdoc --buildsystem=pybuild
 
 build-indep:
 	dh_testdir
 	dh_installdirs
-	sphinx-build -N -q -E -b html . \
+	sphinx-build $(SPHINXOPTS) -N -q -E -b html . \
 	 $(CURDIR)/debian/python-simplejson-doc/usr/share/doc/python-simplejson-doc/
 
 override_dh_sphinxdoc:
_______________________________________________
Python-modules-team mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team

Reply via email to