All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 05/10] gnutls: fix build failure due to non-existing gets in recent C libraries
Date: Sat, 17 Nov 2012 23:24:03 +0100	[thread overview]
Message-ID: <a7e7ca7a144217a66117fb2352bb5d4d4dabb1bd.1353191025.git.thomas.petazzoni@free-electrons.com> (raw)
In-Reply-To: <cover.1353191025.git.thomas.petazzoni@free-electrons.com>

Fixes:

  http://autobuild.buildroot.org/results/7414989c182f8fd5b3ac849b7897b8e15df0024f/build-end.log

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 ...001-gets-no-longer-exists-in-e-glibc-2.16.patch |   56 ++++++++++++++++++++
 1 file changed, 56 insertions(+)
 create mode 100644 package/gnutls/gnutls-0001-gets-no-longer-exists-in-e-glibc-2.16.patch

diff --git a/package/gnutls/gnutls-0001-gets-no-longer-exists-in-e-glibc-2.16.patch b/package/gnutls/gnutls-0001-gets-no-longer-exists-in-e-glibc-2.16.patch
new file mode 100644
index 0000000..802e7ac
--- /dev/null
+++ b/package/gnutls/gnutls-0001-gets-no-longer-exists-in-e-glibc-2.16.patch
@@ -0,0 +1,56 @@
+From 855f72c4fe7f4bbf2137ab60357ae3b27bb65185 Mon Sep 17 00:00:00 2001
+From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+Date: Sat, 17 Nov 2012 17:45:41 +0100
+Subject: [PATCH] gets() no longer exists in (e)glibc >= 2.16
+
+gnutls has already updated gnulib upstream in more recent versions
+(3.x) but apparently not in the 2.x branch that we are using.
+
+This patch comes from OpenEmbedded, and has originally been written by
+Khem Raj <raj.khem@gmail.com>.
+
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+---
+ gl/stdio.in.h     |    2 ++
+ lib/gl/stdio.in.h |    2 ++
+ 2 files changed, 4 insertions(+)
+
+diff --git a/gl/stdio.in.h b/gl/stdio.in.h
+index 9dc7c4a..8cb19d7 100644
+--- a/gl/stdio.in.h
++++ b/gl/stdio.in.h
+@@ -710,11 +710,13 @@ _GL_CXXALIAS_RPL (gets, char *, (char *s));
+ _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/lib/gl/stdio.in.h b/lib/gl/stdio.in.h
+index 03bea2a..cb6483b 100644
+--- a/lib/gl/stdio.in.h
++++ b/lib/gl/stdio.in.h
+@@ -710,11 +710,13 @@ _GL_CXXALIAS_RPL (gets, char *, (char *s));
+ _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
+ 
+ 
+-- 
+1.7.9.5
+
-- 
1.7.9.5

  parent reply	other threads:[~2012-11-17 22:24 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-17 22:23 [Buildroot] [pull request] Pull request for branch misc-fixes Thomas Petazzoni
2012-11-17 22:23 ` [Buildroot] [PATCH 01/10] python: use default configure commands to get shared build Thomas Petazzoni
2012-11-17 22:24 ` [Buildroot] [PATCH 02/10] libxml2: add support for building host library with python support Thomas Petazzoni
2012-11-17 22:24 ` [Buildroot] [PATCH 03/10] mesa3d: requires host-libxml2 and host-python to generate some files Thomas Petazzoni
2012-11-17 22:24 ` [Buildroot] [PATCH 04/10] libatomic_ops: bump to version 7.2 Thomas Petazzoni
2012-11-17 22:24 ` Thomas Petazzoni [this message]
2012-11-17 22:24 ` [Buildroot] [PATCH 06/10] gsl: fix build on !i386 uClibc Thomas Petazzoni
2012-11-17 22:24 ` [Buildroot] [PATCH 07/10] libffi: make thread support optional Thomas Petazzoni
2012-11-17 22:46   ` Peter Korsgaard
2012-11-17 22:24 ` [Buildroot] [PATCH 08/10] php: fix C++ link issue Thomas Petazzoni
2012-11-17 22:24 ` [Buildroot] [PATCH 09/10] attr: fix static build Thomas Petazzoni
2012-11-17 22:24 ` [Buildroot] [PATCH 10/10] dbus: uses fork(), requires MMU Thomas Petazzoni
2012-11-17 22:54 ` [Buildroot] [pull request] Pull request for branch misc-fixes Peter Korsgaard

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=a7e7ca7a144217a66117fb2352bb5d4d4dabb1bd.1353191025.git.thomas.petazzoni@free-electrons.com \
    --to=thomas.petazzoni@free-electrons.com \
    --cc=buildroot@busybox.net \
    /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.