Updated bison to 2.5

This commit is contained in:
Scott McCreary
2012-06-01 19:42:33 +00:00
parent 54be865bb1
commit 5d3d24ece5
2 changed files with 58 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
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.5.tar.gz"
CHECKSUM_MD5="687e1dcd29452789d34eaeea4c25abe4"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
BUILD {
cd bison-2.5
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
--datadir=`finddir B_COMMON_DATA_DIRECTORY` \
--infodir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/info \
--mandir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man \
--disable-nls
make
}
INSTALL {
cd bison-2.5
make install
}
TEST {
cd bison-2.5
make check
}
LICENSE="GNU GPL v3"
COPYRIGHT="1992-2011 Free Software Foundation, Inc."

View File

@@ -0,0 +1,29 @@
diff -urN bison-2.5/src/location.c bison-2.5-haiku/src/location.c
--- bison-2.5/src/location.c 2011-05-01 22:17:32.046137344 +0000
+++ bison-2.5-haiku/src/location.c 2012-06-01 18:19:15.538443776 +0000
@@ -144,11 +144,11 @@
/* Must search in reverse since the file name field may
* contain `.' or `:'. */
char *delim = mbsrchr (loc_str, '.');
- aver (delim);
+ aver (delim != NULL);
*delim = '\0';
bound->column = atoi (delim+1);
delim = mbsrchr (loc_str, ':');
- aver (delim);
+ aver (delim != NULL);
*delim = '\0';
bound->line = atoi (delim+1);
bound->file = uniqstr_new (loc_str);
diff -urN bison-2.5/src/muscle-tab.c bison-2.5-haiku/src/muscle-tab.c
--- bison-2.5/src/muscle-tab.c 2011-05-14 22:17:12.043253760 +0000
+++ bison-2.5-haiku/src/muscle-tab.c 2012-06-01 18:16:05.827326464 +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)