ports/140389: shells/shell-include: syntax error in install script

Jilles Tjoelker jilles at stack.nl
Sun Nov 8 15:50:05 UTC 2009


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



More information about the freebsd-ports-bugs mailing list