data: Evaluate the value of export/unexport/network flags
Quoted 13 lines · Richard Purdie via lists.openembedded.org
Currently the export/unexport/network flags are acted on only by presence or lack of in the data store. This is deliberate due to performance reasons since a given recipe shell task might export ~80-90 variables and this means expanding flags for every one of them.
This does catch users unaware since values which expand to nothing don't work e.g. ${@""} and setting values to "0" wouldn't work either.
The downside to this patch is slow down in parsing speed of around 4%.
The network flag is easier to change and doesn't affect performance, it was made to operate the same as export/unexport for consitency reasons.
Quoted 8 lines
Signed-off-by Richard Purdie <[email protected]>--- bin/bitbake-worker | 2 +- lib/bb/data.py | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-)I'm torn on this patch due to the parsing speed slow down. I'm putting the patch out there for discussion.
Also related is https://bugzilla.yoctoproject.org/show_bug.cgi?id=13808
and the noexec flag which has the same issue.
Cheers,
Richard