From stefan@fafoe.dyndns.org  Fri Dec 20 16:44:19 2002
Return-Path: <stefan@fafoe.dyndns.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 2F7A537B401
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 20 Dec 2002 16:44:19 -0800 (PST)
Received: from fafoe.dyndns.org (chello212186121237.14.vie.surfer.at [212.186.121.237])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 6A7F343EDE
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 20 Dec 2002 16:44:18 -0800 (PST)
	(envelope-from stefan@fafoe.dyndns.org)
Received: from frog.fafoe (frog.fafoe [192.168.2.101])
	by fafoe.dyndns.org (Postfix) with ESMTP
	id D56D43F9A; Sat, 21 Dec 2002 01:44:06 +0100 (CET)
Received: by frog.fafoe (Postfix, from userid 1001)
	id 34153866; Sat, 21 Dec 2002 01:44:06 +0100 (CET)
Message-Id: <20021221004406.34153866@frog.fafoe>
Date: Sat, 21 Dec 2002 01:44:06 +0100 (CET)
From: Stefan Farfeleder <stefan@fafoe.dyndns.org>
Reply-To: Stefan Farfeleder <stefan@fafoe.dyndns.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc: stefan@fafoe.dyndns.org
Subject: [patch] fix devel/mingw-binutils when bison is installed
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         46412
>Category:       ports
>Synopsis:       [patch] fix devel/mingw-binutils when bison is installed
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lioux
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 20 16:50:01 PST 2002
>Closed-Date:    Mon Dec 23 03:23:12 PST 2002
>Last-Modified:  Mon Dec 23 03:23:12 PST 2002
>Originator:     Stefan Farfeleder
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD frog.fafoe 5.0-CURRENT FreeBSD 5.0-CURRENT #8: Fri Dec 20 01:53:06 CET 2002 freebsd@frog.fafoe:/freebsd/current/obj/freebsd/current/src/sys/FROG i386


	
>Description:
If devel/bison is installed, this port will use it instead of the system yacc
but fails to build because in two grammars there is a ';' missing each (which
doesn't bother yacc).
	
>How-To-Repeat:
$ bison -V
bison (GNU Bison) 1.75
...
$ cd ports/devel/mingw-binutils && make
...
/bin/sh ./../ylwrap "bison -y" arparse.y y.tab.c arparse.c y.tab.h arparse.h --  -d
arparse.y:78.8: parse error, unexpected ":", expecting ";" or "|"
gmake[3]: *** [arparse.c] Error 1

After fixing arparse.y, the same will happen with ldgram.y.
	
>Fix:
[ I also tried to set CONFIGURE_ENV= YACC=yacc but that doesn't help. ]
	

--- patch-binutils::arparse.y begins here ---
--- binutils/arparse.y.orig	Sat Dec 21 00:54:35 2002
+++ binutils/arparse.y	Sat Dec 21 00:57:03 2002
@@ -74,6 +74,7 @@
 
 command_line:
 		command NEWLINE { prompt(); }
+	;
 
 command:
 		open_command	
--- patch-binutils::arparse.y ends here ---

--- patch-ld::ldgram.y begins here ---
--- ld/ldgram.y.orig	Sat Dec 21 00:58:41 2002
+++ ld/ldgram.y	Sat Dec 21 00:58:57 2002
@@ -170,6 +170,7 @@
 		  ldlex_popstate();
 		  lang_add_assignment(exp_assop($3,$2,$4));
 		}
+	;
 
 /* SYNTAX WITHIN AN MRI SCRIPT FILE */  
 mri_script_file:
--- patch-ld::ldgram.y ends here ---
>Release-Note:
>Audit-Trail:

From: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
To: Stefan Farfeleder <stefan@fafoe.dyndns.org>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: ports/46412: [patch] fix devel/mingw-binutils when bison is installed
Date: Fri, 20 Dec 2002 23:20:44 -0200

 	Is it possible to just patch it to no longer use bison?
 That would be neat. :) Or, do you think that some ppl will prefer
 bison for some reason?
 
 -- 
 Mario S F Ferreira - DF - Brazil - "I guess this is a signature."
 Computer Science Undergraduate | FreeBSD Committer | CS Developer
 flames to beloved devnull@someotherworldbeloworabove.org
 feature, n: a documented bug | bug, n: an undocumented feature

From: Stefan Farfeleder <stefan@fafoe.dyndns.org>
To: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: ports/46412: [patch] fix devel/mingw-binutils when bison is installed
Date: Sat, 21 Dec 2002 03:10:07 +0100

 --gKMricLos+KVdGMg
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 On Fri, Dec 20, 2002 at 11:20:44PM -0200, Mario Sergio Fujikawa Ferreira wrote:
 > 	Is it possible to just patch it to no longer use bison?
 > That would be neat. :)
 
 Ok, attached is a patch that causes DEFAULT_YACC to be set to 'byacc'.
 
 > Or, do you think that some ppl will prefer
 > bison for some reason?
 
 No.
 
 Regards,
 Stefan Farfeleder
 
 --gKMricLos+KVdGMg
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename=patch-configure
 
 --- configure.orig	Sat Dec 21 02:57:02 2002
 +++ configure	Sat Dec 21 02:57:19 2002
 @@ -848,7 +848,7 @@
  # Generate a default definition for YACC.  This is used if the makefile can't
  # locate bison or byacc in objdir.
  
 -for prog in 'bison -y' byacc yacc
 +for prog in byacc yacc
  do
    set dummy $prog; tmp=$2
    IFS="${IFS= 	}"; save_ifs="$IFS"; IFS="${IFS}:"
 
 --gKMricLos+KVdGMg--
Responsible-Changed-From-To: freebsd-ports->lioux 
Responsible-Changed-By: lioux 
Responsible-Changed-When: Fri Dec 20 18:43:21 PST 2002 
Responsible-Changed-Why:  
I will handle this 

http://www.freebsd.org/cgi/query-pr.cgi?pr=46412 
State-Changed-From-To: open->closed 
State-Changed-By: lioux 
State-Changed-When: Mon Dec 23 03:23:11 PST 2002 
State-Changed-Why:  
Committed, thanks! 

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