diff options
author | Khem Raj <raj.khem@gmail.com> | 2018-08-07 01:57:04 +0300 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2018-09-21 16:55:35 +0300 |
commit | 2429c7e24535247b01e59485b926bcca6d3bfd9d (patch) | |
tree | 939e381a0a0fa14dcce65aae4a3e0fd9f1a3ea1a /poky/meta/recipes-devtools | |
parent | 0eeb9cdde077ce5f796d7320e7e5292464e821b9 (diff) | |
download | openbmc-2429c7e24535247b01e59485b926bcca6d3bfd9d.tar.xz |
bison: Fix build break with glibc 2.28
(From poky rev: 5e441f3f8aa896e264f44ba8b699e5841cceade4)
Change-Id: I102a6c7491d1ad3d042266fa4c8cd1193ef9cee3
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'poky/meta/recipes-devtools')
-rw-r--r-- | poky/meta/recipes-devtools/bison/bison/gnulib.patch | 21 | ||||
-rw-r--r-- | poky/meta/recipes-devtools/bison/bison_3.0.4.bb | 1 |
2 files changed, 22 insertions, 0 deletions
diff --git a/poky/meta/recipes-devtools/bison/bison/gnulib.patch b/poky/meta/recipes-devtools/bison/bison/gnulib.patch new file mode 100644 index 000000000..7eaf0ce0f --- /dev/null +++ b/poky/meta/recipes-devtools/bison/bison/gnulib.patch @@ -0,0 +1,21 @@ +Fix gnulib issues found with glibc 2.28 libio.h removal + +see +https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html + +Upstream-Status: Pending +Signed-off-by: Khem Raj <raj.khem@gmail.com> + +Index: bison-3.0.4/lib/fseterr.c +=================================================================== +--- bison-3.0.4.orig/lib/fseterr.c ++++ bison-3.0.4/lib/fseterr.c +@@ -29,7 +29,7 @@ fseterr (FILE *fp) + /* Most systems provide FILE as a struct and the necessary bitmask in + <stdio.h>, because they need it for implementing getc() and putc() as + fast macros. */ +-#if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */ ++#if defined _IO_EOF_SEEN || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */ + fp->_flags |= _IO_ERR_SEEN; + #elif defined __sferror || defined __DragonFly__ /* FreeBSD, NetBSD, OpenBSD, DragonFly, Mac OS X, Cygwin */ + fp_->_flags |= __SERR; diff --git a/poky/meta/recipes-devtools/bison/bison_3.0.4.bb b/poky/meta/recipes-devtools/bison/bison_3.0.4.bb index 58728f502..cc155f0fb 100644 --- a/poky/meta/recipes-devtools/bison/bison_3.0.4.bb +++ b/poky/meta/recipes-devtools/bison/bison_3.0.4.bb @@ -14,6 +14,7 @@ SRC_URI = "${GNU_MIRROR}/bison/bison-${PV}.tar.xz \ file://dont-depend-on-help2man.patch.patch \ file://0001-src-local.mk-fix-parallel-issue.patch \ file://add-with-bisonlocaledir.patch \ + file://gnulib.patch \ " # No point in hardcoding path to m4, just use PATH |