Skip to content

Fix parsing of layers like meta-luneos

Tim Orling yocto-patches 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2update_layer: don't parse distro configuration into the recipe datastorelayerindex/update_layer.py tests/test_distro_conf.py+50 -10 replies
2/2update_layer: make addpylib libraries available to recipe parsinglayerindex/recipeparse.py layerindex/update_layer.py tests/test_update.py+50 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [layerindex-web][PATCH 0/2] Fix parsing of layers like meta-luneos

Image recipes in meta-luneos fail to parse in the layer index with "NameError: name 'oebackport' is not defined" (bug 16192). Two independent problems lead to it; each patch fixes one, and each on its own stops the failure.

1: Bug 16497: update_layer.py parses each distro configuration file
into the datastore it then parses the layer's recipes with, so the recipes parsed after luneos.conf got LuneOS's configuration. They are now parsed into a copy.
2: Bug 16192: the BitBake server, which parses the recipes, never
imported the libraries a layer adds with addpylib in its conf/layer.conf. Their addpylib statements now go in the bblayers.conf it reads.

On a test instance loaded with a copy of the layers.openembedded.org database, luneos-emulator-appliance.bb and luneos-image.bb on scarthgap fail as reported when parsed after luneos.conf, as update_layer.py does, and parse with either patch. Dry-run updates of meta-tegra, meta-qcom and meta-luneos, which use addpylib, give the same errors and warnings with and without the series. The test suite passes in the Docker image at each patch (77 passed, 1 skipped at the end).

Tim Orling (2):
update_layer: don't parse distro configuration into the recipe
datastore
update_layer: make addpylib libraries available to recipe parsing

 layerindex/recipeparse.py  | 23 ++++++++++++++++++-
 layerindex/update_layer.py | 13 +++++++++--
 tests/test_distro_conf.py  | 47 ++++++++++++++++++++++++++++++++++++++
 tests/test_update.py       | 20 ++++++++++++++++
 4 files changed, 100 insertions(+), 3 deletions(-)
 create mode 100644 tests/test_distro_conf.py

base-commit: 08e58cdece30019a6f9e5d14af16ebe20afa6177

Signature · 1 line
2.56.0