Bug#808032: python-genpy: please make the output reproducible
Andrei POPESCU
andreimpopescu at gmail.com
Sat Dec 19 10:48:52 UTC 2015
Control: reassign -1 src:ros-genpy 0.5.7-3
On Ma, 15 dec 15, 12:20:55, Chris Lamb wrote:
> Source: python-genpy
> Version: 0.5.7-3
> Severity: wishlist
> Tags: patch
> User: reproducible-builds at lists.alioth.debian.org
> Usertags: toolchain randomness
> X-Debbugs-Cc: reproducible-builds at lists.alioth.debian.org
>
> Hi,
>
> Whilst working on the "reproducible builds" effort [0], we noticed that python-genpy generates output with a non-determistic order.
>
> The attached patch removes this randomness from the build system. Once applied, packages using python-genpy can be built reproducibly using our reproducible toolchain.
>
> [0] https://wiki.debian.org/ReproducibleBuilds
>
>
> Regards,
>
> --
> ,''`.
> : :' : Chris Lamb
> `. `'` lamby at debian.org / chris-lamb.co.uk
> `-
> diff --git a/src/genpy/generate_initpy.py b/src/genpy/generate_initpy.py
> index 2774b18..a6bfecf 100644
> --- a/src/genpy/generate_initpy.py
> +++ b/src/genpy/generate_initpy.py
> @@ -48,7 +48,7 @@ def write_modules(outdir):
> return 0
> types_in_dir = set([f[1:-3] for f in os.listdir(outdir)
> if f.endswith('.py') and f != '__init__.py'])
> - generated_modules = [_module_name(f) for f in types_in_dir]
> + generated_modules = [_module_name(f) for f in sorted(types_in_dir)]
> write_module(outdir, generated_modules)
> return 0
>
--
http://wiki.debian.org/FAQsFromDebianUser
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic
http://nuvreauspam.ro/gpg-transition.txt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/debian-science-maintainers/attachments/20151219/3524c6f9/attachment-0001.sig>
More information about the debian-science-maintainers
mailing list