aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-19 21:52:10 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-26 10:43:38 +0100
commit915769c405e24751eae613e9ef55f05490a726de (patch)
treeb6a5a1002ce7f4439a1d1d1f3cd106d1ea8b00ba
parent6689c52eb13430593d6afe48dba3973467cd2404 (diff)
downloadopenembedded-core-contrib-915769c405e24751eae613e9ef55f05490a726de.tar.gz
utils.bbclass: Testing via env in create_wrapper is a nice idea but breaks things
For example, pseudo-native wants to set LD_LIBRBARY_PATH but setting this into the environment here causes the existing pseudo (running during do_install) to poke into paths in /opt and this breaks builds. The simplest fix is simply not to do this. Comments tweaks to match the code. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/utils.bbclass4
1 files changed, 1 insertions, 3 deletions
diff --git a/meta/classes/utils.bbclass b/meta/classes/utils.bbclass
index 3b5946308c..fde8f446ad 100644
--- a/meta/classes/utils.bbclass
+++ b/meta/classes/utils.bbclass
@@ -282,7 +282,6 @@ create_cmdline_wrapper () {
cmd=$1
shift
- # run echo via env to test syntactic validity of the variable arguments
echo "Generating wrapper script for $cmd"
mv $cmd $cmd.real
@@ -306,8 +305,7 @@ create_wrapper () {
cmd=$1
shift
- # run echo via env to test syntactic validity of the variable arguments
- env $@ echo "Generating wrapper script for $cmd"
+ echo "Generating wrapper script for $cmd"
mv $cmd $cmd.real
cmdname=`basename $cmd`.real