mbox series

[layerindex-web,0/2] Fix parsing of layers like meta-luneos

Message ID 20261114044035.88470-1-tim.orling@konsulko.com
Headers show
Series Fix parsing of layers like meta-luneos | expand

Message

Tim Orling Nov. 14, 2026, 4:40 a.m. UTC
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