diff options
Diffstat (limited to 'core/m4')
-rw-r--r-- | core/m4/PKGBUILD | 5 | ||||
-rw-r--r-- | core/m4/gnulib-no-gets.patch | 16 |
2 files changed, 19 insertions, 2 deletions
diff --git a/core/m4/PKGBUILD b/core/m4/PKGBUILD index d0e2ffb5a..d4a9da421 100644 --- a/core/m4/PKGBUILD +++ b/core/m4/PKGBUILD @@ -6,14 +6,15 @@ pkgname=m4 pkgver=1.4.16 pkgrel=3 pkgdesc="The GNU macro processor" -arch=('i686' 'x86_64') +arch=('i686' 'x86_64' 'mips64el') url="http://www.gnu.org/software/m4" license=('GPL3') groups=('base-devel') depends=('glibc' 'bash') install=m4.install source=(ftp://ftp.gnu.org/gnu/m4/$pkgname-$pkgver.tar.xz{,.sig} - m4-1.4.16-readlink-einval.patch) + m4-1.4.16-readlink-einval.patch + gnulib-no-gets.patch) md5sums=('7548ec061a1ba993790159764f522d0e' 'SKIP' 'cea138fa9b568d06e46269611cec8dd0') diff --git a/core/m4/gnulib-no-gets.patch b/core/m4/gnulib-no-gets.patch new file mode 100644 index 000000000..c26c4ac6f --- /dev/null +++ b/core/m4/gnulib-no-gets.patch @@ -0,0 +1,16 @@ +diff -ru m4-1.4.16.orig/lib/stdio.in.h m4-1.4.16/lib/stdio.in.h +--- m4-1.4.16.orig/lib/stdio.in.h 2012-10-21 21:47:45.261174075 +0200 ++++ m4-1.4.16/lib/stdio.in.h 2012-10-21 21:48:14.728646610 +0200 +@@ -158,12 +158,6 @@ + "use gnulib module fflush for portable POSIX compliance"); + #endif + +-/* 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. */ +-#undef gets +-_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); +- + #if @GNULIB_FOPEN@ + # if @REPLACE_FOPEN@ + # if !(defined __cplusplus && defined GNULIB_NAMESPACE) |