summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Kjellerstedt <pkj@axis.com>2025-04-22 17:18:08 +0200
committerSteve Sakoman <steve@sakoman.com>2025-05-14 08:33:40 -0700
commit8ff635679009be846e429a82ede2b169c01df0c7 (patch)
treec70c7779a7335594363ae9a006d62244fa06ec60
parent68e1a8b65903445b821e70cb3a52c929efa2e969 (diff)
downloadpoky-8ff635679009be846e429a82ede2b169c01df0c7.tar.gz
insane.bbclass: Report all invalid PACKAGECONFIGs for a recipe at once
Rather than reporting each invalid PACKAGECONFIG with a separate error message, report them all with one error message. (From OE-Core rev: c311d5ddc102f26ac1813c540520175cfed3a5a6) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r--meta/classes-global/insane.bbclass8
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/classes-global/insane.bbclass b/meta/classes-global/insane.bbclass
index 748de050e0..cd26bf5eb9 100644
--- a/meta/classes-global/insane.bbclass
+++ b/meta/classes-global/insane.bbclass
@@ -1469,10 +1469,10 @@ python do_recipe_qa() {
1469 pkgconfigs = (d.getVar("PACKAGECONFIG") or "").split() 1469 pkgconfigs = (d.getVar("PACKAGECONFIG") or "").split()
1470 if pkgconfigs: 1470 if pkgconfigs:
1471 pkgconfigflags = d.getVarFlags("PACKAGECONFIG") or {} 1471 pkgconfigflags = d.getVarFlags("PACKAGECONFIG") or {}
1472 for pkgconfig in pkgconfigs: 1472 invalid_pkgconfigs = set(pkgconfigs) - set(pkgconfigflags)
1473 if pkgconfig not in pkgconfigflags: 1473 if invalid_pkgconfigs:
1474 error_msg = "%s: invalid PACKAGECONFIG: %s" % (pn, pkgconfig) 1474 error_msg = "%s: invalid PACKAGECONFIG(s): %s" % (pn, " ".join(sorted(invalid_pkgconfigs)))
1475 oe.qa.handle_error("invalid-packageconfig", error_msg, d) 1475 oe.qa.handle_error("invalid-packageconfig", error_msg, d)
1476 1476
1477 pn = d.getVar('PN') 1477 pn = d.getVar('PN')
1478 test_missing_metadata(pn, d) 1478 test_missing_metadata(pn, d)