Source: pyke
Version: 1.1.1-5
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: environment
X-Debbugs-Cc: [email protected]
Hi,
While working on the "reproducible builds" effort [1], we have noticed
that pyke could not be built reproducibly.
The attached patch removes locale-varying dates from the build system.
Once applied, pyke can be built reproducibly in our reproducible
toolchain.
[1]: https://wiki.debian.org/ReproducibleBuilds
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
diff --no-dereference -urNad
pyke.orig/pyke-1.1.1/debian/patches/09_reproducible_build.patch
pyke/pyke-1.1.1/debian/patches/09_reproducible_build.patch
--- pyke.orig/pyke-1.1.1/debian/patches/09_reproducible_build.patch
1970-01-01 01:00:00.000000000 +0100
+++ pyke/pyke-1.1.1/debian/patches/09_reproducible_build.patch 2015-06-29
09:41:58.708796644 +0100
@@ -0,0 +1,11 @@
+--- pyke-1.1.1.orig/doc/source/template.txt
++++ pyke-1.1.1/doc/source/template.txt
+@@ -91,6 +91,8 @@
+ <#
+ import datetime
+ import re
++ import locale
++ locale.setlocale(locale.LC_TIME, 'C')
+ print datetime.date(*(int(x)
+ for x in
re.search(r'([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})',
+ filedate)
diff --no-dereference -urNad pyke.orig/pyke-1.1.1/debian/patches/series
pyke/pyke-1.1.1/debian/patches/series
--- pyke.orig/pyke-1.1.1/debian/patches/series 2015-06-29 09:36:01.356826568
+0100
+++ pyke/pyke-1.1.1/debian/patches/series 2015-06-29 09:45:21.817874504
+0100
@@ -6,3 +6,4 @@
06_remove-tracking-javascript-and-remote-images.patch
07_disable_check_tables.patch
08_wxpython3.0.patch
+09_reproducible_build.patch
_______________________________________________
Python-modules-team mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team