Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Dec 2002 01:44:06 +0100 (CET)
From:      Stefan Farfeleder <stefan@fafoe.dyndns.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        stefan@fafoe.dyndns.org
Subject:   ports/46412: [patch] fix devel/mingw-binutils when bison is installed
Message-ID:  <20021221004406.34153866@frog.fafoe>

next in thread | raw e-mail | index | archive | help

>Number:         46412
>Category:       ports
>Synopsis:       [patch] fix devel/mingw-binutils when bison is installed
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 20 16:50:01 PST 2002
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021221004406.34153866>