diff options
author | ryoon <ryoon@pkgsrc.org> | 2013-12-31 10:14:14 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2013-12-31 10:14:14 +0000 |
commit | a05073f8625d4819c872a8675c507d743632542c (patch) | |
tree | 696ad5365c8327112ca99594e6d010934d1e5f92 | |
parent | 636a8f10fa273a054746a4e13d8fa25f1fb384ac (diff) | |
download | pkgsrc-a05073f8625d4819c872a8675c507d743632542c.tar.gz |
Fix build on Linux with glibc>=2.16, for example, Fedora 22.
-rw-r--r-- | converters/libiconv/distinfo | 3 | ||||
-rw-r--r-- | converters/libiconv/patches/patch-srclib_stdio.in.h | 18 |
2 files changed, 20 insertions, 1 deletions
diff --git a/converters/libiconv/distinfo b/converters/libiconv/distinfo index cb9d9ab4905..dcfb8e7dffa 100644 --- a/converters/libiconv/distinfo +++ b/converters/libiconv/distinfo @@ -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-ab) = 5ee1e7573d84fb857fb96387653c191008d96b02 SHA1 (patch-ad) = e94da1c4423677b74f463d4b132c7714efc65815 SHA1 (patch-ae) = ab346a515d5ab0efd679e7783edebd95a05db782 SHA1 (patch-af) = 513a8f995161853870a01afabccdb2a650b794a6 +SHA1 (patch-srclib_stdio.in.h) = a041eb1056f293a25f08969b4c2112623ec66922 diff --git a/converters/libiconv/patches/patch-srclib_stdio.in.h b/converters/libiconv/patches/patch-srclib_stdio.in.h new file mode 100644 index 00000000000..9636448ce97 --- /dev/null +++ b/converters/libiconv/patches/patch-srclib_stdio.in.h @@ -0,0 +1,18 @@ +$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@ |