From frerich@hex.athame.co.uk  Tue Aug  9 16:16:13 2005
Return-Path: <frerich@hex.athame.co.uk>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id D562416A41F
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  9 Aug 2005 16:16:13 +0000 (GMT)
	(envelope-from frerich@hex.athame.co.uk)
Received: from hex.athame.co.uk (salama58.adsl.netsonic.fi [81.17.207.58])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 65D7543D45
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  9 Aug 2005 16:16:13 +0000 (GMT)
	(envelope-from frerich@hex.athame.co.uk)
Received: from localhost.athame.co.uk ([127.0.0.1] helo=hex.athame.co.uk)
	by hex.athame.co.uk with esmtp (Exim 4.52 (FreeBSD))
	id 1E2Wlw-0001vg-01
	for FreeBSD-gnats-submit@freebsd.org; Tue, 09 Aug 2005 19:16:12 +0300
Received: (from frerich@localhost)
	by hex.athame.co.uk (8.13.3/8.13.1/Submit) id j79GGBVm007419;
	Tue, 9 Aug 2005 19:16:11 +0300 (EEST)
	(envelope-from frerich)
Message-Id: <200508091616.j79GGBVm007419@hex.athame.co.uk>
Date: Tue, 9 Aug 2005 19:16:11 +0300 (EEST)
From: Frerich Raabe <frerich@athame.co.uk>
Reply-To: Frerich Raabe <frerich@athame.co.uk>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Update port: devel/bison to version 2.0
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         84709
>Category:       ports
>Synopsis:       Update port: devel/bison to version 2.0
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    ade
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 09 16:20:19 GMT 2005
>Closed-Date:    Thu Nov 17 00:28:53 GMT 2005
>Last-Modified:  Thu Nov 17 00:28:53 GMT 2005
>Originator:     Frerich Raabe
>Release:        FreeBSD 5.4-RELEASE-p6 i386
>Organization:
>Environment:
System: FreeBSD hex.athame.co.uk 5.4-RELEASE-p6 FreeBSD 5.4-RELEASE-p6 #6: Tue Aug 2 14:05:03 EEST 2005 root@hex.athame.co.uk:/usr/obj/usr/src/sys/HEXSMP i386
>Description:
The accompanying patch attempts to update the devel/bison port so that it uses
the new bison 2.0 which was released in late 2004.
>How-To-Repeat:
>Fix:
diff -u /usr/ports/devel/bison/Makefile bison/Makefile
--- /usr/ports/devel/bison/Makefile	Mon May  2 15:40:56 2005
+++ bison/Makefile	Tue Aug  9 18:01:13 2005
@@ -6,8 +6,7 @@
 #
 
 PORTNAME=	bison
-PORTVERSION=	1.75
-PORTREVISION=	2
+PORTVERSION=	2.0
 CATEGORIES=	devel
 MASTER_SITES=	${MASTER_SITE_GNU}
 MASTER_SITE_SUBDIR=	${PORTNAME}
@@ -20,7 +19,7 @@
 
 CONFLICTS=	bison-1.8[0-9]*
 
-USE_BZIP2=	yes
+USE_GZIP=	yes
 GNU_CONFIGURE=	yes
 CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
 CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
diff -u /usr/ports/devel/bison/distinfo bison/distinfo
--- /usr/ports/devel/bison/distinfo	Thu Jan 29 07:22:55 2004
+++ bison/distinfo	Tue Aug  9 18:01:39 2005
@@ -1,2 +1,2 @@
-MD5 (bison-1.75.tar.bz2) = dd88fe42e35d554c00af430a9342456a
-SIZE (bison-1.75.tar.bz2) = 773106
+MD5 (bison-2.0.tar.gz) = c17f964fd5504b88b07a183420de25e3
+SIZE (bison-2.0.tar.gz) = 1163590
diff -u /usr/ports/devel/bison/pkg-plist bison/pkg-plist
--- /usr/ports/devel/bison/pkg-plist	Thu Dec 16 05:49:19 2004
+++ bison/pkg-plist	Tue Aug  9 18:11:07 2005
@@ -1,23 +1,31 @@
 @comment $FreeBSD: ports/devel/bison/pkg-plist,v 1.18 2004/12/16 05:49:19 kris Exp $
 bin/bison
+bin/yacc
+%%DATADIR%%/README
 %%DATADIR%%/c.m4
 %%DATADIR%%/glr.c
 %%DATADIR%%/lalr1.cc
 %%DATADIR%%/m4sugar/m4sugar.m4
