Tue Dec 31 10:14:14 2013 UTC ()
Fix build on Linux with glibc>=2.16, for example, Fedora 22.
(ryoon)
diff -r1.37 -r1.38 pkgsrc/converters/libiconv/distinfo
diff -r0 -r1.1 pkgsrc/converters/libiconv/patches/patch-srclib_stdio.in.h
--- pkgsrc/converters/libiconv/distinfo 2011/09/08 16:29:49 1.37
+++ pkgsrc/converters/libiconv/distinfo 2013/12/31 10:14:14 1.38
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.37 2011/09/08 16:29:49 bsiegert Exp $
+$NetBSD: distinfo,v 1.38 2013/12/31 10:14:14 ryoon Exp $
SHA1 (libiconv-1.13-cp932.patch.gz) = 3dd6ed92e0d9f58db71edf63e31ab6cbd4420f99
RMD160 (libiconv-1.13-cp932.patch.gz) = 71040b00489ad1a5f218a09b4d22e550b1d31fc8
@@ -11,3 +11,4 @@
SHA1 (patch-ad) = e94da1c4423677b74f463d4b132c7714efc65815
SHA1 (patch-ae) = ab346a515d5ab0efd679e7783edebd95a05db782
SHA1 (patch-af) = 513a8f995161853870a01afabccdb2a650b794a6
+SHA1 (patch-srclib_stdio.in.h) = a041eb1056f293a25f08969b4c2112623ec66922
$NetBSD: patch-srclib_stdio.in.h,v 1.1 2013/12/31 10:14:14 ryoon Exp $
* Fix build on glibc>=2.16
From http://www.itkb.ro/kb/linux/patch-libiconv-pentru-glibc-216
--- srclib/stdio.in.h.orig 2011-08-07 13:42:06.000000000 +0000
+++ srclib/stdio.in.h
@@ -695,8 +695,10 @@ _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. */
+#if defined(__GLIBC__) && !defined(__UCLIBC__) && !__GLIBC_PREREQ(2, 16)
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
#endif
+#endif
#if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@