Bug#847033: newlib: please make the build reproducible (locale)

Dafydd Harries daf at debian.org
Mon Dec 5 01:21:18 UTC 2016


Source: newlib
Version: 2.2.0+git20150830.5a3d536-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: locale

Hi!

While working on the “reproducible builds” effort [1], we have noticed
that newlib could not be built reproducibly.

In particular, the order in which object files get added to archives is
not deterministic. I think the problem is that the locale affects how
the shell sorts filenames.

I've attached two patches. The first modifies Makefile.am files to use
LC_ALL=C when adding members to archives, and as such is suitable for
sending upstream. The second is the equivalent change for Makefile.in,
and us such is suitable for applying to the Debian package (since it
does not invoke automake).

Regards,

Daf

 [1]: https://wiki.debian.org/ReproducibleBuilds
-------------- next part --------------
A non-text attachment was scrubbed...
Name: newlib-locale-Makefile.am.diff
Type: text/x-diff
Size: 1315 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/reproducible-bugs/attachments/20161205/231e08d1/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: newlib-locale-Makefile.in.diff
Type: text/x-diff
Size: 1976 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/reproducible-bugs/attachments/20161205/231e08d1/attachment-0001.diff>


More information about the Reproducible-bugs mailing list