Making gnugrep cross-build for mips
svn path=/nixpkgs/branches/stdenv-updates/; revision=22847
This commit is contained in:
parent
fbad1b3a56
commit
2954596106
|
@ -5,6 +5,8 @@ let version = "2.6.3"; in
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "gnugrep-${version}";
|
name = "gnugrep-${version}";
|
||||||
|
|
||||||
|
patches = [ ./malloc.patch ];
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnu/grep/grep-${version}.tar.gz";
|
url = "mirror://gnu/grep/grep-${version}.tar.gz";
|
||||||
sha256 = "0rnnljzcpb2sl5zabww7gbzk9r6kp8kycsqrf909d6jdak8yah53";
|
sha256 = "0rnnljzcpb2sl5zabww7gbzk9r6kp8kycsqrf909d6jdak8yah53";
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
http://www.mail-archive.com/bug-grep@gnu.org/msg02537.html
|
||||||
|
|
||||||
|
diff --git a/src/kwset.c b/src/kwset.c
|
||||||
|
index 050562e..995be79 100644
|
||||||
|
--- a/src/kwset.c
|
||||||
|
+++ b/src/kwset.c
|
||||||
|
@@ -40,7 +40,7 @@
|
||||||
|
#ifdef GREP
|
||||||
|
# include "xalloc.h"
|
||||||
|
# undef malloc
|
||||||
|
-# define malloc(s) xmalloc(s)
|
||||||
|
+# define malloc xmalloc
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define NCHAR (UCHAR_MAX + 1)
|
Loading…
Reference in New Issue