Source: python-repoze.who
Version: 1.0.18-4
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: timestamps
X-Debbugs-Cc: [email protected]
Hi,
While working on the "reproducible builds" effort [1], we have noticed
that python-repoze.who could not be built reproducibly.
The attached patch removes varying timestamps from the docs system. Once
applied, python-repoze.who can be built reproducibly in our reproducible
toolchain.
[1]: https://wiki.debian.org/ReproducibleBuilds
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
diff --git a/debian/rules b/debian/rules
index 9af02c8..3dafa7f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,8 +6,11 @@ PKG = python-repoze.who
DEB_PYTHON_INSTALL_ARGS_ALL += --single-version-externally-managed
DEB_COMPRESS_EXCLUDE += .js
+BUILD_DATE = $(shell dpkg-parsechangelog --show-field Date)
+BUILD_DATE_FORMATTED = $(shell LC_ALL=C date --utc --date="$(BUILD_DATE)" "+%B
%d, %Y")
+
build/$(PKG)::
- $(MAKE) -C docs/ html
+ $(MAKE) SPHINXOPTS="-D today="$(BUILD_DATE_FORMATTED)"" -C docs/ html
cleanbuilddir/$(PKG)::
$(MAKE) -C docs/ clean
_______________________________________________
Python-modules-team mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team