Package: python-fudge
Version: 1.0.3-3
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-fudge could not be built reproducibly.

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

 [1]: https://wiki.debian.org/ReproducibleBuilds
diff -urNp python-fudge-1.0.3.old/debian/rules python-fudge-1.0.3/debian/rules
--- python-fudge-1.0.3.old/debian/rules	2012-05-04 16:13:56.000000000 -0300
+++ python-fudge-1.0.3/debian/rules	2015-06-11 22:05:58.692513453 -0300
@@ -1,12 +1,16 @@
 #!/usr/bin/make -f
 
+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)"
+
 override_dh_auto_clean:
 	rm -rf build fudge.egg-info
 	find -name '._*' -delete
 	dh_auto_clean
 
 override_dh_auto_install:
-	sphinx-build -b html -a -c docs docs \
+	sphinx-build $(SPHINXOPTS) -b html -a -c docs docs \
 		$(CURDIR)/debian/python-fudge-doc/usr/share/doc/python-fudge-doc/html
 	python setup.py install --install-layout=deb \
 	    --root $(CURDIR)/debian/python-fudge
_______________________________________________
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