-%%DATADIR%%/m4sugar/version.m4
 %%DATADIR%%/yacc.c
+%%NLS%%share/locale/da/LC_MESSAGES/bison.mo
 %%NLS%%share/locale/de/LC_MESSAGES/bison.mo
 %%NLS%%share/locale/es/LC_MESSAGES/bison.mo
 %%NLS%%share/locale/et/LC_MESSAGES/bison.mo
 %%NLS%%share/locale/fr/LC_MESSAGES/bison.mo
+%%NLS%%share/locale/ga/LC_MESSAGES/bison.mo
 %%NLS%%share/locale/hr/LC_MESSAGES/bison.mo
 %%NLS%%share/locale/id/LC_MESSAGES/bison.mo
 %%NLS%%share/locale/it/LC_MESSAGES/bison.mo
 %%NLS%%share/locale/ja/LC_MESSAGES/bison.mo
+%%NLS%%share/locale/ms/LC_MESSAGES/bison.mo
+%%NLS%%share/locale/nb/LC_MESSAGES/bison.mo
 %%NLS%%share/locale/nl/LC_MESSAGES/bison.mo
+%%NLS%%share/locale/pl/LC_MESSAGES/bison.mo
 %%NLS%%share/locale/pt_BR/LC_MESSAGES/bison.mo
+%%NLS%%share/locale/ro/LC_MESSAGES/bison.mo
 %%NLS%%share/locale/ru/LC_MESSAGES/bison.mo
 %%NLS%%share/locale/sv/LC_MESSAGES/bison.mo
 %%NLS%%share/locale/tr/LC_MESSAGES/bison.mo
+lib/liby.a
 @dirrm %%DATADIR%%/m4sugar
 @dirrm %%DATADIR%%
>Release-Note:
>Audit-Trail:

From: Pav Lucistnik <pav@FreeBSD.org>
To: frerich@athame.co.uk, bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/84709: Update port: devel/bison to version 2.0
Date: Tue, 09 Aug 2005 22:54:47 +0200

 I just wonder, is bison-2.0 100% compatible with 1.75?
 
 Because we already got 1.875 and 1.875d in separate ports, which are not
 compatible with 1.75...
 
 -- 
 Pav Lucistnik <pav@oook.cz>
               <pav@FreeBSD.org>
 

From: Frerich Raabe <frerich@hex.athame.co.uk>
To: pav@freebsd.org
Cc: bug-followup@freebsd.org
Subject: Re: ports/84709: Update port: devel/bison to version 2.0
Date: Wed, 10 Aug 2005 00:08:38 +0300

 Moin,
 
 	here's an excerpt of the NEWS file:
 
 --- cut here ---
 
 * Possibly-incompatible changes
 
   - Bison-generated parsers no longer default to using the alloca function
     (when available) to extend the parser stack, due to widespread
     problems in unchecked stack-overflow detection.  You can "#define
     YYSTACK_USE_ALLOCA 1" to require the use of alloca, but please read
     the manual to determine safe values for YYMAXDEPTH in that case.
 
   - Error token location.
     During error recovery, the location of the syntax error is updated
     to cover the whole sequence covered by the error token: it includes
     the shifted symbols thrown away during the first part of the error
     recovery, and the lookahead rejected during the second part.
 
   - Semicolon changes:
     . Stray semicolons are no longer allowed at the start of a grammar.
     . Semicolons are now required after in-grammar declarations.
 
   - Unescaped newlines are no longer allowed in character constants or
     string literals.  They were never portable, and GCC 3.4.0 has
     dropped support for them.  Better diagnostics are now generated if
     forget a closing quote.
 
   - NUL bytes are no longer allowed in Bison string literals, unfortunately.
 
 --- cut here ---
 
 I don't know how many bison grammars that affects, and I don't see how you
 could tell unless you just go and try it out (and back out in case too many
 things break).
 
 - Frerich
 
Responsible-Changed-From-To: freebsd-ports-bugs->pav 
Responsible-Changed-By: pav 
Responsible-Changed-When: Wed Aug 10 07:22:58 GMT 2005 
Responsible-Changed-Why:  
Poking.. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=84709 

