Add patch for grep-2.6.1 and fix bep so that it gets proper version source file.

This commit is contained in:
Scott McCreary
2013-02-17 21:42:18 +00:00
parent e90f0c12c3
commit a3f5db9ff7
2 changed files with 25 additions and 5 deletions

View File

@@ -1,24 +1,24 @@
DESCRIPTION="GNU regular expression matcher"
HOMEPAGE="http://www.gnu.org/software/grep/"
SRC_URI="http://ftp.gnu.org/gnu/grep/grep-2.6.3.tar.gz"
CHECKSUM_MD5="3095b57837b312f087c0680559de7f13"
SRC_URI="http://ftp.gnu.org/gnu/grep/grep-2.6.1.tar.gz"
CHECKSUM_MD5="8d1496da11029112a4d0986cbf09e26f"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
BUILD {
cd grep-2.6.3
cd grep-2.6.1
libtoolize --force --copy --install
./configure --prefix=`finddir B_COMMON_DIRECTORY`
make
}
INSTALL {
cd grep-2.6.3
cd grep-2.6.1
make install
}
TEST {
cd grep-2.6.3
cd grep-2.6.1
make check
}

View File

@@ -0,0 +1,20 @@
diff -urN grep-2.6.1/src/dfa.c grep-2.6.1-haiku/src/dfa.c
--- grep-2.6.1/src/dfa.c 2010-03-25 06:28:54.056098816 -0700
+++ grep-2.6.1-haiku/src/dfa.c 2013-02-17 13:32:51.217055232 -0800
@@ -2775,6 +2775,7 @@
unsigned char eol = eolbyte; /* Likewise for eolbyte. */
static int sbit[NOTCHAR]; /* Table for anding with d->success. */
static int sbit_init;
+ unsigned char saved_end;
if (! sbit_init)
{
@@ -2792,7 +2793,7 @@
s = s1 = 0;
p = (unsigned char const *) begin;
trans = d->trans;
- unsigned char saved_end = *(unsigned char *) end;
+ saved_end = *(unsigned char *) end;
*end = eol;
#ifdef MBS_SUPPORT