summaryrefslogtreecommitdiff
path: root/core/m4
diff options
context:
space:
mode:
Diffstat (limited to 'core/m4')
-rw-r--r--core/m4/PKGBUILD11
-rw-r--r--core/m4/gnulib-no-gets.patch16
2 files changed, 23 insertions, 4 deletions
diff --git a/core/m4/PKGBUILD b/core/m4/PKGBUILD
index de13524da..860958c53 100644
--- a/core/m4/PKGBUILD
+++ b/core/m4/PKGBUILD
@@ -4,23 +4,26 @@
pkgname=m4
pkgver=1.4.16
-pkgrel=2
+pkgrel=2.2
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'
'eebe5c94e74e7551e2e30c5844f1b653'
- 'cea138fa9b568d06e46269611cec8dd0')
+ 'cea138fa9b568d06e46269611cec8dd0'
+ '9593407bef0afdca88c76a2959d6596f')
build() {
cd ${srcdir}/$pkgname-$pkgver
patch -Np1 -i $srcdir/m4-1.4.16-readlink-einval.patch
+ patch -p1 -i "$srcdir/gnulib-no-gets.patch"
./configure --prefix=/usr
make
}
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)