diff options
author | Ryan Eatmon <reatmon@ti.com> | 2025-06-12 13:28:38 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-06-16 17:57:29 +0100 |
commit | 12b533e1203ef8e35a1959216d02689ac66238ed (patch) | |
tree | d9f2ff50a198e643e1f583fa1bcc964a4c5e1889 | |
parent | 07e2320aa4f36b2a84d238bf18a0d82ee0fb9c50 (diff) | |
download | poky-12b533e1203ef8e35a1959216d02689ac66238ed.tar.gz |
insane: Fix debug-deps check
Fixes bug: https://bugzilla.yoctoproject.org/show_bug.cgi?id=15901
The cheeck for debug-deps is looking for the mere existence of the
substring "-dbg" inside of the name of an RDEPENDS package, but it should be
an endswith check. This helps with some eroneous errors in kernel
module names like:
ERROR: linux-xxx do_package_qa: QA Issue: kernel-modules rdepends on kernel-module-g-dbgp-6.12.22-ti [debug-deps]
and
ERROR: QA Issue: kernel-module-mtk-vcodec-dec-6.16.0-rc1-next-20250610-dirty rdepends on kernel-module-mtk-vcodec-dbgfs-6.16.0-rc1-next-20250610-dirty [debug-deps]
(From OE-Core rev: 1b85d84c736a0fa5cb27b8716ca37f181464c85a)
Signed-off-by: Ryan Eatmon <reatmon@ti.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes-global/insane.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes-global/insane.bbclass b/meta/classes-global/insane.bbclass index eb8591f624..c45650291f 100644 --- a/meta/classes-global/insane.bbclass +++ b/meta/classes-global/insane.bbclass | |||
@@ -832,7 +832,7 @@ def package_qa_check_rdepends(pkg, pkgdest, skip, taskdeps, packages, d): | |||
832 | return False | 832 | return False |
833 | 833 | ||
834 | for rdepend in rdepends: | 834 | for rdepend in rdepends: |
835 | if "-dbg" in rdepend and "debug-deps" not in skip: | 835 | if rdepend.endswith("-dbg") and "debug-deps" not in skip: |
836 | error_msg = "%s rdepends on %s" % (pkg,rdepend) | 836 | error_msg = "%s rdepends on %s" % (pkg,rdepend) |
837 | oe.qa.handle_error("debug-deps", error_msg, d) | 837 | oe.qa.handle_error("debug-deps", error_msg, d) |
838 | if (not "-dev" in pkg and not "-staticdev" in pkg) and rdepend.endswith("-dev") and "dev-deps" not in skip: | 838 | if (not "-dev" in pkg and not "-staticdev" in pkg) and rdepend.endswith("-dev") and "dev-deps" not in skip: |