summaryrefslogtreecommitdiffstats
path: root/bitbake/bin/bitbake-worker
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2022-11-24 22:10:21 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-02-17 18:02:04 +0000
commitd976eb3d5257174900eebedc9495052bb3936ce7 (patch)
treeea536cddab8c0d692e1e9f8d0d1191d986eaaee6 /bitbake/bin/bitbake-worker
parent6d5c1129ae464e15e3ba17df7606291bcb94067d (diff)
downloadpoky-d976eb3d5257174900eebedc9495052bb3936ce7.tar.gz
bitbake: data: Evaluate the value of export/unexport/network flags
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. (Bitbake rev: 3d96c07f9fd4ba1a84826811d14bb4e98ad58846) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/bin/bitbake-worker')
-rwxr-xr-xbitbake/bin/bitbake-worker2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/bin/bitbake-worker b/bitbake/bin/bitbake-worker
index a3ea5d9618..d743ff5105 100755
--- a/bitbake/bin/bitbake-worker
+++ b/bitbake/bin/bitbake-worker
@@ -269,7 +269,7 @@ def fork_off_task(cfg, data, databuilder, workerdata, extraconfigdata, runtask):
269 269
270 bb.utils.set_process_name("%s:%s" % (the_data.getVar("PN"), taskname.replace("do_", ""))) 270 bb.utils.set_process_name("%s:%s" % (the_data.getVar("PN"), taskname.replace("do_", "")))
271 271
272 if not the_data.getVarFlag(taskname, 'network', False): 272 if not bb.utils.to_boolean(the_data.getVarFlag(taskname, 'network')):
273 if bb.utils.is_local_uid(uid): 273 if bb.utils.is_local_uid(uid):
274 logger.debug("Attempting to disable network for %s" % taskname) 274 logger.debug("Attempting to disable network for %s" % taskname)
275 bb.utils.disable_network(uid, gid) 275 bb.utils.disable_network(uid, gid)