mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 00:39:46 +00:00
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. (From OE-Core rev: 915769c405e24751eae613e9ef55f05490a726de) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -282,7 +282,6 @@ create_cmdline_wrapper () {
|
|||||||
cmd=$1
|
cmd=$1
|
||||||
shift
|
shift
|
||||||
|
|
||||||
# run echo via env to test syntactic validity of the variable arguments
|
|
||||||
echo "Generating wrapper script for $cmd"
|
echo "Generating wrapper script for $cmd"
|
||||||
|
|
||||||
mv $cmd $cmd.real
|
mv $cmd $cmd.real
|
||||||
@@ -306,8 +305,7 @@ create_wrapper () {
|
|||||||
cmd=$1
|
cmd=$1
|
||||||
shift
|
shift
|
||||||
|
|
||||||
# run echo via env to test syntactic validity of the variable arguments
|
echo "Generating wrapper script for $cmd"
|
||||||
env $@ echo "Generating wrapper script for $cmd"
|
|
||||||
|
|
||||||
mv $cmd $cmd.real
|
mv $cmd $cmd.real
|
||||||
cmdname=`basename $cmd`.real
|
cmdname=`basename $cmd`.real
|
||||||
|
|||||||
Reference in New Issue
Block a user