ports/94086: shells/bash uses wrong bison version of installed [PATCH]

Nicolas Rachinsky nicolas-0 at ml.turing-complete.org
Sun Mar 5 08:50:08 UTC 2006


>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 at 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:



More information about the freebsd-ports-bugs mailing list