mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
Updated bison to 2.5
This commit is contained in:
29
sys-devel/bison/bison-2.5.bep
Normal file
29
sys-devel/bison/bison-2.5.bep
Normal 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."
|
||||
29
sys-devel/bison/patches/bison-2.5.patch
Normal file
29
sys-devel/bison/patches/bison-2.5.patch
Normal 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)
|
||||
Reference in New Issue
Block a user