]> code.ossystems Code Review - openembedded-core.git/commitdiff
utils.bbclass: Testing via env in create_wrapper is a nice idea but breaks things
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 19 Apr 2012 21:52:10 +0000 (21:52 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 24 Apr 2012 14:51:37 +0000 (15:51 +0100)
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>
meta/classes/utils.bbclass

index 3b5946308cfd0386c8f09eaecb0a7bbe0d29d1d5..fde8f446adb1bd5fe5181e3f3b89c75ed15d1696 100644 (file)
@@ -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