Source: cpl-plugin-uves Version: 5.9.1+dfsg-1 Severity: wishlist Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: randomness X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org
Hi, Whilst working on the Reproducible Builds effort [0], we noticed that cpl-plugin-uves could not be built reproducibly. This is due to non-determinstic iteration over various data structures. Patch attached. :) [0] https://reproducible-builds.org/ Regards, -- ,''`. : :' : Chris Lamb `. `'` la...@debian.org / chris-lamb.co.uk `-
--- a/debian/create_manpage.py 2018-06-13 19:45:34.907564917 +0200 --- b/debian/create_manpage.py 2018-06-13 22:45:59.518527078 +0200 @@ -80,7 +80,7 @@ type = p.type.__name__, description = p.__doc__.replace("'", "\\'"), default = p.default) - for p in recipe.param) + for p in sorted(recipe.param, key = lambda x: x.name)) def seealso(recipe, template): return ",\n".join(template.format(name = name, --- a/debian/create_sphinx.py 2018-06-13 19:45:34.907564917 +0200 --- b/debian/create_sphinx.py 2018-06-13 22:45:19.422301804 +0200 @@ -154,7 +154,7 @@ type = p.type.__name__, description = p.__doc__.replace("\n", " "), default = '"{0}"'.format(p.default) if p.type is str else p.default - ) for i, p in enumerate(recipe.param) if count is None or i < count) + ) for i, p in enumerate(sorted(recipe.param, key = lambda x: x.name)) if count is None or i < count) def get_description(s): o = []