From 30f06669b7c9b49e46f3b68d433aef70307b8bdb Mon Sep 17 00:00:00 2001 From: tnn Date: Tue, 11 Mar 2008 02:18:22 +0000 Subject: MIPSPro doesn't like code such as: void foo(void) {} void bar(void) { return foo(); } Stripping away the return makes it happy. PR pkg/38210. --- textproc/grep/distinfo | 3 ++- textproc/grep/patches/patch-aa | 26 ++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 textproc/grep/patches/patch-aa (limited to 'textproc/grep') diff --git a/textproc/grep/distinfo b/textproc/grep/distinfo index 2f2bd30f3fe..d63e8cbe1f7 100644 --- a/textproc/grep/distinfo +++ b/textproc/grep/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.8 2008/03/08 12:16:43 tnn Exp $ +$NetBSD: distinfo,v 1.9 2008/03/11 02:18:22 tnn Exp $ SHA1 (grep-2.5.3.tar.bz2) = 53227ca9a01d5548448372f9b2e9111adf159f3b RMD160 (grep-2.5.3.tar.bz2) = dafa692fd67dfcd1c94115e9831d291b29fa7729 Size (grep-2.5.3.tar.bz2) = 618184 bytes +SHA1 (patch-aa) = 4b25015c920849a3fd5bd13a544eb87029223d36 diff --git a/textproc/grep/patches/patch-aa b/textproc/grep/patches/patch-aa new file mode 100644 index 00000000000..d062bf33804 --- /dev/null +++ b/textproc/grep/patches/patch-aa @@ -0,0 +1,26 @@ +$NetBSD: patch-aa,v 1.5 2008/03/11 02:18:22 tnn Exp $ + +--- src/search.c.orig 2007-06-28 20:57:19.000000000 +0200 ++++ src/search.c +@@ -280,18 +280,18 @@ GEAcompile (char const *pattern, size_t + #ifndef EGREP_PROGRAM + COMPILE_FCT(Gcompile) + { +- return GEAcompile (pattern, size, ++ GEAcompile (pattern, size, + RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE); + } + + COMPILE_FCT(Acompile) + { +- return GEAcompile (pattern, size, RE_SYNTAX_AWK); ++ GEAcompile (pattern, size, RE_SYNTAX_AWK); + } + + COMPILE_FCT(Ecompile) + { +- return GEAcompile (pattern, size, RE_SYNTAX_POSIX_EGREP); ++ GEAcompile (pattern, size, RE_SYNTAX_POSIX_EGREP); + } + #endif /* !EGREP_PROGRAM */ + -- cgit v1.2.3