summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/bison
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2012-07-04 09:15:25 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-01-03 12:34:23 +0000
commitdb915496d3e513f8d29dd5961764137b26ae8a71 (patch)
treed89bd926a1c2a2af65ae5dc70ac4f0e409e9e706 /meta/recipes-devtools/bison
parent8fe4344e74a70a88e1bbc79d2c6f93255df9e7be (diff)
downloadpoky-db915496d3e513f8d29dd5961764137b26ae8a71.tar.gz
bison: Fix for gets being removed from eglibc 2.16
(From OE-Core rev: bc91a267d097c100480ea02ece7fb372167eaf7f) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/bison')
-rw-r--r--meta/recipes-devtools/bison/bison/remove-gets.patch20
-rw-r--r--meta/recipes-devtools/bison/bison_2.5.bb6
2 files changed, 24 insertions, 2 deletions
diff --git a/meta/recipes-devtools/bison/bison/remove-gets.patch b/meta/recipes-devtools/bison/bison/remove-gets.patch
new file mode 100644
index 0000000000..2dfa00fcfa
--- /dev/null
+++ b/meta/recipes-devtools/bison/bison/remove-gets.patch
@@ -0,0 +1,20 @@
1gets has been removed from eglibc 2.16
2
3Signed-off-by: Khem Raj <raj.khem@gmail.com>
4
5Upstream-Status: Pending
6Index: bison-2.5/lib/stdio.in.h
7===================================================================
8--- bison-2.5.orig/lib/stdio.in.h 2012-07-04 09:09:48.336532195 -0700
9+++ bison-2.5/lib/stdio.in.h 2012-07-04 09:10:22.868533884 -0700
10@@ -180,8 +180,10 @@
11 /* It is very rare that the developer ever has full control of stdin,
12 so any use of gets warrants an unconditional warning. Assume it is
13 always declared, since it is required by C89. */
14+#if defined gets
15 #undef gets
16 _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
17+#endif
18
19 #if @GNULIB_FOPEN@
20 # if @REPLACE_FOPEN@
diff --git a/meta/recipes-devtools/bison/bison_2.5.bb b/meta/recipes-devtools/bison/bison_2.5.bb
index c5113cdccd..e3f9273422 100644
--- a/meta/recipes-devtools/bison/bison_2.5.bb
+++ b/meta/recipes-devtools/bison/bison_2.5.bb
@@ -9,14 +9,16 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
9SECTION = "devel" 9SECTION = "devel"
10DEPENDS = "bison-native flex-native" 10DEPENDS = "bison-native flex-native"
11 11
12PR = "r1" 12PR = "r2"
13 13
14BASE_SRC_URI = "${GNU_MIRROR}/bison/bison-${PV}.tar.gz \ 14BASE_SRC_URI = "${GNU_MIRROR}/bison/bison-${PV}.tar.gz \
15 file://m4.patch \ 15 file://m4.patch \
16 " 16 "
17 17
18SRC_URI = "${BASE_SRC_URI} \ 18SRC_URI = "${BASE_SRC_URI} \
19 file://fix_cross_manpage_building.patch " 19 file://fix_cross_manpage_building.patch \
20 file://remove-gets.patch \
21 "
20 22
21SRC_URI[md5sum] = "687e1dcd29452789d34eaeea4c25abe4" 23SRC_URI[md5sum] = "687e1dcd29452789d34eaeea4c25abe4"
22SRC_URI[sha256sum] = "722def46e4a19a5b7a579ef30db1965f86c37c1a20a5f0113743a2e4399f7c99" 24SRC_URI[sha256sum] = "722def46e4a19a5b7a579ef30db1965f86c37c1a20a5f0113743a2e4399f7c99"