From bc386f67b37f68d06f9ba7007013b23498942e6b Mon Sep 17 00:00:00 2001 From: Saul Wold Date: Tue, 17 May 2011 21:43:42 -0700 Subject: utils.bbclass: modify create_wrapper to correctly follow symlinks This ensures you look up the symbolic link to get the full path (From OE-Core rev: a10bd976f4cef54ac50b0c82f885c17a26e5989f) Signed-off-by: Saul Wold Signed-off-by: Richard Purdie --- meta/classes/utils.bbclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta/classes/utils.bbclass b/meta/classes/utils.bbclass index 1965d2f1b4..e103351e34 100644 --- a/meta/classes/utils.bbclass +++ b/meta/classes/utils.bbclass @@ -289,7 +289,8 @@ create_cmdline_wrapper () { cmdname=`basename $cmd`.real cat <$cmd #!/bin/sh -exec \`dirname \$0\`/$cmdname "\$@" +realpath=\`readlink -fn \$0\` +exec \`dirname \$realpath\`/$cmdname "\$@" END chmod +x $cmd } -- cgit v1.2.3-54-g00ecf