From: Richard Purdie Date: Mon, 17 Jun 2013 14:57:03 +0000 (+0100) Subject: utils.bbclass: Tweak create_wrapper X-Git-Tag: rev_ivi_2015_02_04~12100 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3c0c9ee8fbcaa8b66e97aec9876a3f17919d5ad3;p=scm%2Fbb%2Ftizen-distro.git utils.bbclass: Tweak create_wrapper Currently the full path is specified to exec however this may incorporate a build path which in the nativesdk case, is not transformed to a target system path. This leads to failures due to incorrect paths. This patch ensures the full build path is not encoded into the wrapper script. (From OE-Core rev: 4569d7403638e4c1f637e3a6adb8dea620dc8543) Signed-off-by: Richard Purdie --- diff --git a/meta/classes/utils.bbclass b/meta/classes/utils.bbclass index cf8893f..e873c53 100644 --- a/meta/classes/utils.bbclass +++ b/meta/classes/utils.bbclass @@ -282,12 +282,12 @@ create_wrapper () { echo "Generating wrapper script for $cmd" mv $cmd $cmd.real - cmdname=`basename $cmd`.real + cmdname=`basename $cmd` cat <$cmd #!/bin/bash realpath=\`readlink -fn \$0\` export $@ -exec -a $cmd \`dirname \$realpath\`/$cmdname "\$@" +exec -a \`dirname \$realpath\`/$cmdname \`dirname \$realpath\`/$cmdname.real "\$@" END chmod +x $cmd }