summaryrefslogtreecommitdiff
path: root/core/m4
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2012-10-21 23:56:44 +0200
committerMichał Masłowski <mtjm@mtjm.eu>2012-10-21 23:56:44 +0200
commit7e9d319e9575e68d86463b792425fcdba0f195d2 (patch)
tree8cd47511f55275a65d61b9fb0ed9d84d23bc09f6 /core/m4
parent02de600478bc393832a0707be7ea4b6c304d9e02 (diff)
Fix the gnulib gets error with glibc 2.16 in core packages.
Diffstat (limited to 'core/m4')
-rw-r--r--core/m4/PKGBUILD7
-rw-r--r--core/m4/gnulib-no-gets.patch16
2 files changed, 21 insertions, 2 deletions
diff --git a/core/m4/PKGBUILD b/core/m4/PKGBUILD
index 8efbf638b..860958c53 100644
--- a/core/m4/PKGBUILD
+++ b/core/m4/PKGBUILD
@@ -13,14 +13,17 @@ 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)