Bug 824

Summary: Usability: Improve RRECOMMENDS warning messages for -dbg packages
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Mark Hatle <mark.hatle>
Component: configurationAssignee: Unassigned <unassigned>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: Low CC: bluelightning, jessica.zhang, poky.bs.watcher, poky.watcher, randy.macleod, richard.purdie, scott.branden, tim.orling
Version: unspecified   
Target Milestone: 5.99   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Mark Hatle 2011-03-08 17:18:22 UTC
When a recipe is created that does not have a ${PN} in the PACKAGES, but does have the ${PN}-dbg, a dependency error occurs of the type:

NOTE: Runtime target 'gcc-runtime' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['gcc-runtime']
ERROR: Required build target 'gcc-runtime' has no buildable providers.
Missing or unbuildable dependency chain was: ['gcc-runtime', 'gcc-runtime']
ERROR: Nothing RPROVIDES 'gcc-runtime' (but /home/mhatle/git/poky/meta/recipes-devtools/gcc/gcc-runtime_4.5.1.bb RDEPENDS on or otherwise requires it)

A simple change to the recipe:

# The base package doesn't exist, so we clear the recommends.
RRECOMMENDS_${PN}-dbg = ""

resolves the problem.

It would be good to improve the error message about the dependencies to indicate that it came from RRECOMMENDS_${PN}-dbg, instead of just calling it a dependency.  It was difficult to understand where the dependency came from in order to fix it.
Comment 1 Richard Purdie 2012-08-06 20:40:43 UTC
Paul, I know you've been working in this area recently. Is this still an issue? I suspect if it is, current experience might make it easy to fix?
Comment 2 Paul Eggleton 2013-05-08 17:18:13 UTC
For -dbg packages this will no longer be an issue since the dependency has been removed:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=eff37ecde9dee196eaa07867cd5876dc42b26dd5

However I still think we should try to improve the error message since the same situation can apply to -dev and -staticdev packages.
Comment 3 Randy MacLeod 2023-10-24 14:24:26 UTC
Bulk move from 4.99 or 0.00 to 5.99
Comment 4 Tim Orling 2025-10-23 15:07:35 UTC
Still valid.