This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH 0/1] improve build reproducibility
- From: Juro Bystricky <juro dot bystricky at intel dot com>
- To: libc-alpha at sourceware dot org
- Cc: joseph at codesourcery dot com, ldv at sourceware dot org, jurobystricky at hotmail dot com, Juro Bystricky <juro dot bystricky at intel dot com>
- Date: Tue, 14 Nov 2017 13:51:45 -0800
- Subject: [PATCH 0/1] improve build reproducibility
- Authentication-results: sourceware.org; auth=none
There is a subtle non-determinism when building glibc.
Basically, under the same conditions (same build host, toolchain, etc.) we occasionally
ended up with slightly different binaries. This was eventually tracked down to the fact
that sometimes the libraries were built using the checked-in intl/plural.c and some other
times using a different version of intl/plural.c generated by Bison from intl/plural.y.
It seems that the generation of intl/plural.c is not quite deteministic, most likely due
to the fact that GIT does not preserve file modification time.
This patch proposes to unconditionally generate plural.c from plural.y
More on the subject (including a diffoscope output that demonstrates the differences) can
be seen here:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=12291
There is also bug filed in glibc Bugzilla:
https://sourceware.org/bugzilla/show_bug.cgi?id=22432
Juro Bystricky (1):
intl/plural.c: improve reproducibility
INSTALL | 2 +-
configure | 128 ++--
intl/Makefile | 3 +-
intl/plural.c | 2011 ---------------------------------------------------------
4 files changed, 65 insertions(+), 2079 deletions(-)
delete mode 100644 intl/plural.c
--
2.7.4