diff mbox series

sanity: fix NameError when upgrading a TMPDIR from ABI 14

Message ID 20261106025416.631340-1-ragaprasanth@gmail.com
State Under Review
Headers show
Series sanity: fix NameError when upgrading a TMPDIR from ABI 14 | expand

Commit Message

Prasanth Ramesh Nov. 6, 2026, 2:54 a.m. UTC
drop_v14_cross_builds() calls sstate_clean_manifest(), which is defined
in sstate.bbclass. Since the sanity code moved to lib/oe in 4efa61f049
("sanity: Move code to lib/oe"), that name is no longer in scope, so a
TMPDIR with ABI 14 fails with:

  NameError: name 'sstate_clean_manifest' is not defined

Call it through bb.utils.exec_flat_python_func().

AI-Generated: Uses Claude
Signed-off-by: Prasanth R <prasanth.r@lineo.co.jp>
---
 meta/lib/oe/sanity.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/lib/oe/sanity.py b/meta/lib/oe/sanity.py
index c9149ec974..77cea4ed24 100644
--- a/meta/lib/oe/sanity.py
+++ b/meta/lib/oe/sanity.py
@@ -474,7 +474,7 @@  def drop_v14_cross_builds(d):
                 for m in glob.glob(manifest + ".*"):
                     if m.endswith(".postrm"):
                         continue
-                    sstate_clean_manifest(m, d)
+                    bb.utils.exec_flat_python_func("sstate_clean_manifest", m, d)
                 bb.utils.remove(stamp + "*")
                 bb.utils.remove(workdir, recurse = True)