Patching the latest gnum4 so it builds with glibc 2.12.1

svn path=/nixpkgs/branches/stdenv-updates/; revision=23306
This commit is contained in:
Lluís Batlle i Rossell 2010-08-21 13:03:36 +00:00
parent 221317ae7b
commit ff0b54e26e
2 changed files with 17 additions and 0 deletions

View File

@ -10,6 +10,9 @@ stdenv.mkDerivation {
doCheck = !stdenv.isDarwin;
# Upstream is aware of it; it may be in the next release.
patches = [ ./s_isdir.patch ];
meta = {
homepage = http://www.gnu.org/software/m4/;
description = "GNU M4, a macro processor";

View File

@ -0,0 +1,14 @@
Fails to build with glibc 2.12.1 without this patch.
http://lists.gnu.org/archive/html/bug-m4/2010-05/msg00002.html
--- a/src/path.c
+++ b/src/path.c
@@ -22,6 +22,7 @@
/* Handling of path search of included files via the builtins "include"
and "sinclude". */
#include "m4.h"
+#include "sys/stat.h"
struct includes