[Reproducible-builds] Bug#762388: ifupdown: please make method order deterministic when generating C code

Jérémy Bobbio lunar at debian.org
Sun Sep 21 18:37:14 UTC 2014


Source: ifupdown
Version: 0.7.48.2
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: randomness

Hi!

As part of the “reproducible builds” effort, we have detected that
`ifupdown` did not build reproducibly.

This is caused by the fact that Perl orders its hashes randomly by
default. This, in turn, results in a random order in which the methods
are written when generating C code. Resulting in different binaries for
each builds.

The attached patch will sort the methods to produce a stable order.
`ifupdown` can then build reproducibly. :)

 [1]: https://wiki.debian.org/ReproducibleBuilds

-- 
Lunar                                .''`. 
lunar at debian.org                    : :Ⓐ  :  # apt-get install anarchism
                                    `. `'` 
                                      `-   
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ifupdown_0.7.48.2+reproducible.patch
Type: text/x-diff
Size: 1068 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20140921/eefde327/attachment.patch>
-------------- 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/reproducible-builds/attachments/20140921/eefde327/attachment.sig>


More information about the Reproducible-builds mailing list