Tue Mar 11 02:18:22 2008 UTC ()
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.
(tnn)
diff -r1.8 -r1.9 pkgsrc/textproc/grep/distinfo
diff -r0 -r1.5 pkgsrc/textproc/grep/patches/patch-aa
--- pkgsrc/textproc/grep/distinfo 2008/03/08 12:16:43 1.8
+++ pkgsrc/textproc/grep/distinfo 2008/03/11 02:18:22 1.9
| @@ -1,5 +1,6 @@ | | | @@ -1,5 +1,6 @@ |
1 | $NetBSD: distinfo,v 1.8 2008/03/08 12:16:43 tnn Exp $ | | 1 | $NetBSD: distinfo,v 1.9 2008/03/11 02:18:22 tnn Exp $ |
2 | | | 2 | |
3 | SHA1 (grep-2.5.3.tar.bz2) = 53227ca9a01d5548448372f9b2e9111adf159f3b | | 3 | SHA1 (grep-2.5.3.tar.bz2) = 53227ca9a01d5548448372f9b2e9111adf159f3b |
4 | RMD160 (grep-2.5.3.tar.bz2) = dafa692fd67dfcd1c94115e9831d291b29fa7729 | | 4 | RMD160 (grep-2.5.3.tar.bz2) = dafa692fd67dfcd1c94115e9831d291b29fa7729 |
5 | Size (grep-2.5.3.tar.bz2) = 618184 bytes | | 5 | Size (grep-2.5.3.tar.bz2) = 618184 bytes |
| | | 6 | SHA1 (patch-aa) = 4b25015c920849a3fd5bd13a544eb87029223d36 |
$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 */