Initial checkin of .bep files for bison. Moved patches to patches folder, so that haikuporter works correctly

This commit is contained in:
Scott McCreary
2009-10-12 19:51:24 +00:00
parent bc01e05dd2
commit ee60ff9637
4 changed files with 63 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
DESCRIPTION="bison - A yacc-compatible parser generator"
HOMEPAGE="http://www.gnu.org/software/bison/bison.html"
SRC_URI="http://ftp.gnu.org/gnu/bison/bison-2.4.1.tar.gz"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
BUILD {
cd bison-2.4.1
./configure --prefix=/boot/common --disable-nls
make
}
INSTALL {
cd bison-2.4.1
make install
make check
}

View File

@@ -0,0 +1,17 @@
DESCRIPTION="bison - A yacc-compatible parser generator"
HOMEPAGE="http://www.gnu.org/software/bison/bison.html"
SRC_URI="http://ftp.gnu.org/gnu/bison/bison-2.4.tar.gz"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
BUILD {
cd bison-2.4
./configure --prefix=/boot/common --disable-nls
make
}
INSTALL {
cd bison-2.4
make install
make check
}

View File

@@ -0,0 +1,29 @@
diff -ur bison-2.4.1.orig/src/location.c bison-2.4.1/src/location.c
--- bison-2.4.1.orig/src/location.c 2008-08-17 06:15:28.000000000 +0000
+++ bison-2.4.1/src/location.c 2008-11-09 15:03:06.000000000 +0000
@@ -121,11 +121,11 @@
/* Must search in reverse since the file name field may
* contain `.' or `:'. */
char *delim = strrchr (loc_str, '.');
- aver (delim);
+ aver (delim != NULL);
*delim = '\0';
bound->column = atoi (delim+1);
delim = strrchr (loc_str, ':');
- aver (delim);
+ aver (delim != NULL);
*delim = '\0';
bound->line = atoi (delim+1);
bound->file = uniqstr_new (loc_str);
diff -ur bison-2.4.1.orig/src/muscle_tab.c bison-2.4.1/src/muscle_tab.c
--- bison-2.4.1.orig/src/muscle_tab.c 2008-08-17 06:15:28.000000000 +0000
+++ bison-2.4.1/src/muscle_tab.c 2008-11-09 15:11:17.000000000 +0000
@@ -336,7 +336,7 @@
{
location loc;
char const *value = muscle_find_const (key);
- aver (value);
+ aver (value != NULL);
aver (*value == '[');
aver (*++value == '[');
while (*++value)