From f60b2fc8d40b963f03205db00da6bfa3a8595e89 Mon Sep 17 00:00:00 2001 From: Juergen Daubert Date: Fri, 6 Aug 2010 13:12:38 +0200 Subject: [PATCH] m4: include stat.h to build with glibc 2.12 See http://article.gmane.org/gmane.comp.gnu.m4.patches/1214 --- m4/.md5sum | 1 + m4/Pkgfile | 6 ++++-- m4/m4-1.4.14-include_stat.patch | 13 +++++++++++++ 3 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 m4/m4-1.4.14-include_stat.patch 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 + #include ++#include + #include + + #include "binary-io.h" + #include "clean-temp.h"