From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Mar 5 08:50:08 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B19E516A420 for ; Sun, 5 Mar 2006 08:50:08 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0AFF043D6D for ; Sun, 5 Mar 2006 08:50:06 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k258o50Z097207 for ; Sun, 5 Mar 2006 08:50:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k258o5wh097202; Sun, 5 Mar 2006 08:50:05 GMT (envelope-from gnats) Resent-Date: Sun, 5 Mar 2006 08:50:05 GMT Resent-Message-Id: <200603050850.k258o5wh097202@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Nicolas Rachinsky Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C8D6D16A420 for ; 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 ; 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 To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: nicolas-0@ml.turing-complete.org Subject: ports/94086: shells/bash uses wrong bison version of installed [PATCH] X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Nicolas Rachinsky List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Mar 2006 08:50:08 -0000 >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: