From ccfd344782b170985e7f9dc277cddebddee001d2 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: 9215d23fd26c62d250749b8084a52f383cb16fba) 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 6bcaf86b05..1965d2f1b4 100644 --- a/meta/classes/utils.bbclass +++ b/meta/classes/utils.bbclass @@ -312,7 +312,8 @@ create_wrapper () { cmdname=`basename $cmd`.real cat <$cmd #!/bin/sh -exec env $@ \`dirname \$0\`/$cmdname "\$@" +realpath=\`readlink -fn \$0\` +exec env $@ \`dirname \$realpath\`/$cmdname "\$@" END chmod +x $cmd } -- cgit v1.2.3-54-g00ecf