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

The attached patch fixes non reproducibility generated by timestamps
in documentation. Once applied, python-carrot can be built reproducibly
in our current experimental framework.

 [1]: https://wiki.debian.org/ReproducibleBuilds


-- System Information:
Debian Release: stretch/sid
  APT prefers testing-updates
  APT policy: (500, 'testing-updates'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
diff -rupN python-carrot-0.10.7.old/debian/rules python-carrot-0.10.7/debian/rules
--- python-carrot-0.10.7.old/debian/rules	2015-05-18 10:46:16.000000000 +0000
+++ python-carrot-0.10.7/debian/rules	2015-05-18 10:53:31.360883012 +0000
@@ -8,6 +8,8 @@
 
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
+LAST_CHANGE=$(shell dpkg-parsechangelog -S Date)
+BUILD_DATE=$(shell LC_ALL=C date -u "+%B %d, %Y" -d "$(LAST_CHANGE)")
 
 %:
 	dh  $@
@@ -21,7 +23,7 @@ override_dh_auto_build:
 
 	# Make the documentation.
 	cp -r docs docs.debian
-	make -C docs.debian html
+	make -C docs.debian html SPHINXOPTS="-D today=\"$(BUILD_DATE)\""
 	rm -rf docs.debian/_build/html/_sources/
 
 override_dh_installdocs:
_______________________________________________
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