Bug 15901 - debug-deps is a little aggressive
Summary: debug-deps is a little aggressive
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: oe-core other (show other bugs)
Version: unspecified
Hardware: BeagleBone arm
: Medium+ normal
Target Milestone: 5.3 M2
Assignee: Ryan Eatmon
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2025-06-10 19:33 UTC by Ryan Eatmon
Modified: 2025-06-17 19:43 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Eatmon 2025-06-10 19:33:13 UTC
The conditions for checking if a module RDEPENDS on a debug package is a little aggressive.  Here is a case where a validly named kernel module is tripping this up:

ERROR: linux-bb.org-6.12.22+git-r0 do_package_qa: QA Issue: kernel-modules rdepends on kernel-module-g-dbgp-6.12.22-ti [debug-deps]

The check currently just looks to see if the package contains the string "-dbg".

insane.bbclass:835     if "-dbg" in rdepend and "debug-deps" not in skip:

Not sure the best way to fix this.  Change it from a contains check to an ends with check maybe?
Comment 1 Ryan Eatmon 2025-06-11 13:45:43 UTC
Another issue with the latest kernel:

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]
Comment 2 Tim Orling 2025-06-12 14:50:13 UTC
RP suggests looking at the python code to find out if we can "just depend on the end of the string" (make sure there are no other outcomes that would break).
Comment 3 Ryan Eatmon 2025-06-12 18:50:33 UTC
Patch sent to mailing list.
Comment 4 Ryan Eatmon 2025-06-17 19:43:09 UTC
The fix was accepted to the master branch:

https://git.openembedded.org/openembedded-core/commit/?id=1b85d84c736a0fa5cb27b8716ca37f181464c85a