summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/glibc
diff options
context:
space:
mode:
authorJuro Bystricky <juro.bystricky@intel.com>2018-03-29 14:33:18 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-03-31 09:48:43 +0100
commit77788311396df25ccb48ba9036e4f0d5fe333907 (patch)
tree47e44a92f12d9ae141acf992dcad0c17881318eb /meta/recipes-core/glibc
parentdc24e256a90d4baff117a744ae3677b2edbe9d83 (diff)
downloadpoky-77788311396df25ccb48ba9036e4f0d5fe333907.tar.gz
libc6-dbg: improve reproducibility
Prevent bison from generating #line comments containing build host paths references. [YOCTO #12625] (From OE-Core rev: 85af760bb7370d001df0ab5915bc9ee7e6c03dfd) Signed-off-by: Juro Bystricky <juro.bystricky@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/glibc')
-rw-r--r--meta/recipes-core/glibc/glibc/0030-plural_c_no_preprocessor_lines.patch21
-rw-r--r--meta/recipes-core/glibc/glibc_2.27.bb1
2 files changed, 22 insertions, 0 deletions
diff --git a/meta/recipes-core/glibc/glibc/0030-plural_c_no_preprocessor_lines.patch b/meta/recipes-core/glibc/glibc/0030-plural_c_no_preprocessor_lines.patch
new file mode 100644
index 0000000000..6f03e1c62d
--- /dev/null
+++ b/meta/recipes-core/glibc/glibc/0030-plural_c_no_preprocessor_lines.patch
@@ -0,0 +1,21 @@
1Improve reproducibility:
2Do not put any #line preprocessor commands in bison generated files.
3These lines contain absolute paths containing file locations on
4the host build machine.
5
6Upstream-Status: Pending
7Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
8
9diff --git a/intl/Makefile b/intl/Makefile
10index 2219717..a203780 100644
11--- a/intl/Makefile
12+++ b/intl/Makefile
13@@ -151,7 +151,7 @@ $(objpfx)tst-gettext6.out: $(objpfx)tst-gettext.out
14
15 CPPFLAGS += -D'LOCALEDIR="$(localedir)"' \
16 -D'LOCALE_ALIAS_PATH="$(localedir)"'
17-BISONFLAGS = --yacc --name-prefix=__gettext --output
18+BISONFLAGS = --yacc --no-lines --name-prefix=__gettext --output
19
20 $(inst_localedir)/locale.alias: locale.alias $(+force)
21 $(do-install)
diff --git a/meta/recipes-core/glibc/glibc_2.27.bb b/meta/recipes-core/glibc/glibc_2.27.bb
index 4a461ab283..772351ad46 100644
--- a/meta/recipes-core/glibc/glibc_2.27.bb
+++ b/meta/recipes-core/glibc/glibc_2.27.bb
@@ -44,6 +44,7 @@ SRC_URI = "${GLIBC_GIT_URI};branch=${SRCBRANCH};name=glibc \
44 file://0027-Acquire-ld.so-lock-before-switching-to-malloc_atfork.patch \ 44 file://0027-Acquire-ld.so-lock-before-switching-to-malloc_atfork.patch \
45 file://0028-bits-siginfo-consts.h-enum-definition-for-TRAP_HWBKP.patch \ 45 file://0028-bits-siginfo-consts.h-enum-definition-for-TRAP_HWBKP.patch \
46 file://0029-Replace-strncpy-with-memccpy-to-fix-Wstringop-trunca.patch \ 46 file://0029-Replace-strncpy-with-memccpy-to-fix-Wstringop-trunca.patch \
47 file://0030-plural_c_no_preprocessor_lines.patch \
47" 48"
48 49
49NATIVESDKFIXES ?= "" 50NATIVESDKFIXES ?= ""