From nicolas@i.0x5.de  Sun Mar  5 08:46:38 2006
Return-Path: <nicolas@i.0x5.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id C8D6D16A420
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  5 Mar 2006 08:46:38 +0000 (GMT)
	(envelope-from nicolas@i.0x5.de)
Received: from n.0x5.de (n.0x5.de [217.197.85.142])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 2AD6343D49
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  5 Mar 2006 08:46:38 +0000 (GMT)
	(envelope-from nicolas@i.0x5.de)
Received: by pc5.i.0x5.de (Postfix, from userid 1003)
	id D119181C33; Sun,  5 Mar 2006 09:46:36 +0100 (CET)
Message-Id: <20060305084636.D119181C33@pc5.i.0x5.de>
Date: Sun,  5 Mar 2006 09:46:36 +0100 (CET)
From: Nicolas Rachinsky <nicolas-0@ml.turing-complete.org>
Reply-To: Nicolas Rachinsky <nicolas-0@ml.turing-complete.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc: nicolas-0@ml.turing-complete.org
Subject: shells/bash uses wrong bison version of installed [PATCH]
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         94086
>Category:       ports
>Synopsis:       shells/bash uses wrong bison version of installed [PATCH]
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    obrien
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 05 08:50:05 GMT 2006
>Closed-Date:    Mon Mar 06 21:58:45 GMT 2006
>Last-Modified:  Tue Mar 07 17:48:28 GMT 2006
>Originator:     Nicolas Rachinsky
>Release:        FreeBSD 4.11-RELEASE-p14 i386
>Organization:
>Environment:
System: FreeBSD pc5.i.0x5.de 4.11-RELEASE-p14 FreeBSD 4.11-RELEASE-p14 #0: Fri Jan 13 12:29:14 CET 2006 n@pc5.i.0x5.de:/scratch/obj/usr/exported/src/sys/PC5 i386


	
>Description:
shells/bash uses bison-1.75_2,1 if it's installed, and generates a
broken parser, which does not handle 'for' loops without 'in'
correctly (and that breaks many configure scripts).

see:
http://groups.google.com/group/gnu.bash.bug/browse_thread/thread/ac7bea9475502718/fdecf54a92a0bc24
http://groups.google.com/group/gnu.bash.bug/browse_thread/thread/77a8eb7e51597df1/a05a71ae9627cb22
http://docs.freebsd.org/cgi/getmsg.cgi?fetch=1035500+0+current/freebsd-stable





>How-To-Repeat:

Install devel/bison and then shells/bash. Execute the following script
with some parameters.

t.sh:
#!/usr/local/bin/bash

echo X "$@"

for i
do
echo A $i
done
EOF



>Fix:


Index: Makefile
===================================================================
RCS file: /usr/cvs-freebsd/ports/shells/bash/Makefile,v
retrieving revision 1.88
diff -r1.88 Makefile
92c92,93
< 			LDFLAGS="${LDFLAGS}"
---
> 			LDFLAGS="${LDFLAGS}" \
> 			YACC="${YACC}"

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->obrien 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sun Mar 5 08:52:11 UTC 2006 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=94086 
State-Changed-From-To: open->closed 
State-Changed-By: kris 
State-Changed-When: Mon Mar 6 21:58:31 UTC 2006 
State-Changed-Why:  
Committed, thanks! 

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