~ubuntu-branches/ubuntu/utopic/gettext/utopic-proposed

« back to all changes in this revision

Viewing changes to debian/patches/07-eglibc-21.6-ftbfs-nogets

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2012-11-29 11:16:38 UTC
  • Revision ID: package-import@ubuntu.com-20121129111638-tfypnpt42m4c3f0a
Tags: 0.18.1.1-10ubuntu1
* Resynchronise with Debian NEW (LP: #1079768).  Remaining changes:
  - Build Java components with gcj.
  - Throw away /usr/lib/gettext/gnu.gettext*; we don't need them.
  - Explicitly configure with --disable-csharp.
  - Keep gettext.jar in /usr/share/gettext instead of moving it to
    /usr/share/java.
  - Drop autopoint recommends of gettext. It pulls in git and
    other sizable packages which make the CDs explode.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
5
 lib/stdio.in.h
 
6
 A new release made with a new gnulib is a better fix.
 
7
 .
 
8
 gettext (0.18.1.1-10) precise; urgency=low
 
9
 .
 
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
 
15
Forwarded: no
 
16
 
 
17
--- a/gettext-tools/gnulib-lib/stdio.in.h
 
18
+++ b/gettext-tools/gnulib-lib/stdio.in.h
 
19
@@ -138,10 +138,12 @@
 
20
 #endif
 
21
 
 
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.  */
 
26
 #undef gets
 
27
+#ifdef HAVE_RAW_DECL_GETS
 
28
 _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
 
29
+#endif
 
30
+#undef gets
 
31
 
 
32
 #if @GNULIB_FOPEN@
 
33
 # if @REPLACE_FOPEN@
 
34
--- a/gettext-runtime/gnulib-lib/stdio.in.h
 
35
+++ b/gettext-runtime/gnulib-lib/stdio.in.h
 
36
@@ -138,10 +138,11 @@
 
37
 #endif
 
38
 
 
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. */
 
43
 #undef gets
 
44
+#ifdef HAVE_RAW_DECL_GETS
 
45
 _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
 
46
+#endif
 
47
 
 
48
 #if @GNULIB_FOPEN@
 
49
 # if @REPLACE_FOPEN@
 
50
--- a/gettext-tools/libgettextpo/stdio.in.h
 
51
+++ b/gettext-tools/libgettextpo/stdio.in.h
 
52
@@ -138,10 +138,11 @@
 
53
 #endif
 
54
 
 
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.  */
 
59
 #undef gets
 
60
+#ifdef HAVE_RAW_DECL_GETS
 
61
 _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
 
62
+#endif
 
63
 
 
64
 #if @GNULIB_FOPEN@
 
65
 # if @REPLACE_FOPEN@