summaryrefslogtreecommitdiff
path: root/core/m4/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'core/m4/PKGBUILD')
-rw-r--r--core/m4/PKGBUILD21
1 files changed, 14 insertions, 7 deletions
diff --git a/core/m4/PKGBUILD b/core/m4/PKGBUILD
index 860958c53..d4a9da421 100644
--- a/core/m4/PKGBUILD
+++ b/core/m4/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 142068 2011-11-04 23:36:00Z allan $
+# $Id: PKGBUILD 183048 2013-04-17 02:02:03Z allan $
# Maintainer: Allan McRae <allan@archlinux.org>
# Contributor: Andreas Radke <andyrtr@archlinux.org>
pkgname=m4
pkgver=1.4.16
-pkgrel=2.2
+pkgrel=3
pkgdesc="The GNU macro processor"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.gnu.org/software/m4"
@@ -16,14 +16,21 @@ source=(ftp://ftp.gnu.org/gnu/m4/$pkgname-$pkgver.tar.xz{,.sig}
m4-1.4.16-readlink-einval.patch
gnulib-no-gets.patch)
md5sums=('7548ec061a1ba993790159764f522d0e'
- 'eebe5c94e74e7551e2e30c5844f1b653'
- 'cea138fa9b568d06e46269611cec8dd0'
- '9593407bef0afdca88c76a2959d6596f')
+ 'SKIP'
+ 'cea138fa9b568d06e46269611cec8dd0')
-build() {
+prepare() {
cd ${srcdir}/$pkgname-$pkgver
+
+ # glibc-2.16 compatibility
+ sed -i -e '/gets is a/d' lib/stdio.in.h
+
+ # patch testsuite failure with newer kernels
patch -Np1 -i $srcdir/m4-1.4.16-readlink-einval.patch
- patch -p1 -i "$srcdir/gnulib-no-gets.patch"
+}
+
+build() {
+ cd ${srcdir}/$pkgname-$pkgver
./configure --prefix=/usr
make
}