summaryrefslogtreecommitdiff
path: root/libre-testing/m4
diff options
context:
space:
mode:
Diffstat (limited to 'libre-testing/m4')
-rw-r--r--libre-testing/m4/PKGBUILD33
-rw-r--r--libre-testing/m4/m4-1.4.16-readlink-einval.patch12
-rw-r--r--libre-testing/m4/m4-1.4.17-perl-make-check.patch12
3 files changed, 57 insertions, 0 deletions
diff --git a/libre-testing/m4/PKGBUILD b/libre-testing/m4/PKGBUILD
new file mode 100644
index 000000000..deb3f64a5
--- /dev/null
+++ b/libre-testing/m4/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Allan McRae <allan@archlinux.org>
+# Contributor: Andreas Radke <andyrtr@archlinux.org>
+
+pkgname=m4
+pkgver=1.4.18
+pkgrel=1
+pkgdesc="The GNU macro processor"
+arch=('x86_64' 'ppc64le')
+url="http://www.gnu.org/software/m4"
+license=('GPL3')
+groups=('base-devel')
+depends=('glibc' 'bash')
+source=(ftp://ftp.gnu.org/gnu/m4/$pkgname-$pkgver.tar.xz{,.sig})
+md5sums=('730bb15d96fffe47e148d1e09235af82'
+ 'SKIP')
+validpgpkeys=('71C2CC22B1C4602927D2F3AAA7A16B4A2527436A') # Eric Blake
+
+
+build() {
+ cd $pkgname-$pkgver
+ ./configure --prefix=/usr
+ make
+}
+
+check() {
+ cd $pkgname-$pkgver
+ make check
+}
+
+package() {
+ cd $pkgname-$pkgver
+ make prefix=${pkgdir}/usr install
+}
diff --git a/libre-testing/m4/m4-1.4.16-readlink-einval.patch b/libre-testing/m4/m4-1.4.16-readlink-einval.patch
new file mode 100644
index 000000000..6a987510d
--- /dev/null
+++ b/libre-testing/m4/m4-1.4.16-readlink-einval.patch
@@ -0,0 +1,12 @@
+diff -up m4-1.4.16/tests/test-readlink.h.orig m4-1.4.16/tests/test-readlink.h
+--- m4-1.4.16/tests/test-readlink.h.orig 2011-09-19 12:44:58.745546826 +0200
++++ m4-1.4.16/tests/test-readlink.h 2011-09-19 12:46:00.079548410 +0200
+@@ -38,7 +38,7 @@ test_readlink (ssize_t (*func) (char con
+ ASSERT (errno == ENOENT);
+ errno = 0;
+ ASSERT (func ("", buf, sizeof buf) == -1);
+- ASSERT (errno == ENOENT);
++ ASSERT (errno == ENOENT || errno == EINVAL);
+ errno = 0;
+ ASSERT (func (".", buf, sizeof buf) == -1);
+ ASSERT (errno == EINVAL);
diff --git a/libre-testing/m4/m4-1.4.17-perl-make-check.patch b/libre-testing/m4/m4-1.4.17-perl-make-check.patch
new file mode 100644
index 000000000..ae4af4021
--- /dev/null
+++ b/libre-testing/m4/m4-1.4.17-perl-make-check.patch
@@ -0,0 +1,12 @@
+diff -up m4-1.4.17/build-aux/update-copyright.orig m4-1.4.17/build-aux/update-copyright
+--- m4-1.4.17/build-aux/update-copyright.orig 2015-07-13 11:25:19.502749690 +0200
++++ m4-1.4.17/build-aux/update-copyright 2015-07-13 11:26:20.445044297 +0200
+@@ -124,7 +124,7 @@ use strict;
+ use warnings;
+
+ my $copyright_re = 'Copyright';
+-my $circle_c_re = '(?:\([cC]\)|@copyright{}|&copy;)';
++my $circle_c_re = '(?:\([cC]\)|@copyright\{}|\\\\\(co|&copy;)';
+ my $holder = $ENV{UPDATE_COPYRIGHT_HOLDER};
+ $holder ||= 'Free Software Foundation, Inc.';
+ my $prefix_max = 5;