Bug#840100: wims-help: please make the build reproducible
Chris Lamb
lamby at debian.org
Sat Oct 8 09:45:59 UTC 2016
Source: wims-help
Version: 4.01-2
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: fileordering
X-Debbugs-Cc: reproducible-builds at lists.alioth.debian.org
Hi,
Whilst working on the Reproducible Builds effort [0], we noticed
that wims-help could not be built reproducibly as the `find` call
iterates in (non-determinstic) filesystem ordering.
Patch attached.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
--- a/debian/make-copyright.py 2016-10-08 10:41:54.066419820 +0100
--- b/debian/make-copyright.py 2016-10-08 10:44:22.168251923 +0100
@@ -36,7 +36,7 @@
indexes=Popen("find %s -type f -name INDEX" %path, shell=True, stdout=PIPE).communicate()[0]
indexes=indexes.strip().split("\n")
files=""
- for i in indexes:
+ for i in sorted(indexes):
d=os.path.dirname(i)
f=os.path.basename(i)
author=Popen("sed -n 's/^author=\\(.*\\)/\\1/ p' %s" %i, shell=True, stdout=PIPE).communicate()[0].strip()
More information about the Reproducible-builds
mailing list