summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2013-03-12 09:56:02 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-03-20 17:26:16 +0000
commite7f7fcb831cbcafae6a05795a98d7784fa3bea1e (patch)
tree88422045f8b33686735e10db287ab586535aa850 /meta
parent998ec3bbcc4425468b83c76b364dc837d7979211 (diff)
downloadpoky-e7f7fcb831cbcafae6a05795a98d7784fa3bea1e.tar.gz
grep: Always use locale.h
The changes in the grep 2.5 configuration always leave out HAVE_LOCALE_H - it has been removed from other files, but not from everywhere. This leads to a crash in certain configurations where the size of int is not the size of pointer; this happens because setlocale() is used while being undeclared. [YOCTO #3959] (From OE-Core rev: 4ca3a19c6fb93a6e85017f7ae465b5d2eba9463e) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-extended/grep/grep-2.5.1a/fix64-int-to-pointer.patch17
-rw-r--r--meta/recipes-extended/grep/grep_2.5.1a.bb1
2 files changed, 18 insertions, 0 deletions
diff --git a/meta/recipes-extended/grep/grep-2.5.1a/fix64-int-to-pointer.patch b/meta/recipes-extended/grep/grep-2.5.1a/fix64-int-to-pointer.patch
new file mode 100644
index 0000000000..3b91520fb2
--- /dev/null
+++ b/meta/recipes-extended/grep/grep-2.5.1a/fix64-int-to-pointer.patch
@@ -0,0 +1,17 @@
1Always use locale.h as HAVE_LOCALE_H is no longer handled by ./configure
2Upstream-Status: Inappropriate [ old version that will not be maintained ]
3Signed-off-by: Alex DAMIAN <alexandru.damian@intel.com>
4
5diff --recursive --unified grep-2.5.1a-orig/lib/hard-locale.c grep-2.5.1a/lib/hard-locale.c
6--- grep-2.5.1a-orig/lib/hard-locale.c 2001-03-04 07:33:12.000000000 +0200
7+++ grep-2.5.1a/lib/hard-locale.c 2013-03-11 17:05:52.086444891 +0200
8@@ -38,9 +38,7 @@
9 # endif
10 #endif
11
12-#if HAVE_LOCALE_H
13 # include <locale.h>
14-#endif
15
16 #if HAVE_STRING_H
17 # include <string.h>
diff --git a/meta/recipes-extended/grep/grep_2.5.1a.bb b/meta/recipes-extended/grep/grep_2.5.1a.bb
index ebcbe23ca0..d6386edb3f 100644
--- a/meta/recipes-extended/grep/grep_2.5.1a.bb
+++ b/meta/recipes-extended/grep/grep_2.5.1a.bb
@@ -11,6 +11,7 @@ SRC_URI = "${GNU_MIRROR}/grep/grep-${PV}.tar.bz2 \
11 file://uclibc-fix.patch \ 11 file://uclibc-fix.patch \
12 file://grep_fix_for_automake-1.12.patch \ 12 file://grep_fix_for_automake-1.12.patch \
13 file://gettext.patch \ 13 file://gettext.patch \
14 file://fix64-int-to-pointer.patch \
14 file://Makevars \ 15 file://Makevars \
15 " 16 "
16 17