summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorJuergen Daubert <jue@jue.li>2010-08-06 13:12:38 +0200
committerJuergen Daubert <jue@jue.li>2010-08-06 13:12:38 +0200
commitf60b2fc8d40b963f03205db00da6bfa3a8595e89 (patch)
tree21d38fdcdd12e1ce82e9259b038a0ee7c2b5acb8 /m4
parent4dbf0a18338830761e4e4faf367c99be8f31d9fc (diff)
downloadcore-f60b2fc8d40b963f03205db00da6bfa3a8595e89.tar.gz
core-f60b2fc8d40b963f03205db00da6bfa3a8595e89.tar.xz
m4: include stat.h to build with glibc 2.12
See http://article.gmane.org/gmane.comp.gnu.m4.patches/1214
Diffstat (limited to 'm4')
-rw-r--r--m4/.md5sum1
-rw-r--r--m4/Pkgfile6
-rw-r--r--m4/m4-1.4.14-include_stat.patch13
3 files changed, 18 insertions, 2 deletions
diff --git a/m4/.md5sum b/m4/.md5sum
index 0ce4acb1..76d6ce35 100644
--- a/m4/.md5sum
+++ b/m4/.md5sum
@@ -1 +1,2 @@
+65aaf436ae56a2b8a98ca6490a637589 m4-1.4.14-include_stat.patch
e2b871099546846d1df586f195f79b53 m4-1.4.14.tar.xz
diff --git a/m4/Pkgfile b/m4/Pkgfile
index bd253e67..32654764 100644
--- a/m4/Pkgfile
+++ b/m4/Pkgfile
@@ -4,11 +4,13 @@
name=m4
version=1.4.14
-release=1
-source=(ftp://ftp.gnu.org/gnu/$name/$name-$version.tar.xz)
+release=2
+source=(ftp://ftp.gnu.org/gnu/$name/$name-$version.tar.xz
+ $name-$version-include_stat.patch)
build() {
cd $name-$version
+ patch -p1 -i $SRC/$name-$version-include_stat.patch
./configure --prefix=/usr --mandir=/usr/man
make
make DESTDIR=$PKG install
diff --git a/m4/m4-1.4.14-include_stat.patch b/m4/m4-1.4.14-include_stat.patch
new file mode 100644
index 00000000..6a8993d5
--- /dev/null
+++ b/m4/m4-1.4.14-include_stat.patch
@@ -0,0 +1,13 @@
+# http://article.gmane.org/gmane.comp.gnu.m4.patches/1214
+
+diff -Nru m4-1.4.14.orig/src/m4.h m4-1.4.14/src/m4.h
+--- m4-1.4.14.orig/src/m4.h 2010-08-06 08:46:39.299428640 +0000
++++ m4-1.4.14/src/m4.h 2010-08-06 08:47:02.695302376 +0000
+@@ -33,6 +33,7 @@
+ #include <stdint.h>
+ #include <string.h>
++#include <sys/stat.h>
+ #include <sys/types.h>
+
+ #include "binary-io.h"
+ #include "clean-temp.h"

Generated by cgit