diff options
| author | Peter Kjellerstedt <pkj@axis.com> | 2025-04-05 03:32:58 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-04-08 15:49:17 +0100 |
| commit | 518320024799ab051f20f35003d3248bbfadb612 (patch) | |
| tree | 0e57268c849d9bacfd1033065dc6085977981f39 /meta/classes-global | |
| parent | 35e4c46d068215250e5f89269f2012d0e051f5f5 (diff) | |
| download | poky-518320024799ab051f20f35003d3248bbfadb612.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: bf9366583f53fe2498d7aa9192ebfe6562887cf3)
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-global')
| -rw-r--r-- | meta/classes-global/insane.bbclass | 8 |
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) |
