Bug 824 - Usability: Improve RRECOMMENDS warning messages for -dbg packages
Summary: Usability: Improve RRECOMMENDS warning messages for -dbg packages
Status: NEW
Alias: None
Product: Meta-yocto
Classification: Build System, Metadata & Runtime
Component: configuration (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Low enhancement
Target Milestone: 5.99
Assignee: Unassigned
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2011-03-08 17:18 UTC by Mark Hatle
Modified: 2025-10-23 15:07 UTC (History)
8 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 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.