Skip site navigation (1)Skip section navigation (2)
Date:      Sun,  5 Mar 2006 09:46:36 +0100 (CET)
From:      Nicolas Rachinsky <nicolas-0@ml.turing-complete.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        nicolas-0@ml.turing-complete.org
Subject:   ports/94086: shells/bash uses wrong bison version of installed [PATCH]
Message-ID:  <20060305084636.D119181C33@pc5.i.0x5.de>
Resent-Message-ID: <200603050850.k258o5wh097202@freefall.freebsd.org>

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

>Number:         94086
>Category:       ports
>Synopsis:       shells/bash uses wrong bison version of installed [PATCH]
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 05 08:50:05 GMT 2006
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



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