Package: mathjax-docs
Version: 2.5+20150415-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 mathjax-docs could not be built reproducibly.

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

 [1]: https://wiki.debian.org/ReproducibleBuilds
diff -urNp mathjax-docs-2.5+20150415.old/debian/rules mathjax-docs-2.5+20150415/debian/rules
--- mathjax-docs-2.5+20150415.old/debian/rules	2015-05-03 15:25:41.000000000 -0300
+++ mathjax-docs-2.5+20150415/debian/rules	2015-06-24 02:07:45.499341887 -0300
@@ -1,11 +1,14 @@
 #!/usr/bin/make -f
 # -*- makefile -*-
 
+LAST_CHANGE = $(shell dpkg-parsechangelog -S Date)
+BUILD_DATE  = $(shell LC_ALL=C date -u "+%B %d, %Y" -d "$(LAST_CHANGE)")
+
 %:
 	dh $@ --with sphinxdoc
 
 override_dh_auto_build:
-	sphinx-build . html
+	sphinx-build -D today="$(BUILD_DATE)" . html
 
 override_dh_auto_clean:
 	rm -rf html
_______________________________________________
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