diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-01-20 12:55:24 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-02-04 23:32:20 +0000 |
| commit | 4fe11a56a750cc5ad13d069d8608c5a629169683 (patch) | |
| tree | c9609954b64e79688853a1c733db38d149afea14 | |
| parent | bbd0a48cf81fd70c0868412a5a29d9400867dde0 (diff) | |
| download | poky-4fe11a56a750cc5ad13d069d8608c5a629169683.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: 47a2634831f907d83ec40ad010351c923ef67f0d)
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>
(cherry picked from commit 99a5105f7b5303cd36077b5910c662a865c1782c)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/classes/native.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/native.bbclass b/meta/classes/native.bbclass index fc7422c5d7..4de96cd59b 100644 --- a/meta/classes/native.bbclass +++ b/meta/classes/native.bbclass | |||
| @@ -153,7 +153,7 @@ python native_virtclass_handler () { | |||
| 153 | newdeps.append(dep.replace(pn, bpn) + "-native") | 153 | newdeps.append(dep.replace(pn, bpn) + "-native") |
| 154 | else: | 154 | else: |
| 155 | newdeps.append(dep) | 155 | newdeps.append(dep) |
| 156 | d.setVar(varname, " ".join(newdeps), parsing=True) | 156 | d.setVar(varname, " ".join(newdeps)) |
| 157 | 157 | ||
| 158 | map_dependencies("DEPENDS", e.data, selfref=False) | 158 | map_dependencies("DEPENDS", e.data, selfref=False) |
| 159 | for pkg in e.data.getVar("PACKAGES", False).split(): | 159 | for pkg in e.data.getVar("PACKAGES", False).split(): |
