From: Khem Raj <raj.khem@gmail.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH 05/14] diffutils: Fix build with eglibc 2.16
Date: Thu, 5 Jul 2012 07:35:24 -0700 [thread overview]
Message-ID: <54ee709e3fca5dfb297109ff4e15580fe6a0ec1b.1341498745.git.raj.khem@gmail.com> (raw)
In-Reply-To: <48ef71f7c5eea25278a5a9c9befd01123369e2f9.1341498745.git.raj.khem@gmail.com>
In-Reply-To: <cover.1341498745.git.raj.khem@gmail.com>
eglibc 2.16 has removed gets so we account for that
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
.../diffutils/diffutils-3.2/remove-gets.patch | 22 ++++++++++++++++++++
meta/recipes-extended/diffutils/diffutils_3.2.bb | 6 ++++--
2 files changed, 26 insertions(+), 2 deletions(-)
create mode 100644 meta/recipes-extended/diffutils/diffutils-3.2/remove-gets.patch
diff --git a/meta/recipes-extended/diffutils/diffutils-3.2/remove-gets.patch b/meta/recipes-extended/diffutils/diffutils-3.2/remove-gets.patch
new file mode 100644
index 0000000..58ed62d
--- /dev/null
+++ b/meta/recipes-extended/diffutils/diffutils-3.2/remove-gets.patch
@@ -0,0 +1,22 @@
+check for gets before using it
+
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+Upstream-Status: Pending
+Index: diffutils-3.2/lib/stdio.in.h
+===================================================================
+--- diffutils-3.2.orig/lib/stdio.in.h 2011-08-28 04:57:28.000000000 -0700
++++ diffutils-3.2/lib/stdio.in.h 2012-07-03 10:45:07.518322117 -0700
+@@ -693,11 +693,13 @@
+ _GL_CXXALIAS_SYS (gets, char *, (char *s));
+ # undef gets
+ # endif
++# if defined gets
+ _GL_CXXALIASWARN (gets);
+ /* 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. */
+ _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
++# endif
+ #endif
+
+
diff --git a/meta/recipes-extended/diffutils/diffutils_3.2.bb b/meta/recipes-extended/diffutils/diffutils_3.2.bb
index 174866c..c46863d 100644
--- a/meta/recipes-extended/diffutils/diffutils_3.2.bb
+++ b/meta/recipes-extended/diffutils/diffutils_3.2.bb
@@ -5,9 +5,11 @@ SECTION = "base"
LICENSE = "GPLv3+"
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
-PR = "r0"
+PR = "r1"
-SRC_URI = "${GNU_MIRROR}/diffutils/diffutils-${PV}.tar.gz"
+SRC_URI = "${GNU_MIRROR}/diffutils/diffutils-${PV}.tar.gz \
+ file://remove-gets.patch \
+ "
inherit autotools update-alternatives gettext
--
1.7.9.5
next prev parent reply other threads:[~2012-07-05 14:47 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-05 14:35 [PATCH 00/14] eglibc 2.16 Khem Raj
2012-07-05 14:35 ` [PATCH 01/14] mirrors: Add debian archive snapshot mirrors to search list Khem Raj
2012-07-05 14:35 ` [PATCH 02/14] gdb: Replace struct siginfo with proper siginfo_t Khem Raj
2012-07-05 14:35 ` [PATCH 03/14] busybox: Include sys/resource.h for rusage definition Khem Raj
2012-07-05 14:35 ` [PATCH 04/14] coreutils: Fix build with eglibc 2.16 Khem Raj
2012-07-05 14:35 ` Khem Raj [this message]
2012-07-05 14:35 ` [PATCH 06/14] udev: " Khem Raj
2012-07-05 14:35 ` [PATCH 07/14] gettext, m4, augeas, gnutls: Account for removal of gets in " Khem Raj
2012-07-05 14:35 ` [PATCH 08/14] bison: Fix for gets being removed from " Khem Raj
2012-07-05 14:35 ` [PATCH 09/14] grub, guile, cpio, tar, wget: Fix gnulib for absense of gets in eglibc Khem Raj
2012-07-05 14:35 ` [PATCH 10/14] boost: Upgrade recipe to 1.50.0 Khem Raj
2012-07-05 14:35 ` [PATCH 11/14] puzzles: Fix checksums Khem Raj
2012-07-05 14:35 ` [PATCH 12/14] valgrind: Fix build with eglibc 2.16 Khem Raj
2012-07-05 14:35 ` [PATCH 13/14] libpam: " Khem Raj
2012-07-17 17:40 ` Saul Wold
2012-07-05 14:35 ` [PATCH 14/14] eglibc: Add recipes for 2.16 release Khem Raj
2012-07-06 2:27 ` Saul Wold
2012-07-06 3:49 ` Khem Raj
2012-07-06 5:18 ` Khem Raj
2012-07-05 20:23 ` [PATCH 00/14] eglibc 2.16 Martin Jansa
2012-07-05 20:39 ` Khem Raj
2012-07-05 20:57 ` Martin Jansa
2012-07-05 21:34 ` Khem Raj
2012-07-05 21:55 ` Martin Jansa
2012-07-17 14:59 ` Saul Wold
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=54ee709e3fca5dfb297109ff4e15580fe6a0ec1b.1341498745.git.raj.khem@gmail.com \
--to=raj.khem@gmail.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox