diff options
author | Jérémy Rosen <jeremy.rosen@smile.fr> | 2016-09-07 11:08:47 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-14 22:22:07 +0100 |
commit | 059c5568a130f82f8612498487e49f231247b4a5 (patch) | |
tree | 558d35cbc333d3f8bb4f8a472db6af7b9aeb5ffb | |
parent | d4583c98fa845694539fccfc5d8bb82cb2177ef0 (diff) | |
download | poky-059c5568a130f82f8612498487e49f231247b4a5.tar.gz |
glibc: remove hard-coded reference to gcc -E
(From OE-Core rev: 2c0a72d4e7eafee225e702f4c91cd206bc05ec55)
Signed-off-by: Jérémy Rosen <jeremy.rosen@smile.fr>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-core/glibc/glibc/0001-locale-fix-hard-coded-reference-to-gcc-E.patch | 39 | ||||
-rw-r--r-- | meta/recipes-core/glibc/glibc_2.24.bb | 3 |
2 files changed, 41 insertions, 1 deletions
diff --git a/meta/recipes-core/glibc/glibc/0001-locale-fix-hard-coded-reference-to-gcc-E.patch b/meta/recipes-core/glibc/glibc/0001-locale-fix-hard-coded-reference-to-gcc-E.patch new file mode 100644 index 0000000000..d5fce7371b --- /dev/null +++ b/meta/recipes-core/glibc/glibc/0001-locale-fix-hard-coded-reference-to-gcc-E.patch | |||
@@ -0,0 +1,39 @@ | |||
1 | From 2c0ab83eb54c0e0fccbf261726dc03803b236079 Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Rosen?= <jeremy.rosen@smile.fr> | ||
3 | Date: Mon, 22 Aug 2016 16:09:25 +0200 | ||
4 | Subject: [PATCH] locale: fix hard-coded reference to gcc -E | ||
5 | |||
6 | When new version of compilers are published, they may not be compatible with | ||
7 | older versions of software. This is particularly common when software is built | ||
8 | with -Werror. | ||
9 | |||
10 | Autotools provides a way for a user to specify the name of his compiler using a | ||
11 | set of variables ($CC $CXX $CPP etc.). Those variables are used correctly when | ||
12 | compiling glibc but the script used to generate transliterations in the locale/ | ||
13 | subdirectory directly calls the gcc binary to get the output of the | ||
14 | preprocessor instead of using the $CPP variable provided by the build | ||
15 | environment. | ||
16 | |||
17 | This patch replaces the hard-coded reference to the gcc binary with the proper | ||
18 | environment variable, thus allowing a user to override it. | ||
19 | |||
20 | Upstream-Status : Submitted [https://sourceware.org/ml/libc-alpha/2016-08/msg00746.html] | ||
21 | |||
22 | --- | ||
23 | locale/gen-translit.pl | 2 +- | ||
24 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
25 | |||
26 | diff --git a/locale/gen-translit.pl b/locale/gen-translit.pl | ||
27 | index 30d3f2f..7b287fa 100644 | ||
28 | --- a/locale/gen-translit.pl | ||
29 | +++ b/locale/gen-translit.pl | ||
30 | @@ -1,5 +1,5 @@ | ||
31 | #!/usr/bin/perl -w | ||
32 | -open F, "cat C-translit.h.in | gcc -E - |" || die "Cannot preprocess input file"; | ||
33 | +open F, 'cat C-translit.h.in | ${CPP:-gcc -E} - |' || die "Cannot preprocess input file"; | ||
34 | |||
35 | |||
36 | sub cstrlen { | ||
37 | -- | ||
38 | 2.9.3 | ||
39 | |||
diff --git a/meta/recipes-core/glibc/glibc_2.24.bb b/meta/recipes-core/glibc/glibc_2.24.bb index a3ac73841d..f5a21b258d 100644 --- a/meta/recipes-core/glibc/glibc_2.24.bb +++ b/meta/recipes-core/glibc/glibc_2.24.bb | |||
@@ -42,7 +42,8 @@ SRC_URI = "${GLIBC_GIT_URI};branch=${SRCBRANCH};name=glibc \ | |||
42 | SRC_URI += "\ | 42 | SRC_URI += "\ |
43 | file://etc/ld.so.conf \ | 43 | file://etc/ld.so.conf \ |
44 | file://generate-supported.mk \ | 44 | file://generate-supported.mk \ |
45 | " | 45 | file://0001-locale-fix-hard-coded-reference-to-gcc-E.patch \ |
46 | " | ||
46 | 47 | ||
47 | SRC_URI_append_class-nativesdk = "\ | 48 | SRC_URI_append_class-nativesdk = "\ |
48 | file://0001-nativesdk-glibc-Look-for-host-system-ld.so.cache-as-.patch \ | 49 | file://0001-nativesdk-glibc-Look-for-host-system-ld.so.cache-as-.patch \ |