Date: Sun, 8 Nov 2009 16:49:04 +0100 (CET) From: Jilles Tjoelker <jilles@stack.nl> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/140390: dns/ldnsm: syntax error in install script Message-ID: <20091108154904.4B07C228CF@snail.stack.nl> Resent-Message-ID: <200911081550.nA8Fo40p046020@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 140390 >Category: ports >Synopsis: dns/ldnsm: 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:04 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. --- dns-ldnsm-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 --- dns-ldnsm-install-syntaxfix.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091108154904.4B07C228CF>