]> code.ossystems Code Review - openembedded-core.git/commit
libc6: improve reproducibility
authorJuro Bystricky <juro.bystricky@intel.com>
Mon, 22 Jan 2018 22:59:49 +0000 (14:59 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 19 Feb 2018 23:51:24 +0000 (23:51 +0000)
commit112c6e77a81ec748cd116d1088dae2a1f59643f5
tree5d97a60acc837886acc7df1d8a03cf6d31d914a2
parent12e40b38f49e99bcecfab8086cfe8f32d2eb931a
libc6: improve reproducibility

Building various libraries (libc6, libc6-pic, libc6-staticdev, libc6-dbg, ...)
can be non-deterministic because they may be built with two different versions
of intl/plural.c. in two otherwise identical builds. We may or may not re-generate
the file plural.c from the file plural.y, based on bison being installed or not
and based on mtimes of those two files, as the Makefile contains:

plural.c: plural.y
$(BISON) $(BISONFLAGS) $@ $^

If the above rule does not fire, we use a "fallback" plural.c, otherwise
we use plural.c re-generated from plural.y.
The fix is to always require bison to be installed and unconditionally
re-generate plural.c. (This is achieved by touching plural.y).

[YOCTO #12291]

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit b79eeb68c6ad7c92a3e54c6f97a8bf49f0098206)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/recipes-core/glibc/glibc_2.26.bb