All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jack Mitchell <ml@communistcode.co.uk>
To: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH 08/19] bison: Fix for gets being removed from eglibc 2.16
Date: Sat, 28 Jul 2012 11:40:59 +0100	[thread overview]
Message-ID: <5013C1BB.9020504@communistcode.co.uk> (raw)
In-Reply-To: <4d738395bf7cd05c924a9facf9677bab784cb1b6.1341763346.git.raj.khem@gmail.com>

On 08/07/2012 17:10, Khem Raj wrote:
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ---
>   .../recipes-devtools/bison/bison/remove-gets.patch |   20 ++++++++++++++++++++
>   meta/recipes-devtools/bison/bison_2.5.bb           |    6 ++++--
>   2 files changed, 24 insertions(+), 2 deletions(-)
>   create mode 100644 meta/recipes-devtools/bison/bison/remove-gets.patch
>
> 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 0000000..2dfa00f
> --- /dev/null
> +++ b/meta/recipes-devtools/bison/bison/remove-gets.patch
> @@ -0,0 +1,20 @@
> +gets has been removed from eglibc 2.16
> +
> +Signed-off-by: Khem Raj <raj.khem@gmail.com>
> +
> +Upstream-Status: Pending
> +Index: bison-2.5/lib/stdio.in.h
> +===================================================================
> +--- bison-2.5.orig/lib/stdio.in.h	2012-07-04 09:09:48.336532195 -0700
> ++++ bison-2.5/lib/stdio.in.h	2012-07-04 09:10:22.868533884 -0700
> +@@ -180,8 +180,10 @@
> + /* It is very rare that the developer ever has full control of stdin,
> +    so any use of gets warrants an unconditional warning.  Assume it is
> +    always declared, since it is required by C89.  */
> ++#if defined gets
> + #undef gets
> + _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
> ++#endif
> +
> + #if @GNULIB_FOPEN@
> + # if @REPLACE_FOPEN@
> diff --git a/meta/recipes-devtools/bison/bison_2.5.bb b/meta/recipes-devtools/bison/bison_2.5.bb
> index fc3bb6d..687f06a 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"
>   SECTION = "devel"
>   DEPENDS = "bison-native flex-native"
>   
> -PR = "r1"
> +PR = "r2"
>   
>   BASE_SRC_URI = "${GNU_MIRROR}/bison/bison-${PV}.tar.gz \
>   	   file://m4.patch \
>   	  "
>   
>   SRC_URI = "${BASE_SRC_URI} \
> -        file://fix_cross_manpage_building.patch "
> +           file://fix_cross_manpage_building.patch \
> +           file://remove-gets.patch \
> +          "
>   
>   SRC_URI[md5sum] = "687e1dcd29452789d34eaeea4c25abe4"
>   SRC_URI[sha256sum] = "722def46e4a19a5b7a579ef30db1965f86c37c1a20a5f0113743a2e4399f7c99"

Hi Khem,

This patch doesn't fix the Bison gets issue for me, I had to create a 
patch that removed the line altogether to get it to compile 
successfully. Even though gets isn't present on my system it still 
matches the #if defined gets and tries to #undef gets which results in 
an error.

However, I don't think removing the line altogether is the correct fix 
for the global userbase...

Regards,
Jack.



  reply	other threads:[~2012-07-28 10:57 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-08 16:10 [PATCH V2 00/14] eglibc 2.16 Khem Raj
2012-07-08 16:10 ` [PATCH 01/19] mirrors: Add debian archive snapshot mirrors to search list Khem Raj
2012-07-08 16:10 ` [PATCH 02/19] gdb: Replace struct siginfo with proper siginfo_t Khem Raj
2012-07-08 16:10 ` [PATCH 03/19] busybox: Include sys/resource.h for rusage definition Khem Raj
2012-07-08 16:10 ` [PATCH 04/19] coreutils: Fix build with eglibc 2.16 Khem Raj
2012-07-08 16:10 ` [PATCH 05/19] diffutils: " Khem Raj
2012-07-08 16:10 ` [PATCH 06/19] udev: " Khem Raj
2012-07-08 16:10 ` [PATCH 07/19] gettext, m4, augeas, gnutls: Account for removal of gets in " Khem Raj
2012-07-08 16:10 ` [PATCH 08/19] bison: Fix for gets being removed from " Khem Raj
2012-07-28 10:40   ` Jack Mitchell [this message]
2012-07-28 18:45     ` Khem Raj
2012-07-28 19:49       ` Jack Mitchell
2012-07-28 20:20         ` [PATCH] bison: move remove-gets.patch to BASE_SRC_URI, it's needed for bison-native too if host has (e)glibc-2.16 Martin Jansa
2012-07-29  9:17           ` Richard Purdie
2012-07-28 20:24         ` [PATCH 08/19] bison: Fix for gets being removed from eglibc 2.16 Martin Jansa
2012-07-28 20:39           ` Jack Mitchell
2012-07-28 20:52             ` Martin Jansa
2012-07-08 16:10 ` [PATCH 09/19] grub, guile, cpio, tar, wget: Fix gnulib for absense of gets in eglibc Khem Raj
2012-07-08 16:10 ` [PATCH 10/19] boost: Upgrade recipe to 1.50.0 Khem Raj
2012-07-08 16:10 ` [PATCH 11/19] puzzles: Fix checksums Khem Raj
2012-07-08 16:10 ` [PATCH 12/19] valgrind: Fix build with eglibc 2.16 Khem Raj
2012-07-08 16:10 ` [PATCH 13/19] libpam: " Khem Raj
2012-07-08 16:10 ` [PATCH 14/19] gcc-cross-initial.inc: Use BFD ld as default always Khem Raj
2012-07-08 16:10 ` [PATCH 15/19] gcc: Switch to git SRC_URI Khem Raj
2012-07-08 16:10 ` [PATCH 16/19] binutils: Backport the e5500/e6500 patches from mainline Khem Raj
2012-07-08 16:10 ` [PATCH 17/19] gcc: Refresh support for fsl E5500/E6500 Khem Raj
2012-07-08 16:10 ` [PATCH 18/19] qemu: Explicitly add --disable-gl-accel when gl is not enabled Khem Raj
2012-07-08 16:10 ` [PATCH 19/19] eglibc: Add recipes for 2.16 release Khem Raj
2012-07-08 18:47 ` [PATCH V2 00/14] eglibc 2.16 Khem Raj
2012-07-08 21:14 ` Saul Wold
2012-07-09  4:21   ` Khem Raj
2012-07-09  4:26 ` Khem Raj
2012-07-09  9:56   ` Martin Jansa
2012-07-09 16:23     ` Richard Purdie
2012-07-09 22:48   ` Khem Raj

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5013C1BB.9020504@communistcode.co.uk \
    --to=ml@communistcode.co.uk \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.