summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe/native.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2023-01-20 12:55:24 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-01-24 22:06:51 +0000
commite3ada9938ce44f7b25e3040900a553fff8540008 (patch)
tree017d6d5f055a39dbf3ea5baf04c68664d0403995 /meta/classes-recipe/native.bbclass
parent6574b44406ae8fa320199f848e0d577f3f404d85 (diff)
downloadpoky-e3ada9938ce44f7b25e3040900a553fff8540008.tar.gz
native: Drop special variable handling
Back when it was merged in https://git.yoctoproject.org/poky/commit/?id=c4257ed8b1040a5a0e9a95846d81961741239116 it appeared special handling in setVar was necessary. Likely due to other fixes and improvements it no longer appears to be. The results of "bitbake world -g" before and after this change are identical for oe-core and meta-openembedded. Therefore drop the "parsing=True" special parameter to setVar() meaning overrides can now be cleared. This means that something like: DEPENDS:append = " bash" now functions as expected, adding bash to the target recipe and bash-native to the native BBCLASSEXTENDED version. Without this change, it would add bash to the native version as well as bash-native which is clearly incorrect. [YOCTO #15010] (From OE-Core rev: 99a5105f7b5303cd36077b5910c662a865c1782c) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe/native.bbclass')
-rw-r--r--meta/classes-recipe/native.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes-recipe/native.bbclass b/meta/classes-recipe/native.bbclass
index 61ad053def..1e94585f3e 100644
--- a/meta/classes-recipe/native.bbclass
+++ b/meta/classes-recipe/native.bbclass
@@ -161,7 +161,7 @@ python native_virtclass_handler () {
161 newdeps.append(dep.replace(pn, bpn) + "-native") 161 newdeps.append(dep.replace(pn, bpn) + "-native")
162 else: 162 else:
163 newdeps.append(dep) 163 newdeps.append(dep)
164 d.setVar(varname, " ".join(newdeps), parsing=True) 164 d.setVar(varname, " ".join(newdeps))
165 165
166 map_dependencies("DEPENDS", e.data, selfref=False) 166 map_dependencies("DEPENDS", e.data, selfref=False)
167 for pkg in e.data.getVar("PACKAGES", False).split(): 167 for pkg in e.data.getVar("PACKAGES", False).split():