* [PATCH] utils.bbclass: Tweak create_wrapper
@ 2013-06-17 14:57 Richard Purdie
2013-06-17 15:02 ` Burton, Ross
0 siblings, 1 reply; 2+ messages in thread
From: Richard Purdie @ 2013-06-17 14:57 UTC (permalink / raw)
To: openembedded-core
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.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
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 <<END >$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
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] utils.bbclass: Tweak create_wrapper
2013-06-17 14:57 [PATCH] utils.bbclass: Tweak create_wrapper Richard Purdie
@ 2013-06-17 15:02 ` Burton, Ross
0 siblings, 0 replies; 2+ messages in thread
From: Burton, Ross @ 2013-06-17 15:02 UTC (permalink / raw)
To: Richard Purdie; +Cc: openembedded-core
On 17 June 2013 15:57, Richard Purdie
<richard.purdie@linuxfoundation.org> wrote:
> 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.
>
> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-06-17 15:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-17 14:57 [PATCH] utils.bbclass: Tweak create_wrapper Richard Purdie
2013-06-17 15:02 ` Burton, Ross
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox