1
Description: Allow package to build with glibc-2.16
2
'gets' has been removed from glibc-2.16 but gnulib still refers to it
3
causing build failures.
4
The simple fix for now is just to put a check around the reference in
6
A new release made with a new gnulib is a better fix.
8
gettext (0.18.1.1-10) precise; urgency=low
10
* Fix FTBFS on eglibc-2.16 (due to gets removal/outdated gnulib)
11
Author: Wookey <wookey@wookware.org>
12
Last-Update: 2012-11-05
13
Bug: http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00186.html
14
Bug-Debian: http://bugs.debian.org/687986
17
--- a/gettext-tools/gnulib-lib/stdio.in.h
18
+++ b/gettext-tools/gnulib-lib/stdio.in.h
22
/* It is very rare that the developer ever has full control of stdin,
23
- so any use of gets warrants an unconditional warning. Assume it is
24
- always declared, since it is required by C89. */
25
+ so any use of gets warrants an unconditional warning. */
27
+#ifdef HAVE_RAW_DECL_GETS
28
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
34
--- a/gettext-runtime/gnulib-lib/stdio.in.h
35
+++ b/gettext-runtime/gnulib-lib/stdio.in.h
39
/* It is very rare that the developer ever has full control of stdin,
40
- so any use of gets warrants an unconditional warning. Assume it is
41
- always declared, since it is required by C89. */
42
+ so any use of gets warrants an unconditional warning. */
44
+#ifdef HAVE_RAW_DECL_GETS
45
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
50
--- a/gettext-tools/libgettextpo/stdio.in.h
51
+++ b/gettext-tools/libgettextpo/stdio.in.h
55
/* It is very rare that the developer ever has full control of stdin,
56
- so any use of gets warrants an unconditional warning. Assume it is
57
- always declared, since it is required by C89. */
58
+ so any use of gets warrants an unconditional warning. */
60
+#ifdef HAVE_RAW_DECL_GETS
61
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");