Merge branch 'dfsg-orig' into dfsg-debian
[debian/tar] / debian / patches / eglibc-2.16-ftbfs-gnulib-nogets
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  tar (1.26-5) unstable; urgency=low
9  .
10    * Fix gnu/stdio.in.h to build with glibc-2.16 (gets removed)
11 Author: Wookey <wookey@wookware.org>
12 Last-Update: 2012-11-5
13 Bug : http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00186.html
14 Bug-Debian: http://bugs.debian.org/687986
15 Forwarded: not-needed
16
17 --- tar-1.26.orig/gnu/stdio.in.h
18 +++ tar-1.26/gnu/stdio.in.h
19 @@ -164,7 +164,9 @@ _GL_WARN_ON_USE (fflush, "fflush is not
20     so any use of gets warrants an unconditional warning.  Assume it is
21     always declared, since it is required by C89.  */
22  #undef gets
23 +#ifdef HAVE_RAW_DECL_GETS
24  _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
25 +#endif
26  
27  #if @GNULIB_FOPEN@
28  # if @REPLACE_FOPEN@