From: Pav Lucistnik <pav@FreeBSD.org>
To: Frerich Raabe <frerich@hex.athame.co.uk>
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/84709: Update port: devel/bison to version 2.0
Date: Wed, 10 Aug 2005 09:23:18 +0200

 --=-bkzWvSQ6T0sgIaohQM4r
 Content-Type: text/plain; charset=ISO8859-2
 Content-Transfer-Encoding: quoted-printable
 
 Frerich Raabe p=ED=B9e v st 10. 08. 2005 v 00:08 +0300:
 
 > I don't know how many bison grammars that affects, and I don't see how yo=
 u
 > could tell unless you just go and try it out (and back out in case too ma=
 ny
 > things break).
 
 There is 165 ports using bison, so breakage can be huge.
 
 I'll try to build them and see if they break.
 
 --=20
 Pav Lucistnik <pav@oook.cz>
               <pav@FreeBSD.org>
 
 - Hocumms Razor states that the most obvious, though possible not conceviab=
 le,
   answer to a problem is most likely the correct one.
 - unless you are playing zelda.
 
 --=-bkzWvSQ6T0sgIaohQM4r
 Content-Type: application/pgp-signature; name=signature.asc
 Content-Description: This is a digitally signed message part
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.2 (FreeBSD)
 
 iD8DBQBC+atmntdYP8FOsoIRAja3AJwN6YWUkmjXifsSq5bZqDYT305W+ACeMme/
 PG13w4L3aIbWzqRbQ7S+6E0=
 =IpgT
 -----END PGP SIGNATURE-----
 
 --=-bkzWvSQ6T0sgIaohQM4r--
State-Changed-From-To: open->feedback 
State-Changed-By: pav 
State-Changed-When: Thu Aug 11 13:16:23 GMT 2005 
State-Changed-Why:  
I compiled all the bison using ports, and found single breakage. That's quite 
good, I think. It's security/bro port which fails with: 

bison -y -d -t -v parse.y 
conflicts: 10 shift/reduce 
c++ -I. -Ilibedit -O -O -pipe  -c parse.cc 
y.tab.c: In function `int yyparse()': 
y.tab.c:1894: error: invalid types `int[int]' for array subscript 
y.tab.c:3491: error: invalid types `int[int]' for array subscript 
*** Error code 1 

Can you fix this? 

Alternatively, we can introduce a new port, devel/bison175, for this port and 
for other possibly failing ports, and update devel/bison to 2.0 using your 
patch. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=84709 
State-Changed-From-To: feedback->repocopy 
State-Changed-By: pav 
State-Changed-When: Mon Aug 29 23:13:26 GMT 2005 
State-Changed-Why:  
Repocopy devel/bison to devel/bison175. 
I'd like to update devel/bison to 2.0, I tested all ports and found single 
point of failure, which will be set to use old version in devel/bison175. 


Responsible-Changed-From-To: pav->portmgr 
Responsible-Changed-By: pav 
Responsible-Changed-When: Mon Aug 29 23:13:26 GMT 2005 
Responsible-Changed-Why:  
Thank you 

http://www.freebsd.org/cgi/query-pr.cgi?pr=84709 
State-Changed-From-To: repocopy->open 
State-Changed-By: marcus 
State-Changed-When: Fri Sep 2 05:04:43 GMT 2005 
State-Changed-Why:  
Repocopy completed. 


Responsible-Changed-From-To: portmgr->pav 
Responsible-Changed-By: marcus 
Responsible-Changed-When: Fri Sep 2 05:04:43 GMT 2005 
Responsible-Changed-Why:  
Repocopy completed. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=84709 
State-Changed-From-To: open->closed 
State-Changed-By: pav 
State-Changed-When: Fri Sep 2 08:02:12 GMT 2005 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=84709 
State-Changed-From-To: closed->open 
State-Changed-By: pav 
State-Changed-When: Sun Sep 4 10:46:08 GMT 2005 
State-Changed-Why:  
Reoped; Ade Lovett requested removal of 2.0 from ports tree 

http://www.freebsd.org/cgi/query-pr.cgi?pr=84709 
Responsible-Changed-From-To: pav->ade 
Responsible-Changed-By: pav 
Responsible-Changed-When: Sun Sep 4 10:46:30 GMT 2005 
Responsible-Changed-Why:  
Over to volunteer who offered to handle the update properly 

http://www.freebsd.org/cgi/query-pr.cgi?pr=84709 
State-Changed-From-To: open->closed 
State-Changed-By: ade 
State-Changed-When: Thu Nov 17 00:28:12 GMT 2005 
State-Changed-Why:  
Bison 2.1 now in the tree as devel/bison2 -- time for the fun 
conversion process from 1.x to 2.x 

http://www.freebsd.org/cgi/query-pr.cgi?pr=84709 
>Unformatted:
