From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Nov 8 15:50:04 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CC5C81065695 for ; Sun, 8 Nov 2009 15:50:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 8F4A78FC26 for ; Sun, 8 Nov 2009 15:50:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id nA8Fo4Ba046012 for ; Sun, 8 Nov 2009 15:50:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id nA8Fo4o9046011; Sun, 8 Nov 2009 15:50:04 GMT (envelope-from gnats) Resent-Date: Sun, 8 Nov 2009 15:50:04 GMT Resent-Message-Id: <200911081550.nA8Fo4o9046011@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, Jilles Tjoelker Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 001E3106566B for ; Sun, 8 Nov 2009 15:47:27 +0000 (UTC) (envelope-from jilles@stack.nl) Received: from mx1.stack.nl (relay02.stack.nl [IPv6:2001:610:1108:5010::104]) by mx1.freebsd.org (Postfix) with ESMTP id BC99B8FC19 for ; Sun, 8 Nov 2009 15:47:27 +0000 (UTC) Received: from snail.stack.nl (snail.stack.nl [IPv6:2001:610:1108:5010::131]) by mx1.stack.nl (Postfix) with ESMTP id F1CEA35A83A for ; Sun, 8 Nov 2009 16:47:26 +0100 (CET) Received: by snail.stack.nl (Postfix, from userid 1677) id DE063228CF; Sun, 8 Nov 2009 16:47:26 +0100 (CET) Message-Id: <20091108154726.DE063228CF@snail.stack.nl> Date: Sun, 8 Nov 2009 16:47:26 +0100 (CET) From: Jilles Tjoelker To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/140389: shells/shell-include: syntax error in install script X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Jilles Tjoelker List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Nov 2009 15:50:05 -0000 >Number: 140389 >Category: ports >Synopsis: shells/shell-include: syntax error in install script >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Nov 08 15:50:03 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Jilles Tjoelker >Release: FreeBSD 9.0-CURRENT i386 >Organization: MCGV Stack >Environment: /bin/sh r197691 or newer >Description: Due to a change in /bin/sh a mismatched single quote inside backticks (`...`) now causes installation to fail. >How-To-Repeat: Try to build and install the port using /bin/sh with r197691 change in it. >Fix: Add this patch as files/patch-install It would be better to fix this upstream. --- shells-shell-include-install-syntaxfix.patch begins here --- --- install.old 2007-04-19 17:55:22.000000000 +0200 +++ install 2009-10-30 20:34:44.000000000 +0100 @@ -119,7 +119,7 @@ while /bin/[ $binInstallCL -le $binInstallNOL ]; do binInstallLine=`getline $binInstallTMPfile $binInstallCL` - /bin/cat "./bin/$binInstallLine" | /usr/bin/sed "s/%%PREFIX%%/"`echo $1 | sed 's/\\//\\\\\//g''`"/g" > "$1/bin/$binInstallLine" + /bin/cat "./bin/$binInstallLine" | /usr/bin/sed "s/%%PREFIX%%/"`echo $1 | sed 's/\\//\\\\\//g'`"/g" > "$1/bin/$binInstallLine" /bin/chmod 755 "$1/bin/$binInstallLine" @@ -150,7 +150,7 @@ chmod 755 "$1/$includeInstallLine" fi else - cat "$includeInstallLine" | /usr/bin/sed "s/%%PREFIX%%/"`echo $1 | sed 's/\\//\\\\\//g''`"/g" > "$1/$includeInstallLine" + cat "$includeInstallLine" | /usr/bin/sed "s/%%PREFIX%%/"`echo $1 | sed 's/\\//\\\\\//g'`"/g" > "$1/$includeInstallLine" /bin/chmod 644 "$1/$includeInstallLine" fi --- shells-shell-include-install-syntaxfix.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: