Bug 13203

Summary: It is not possible to RDEPEND on a -src package
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Joshua Watt <JPEWhacker>
Component: configurationAssignee: Joshua Watt <JPEWhacker>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: richard.purdie
Version: 2.7   
Target Milestone: 2.7 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Joshua Watt 2019-02-25 22:57:43 UTC
It is currently not possible to RDEPEND on a -src package from a recipe because the -src package is not in ${PACKAGES}, but instead added dynamically at packaging time. It is not usually expected that a recipe would have any need to RDEPEND on a -src package, but it can be occasionally useful to include the source from a given package in an image for debugging, like so:

 IMAGE_INSTALL_append_pn-core-image-minimal = "foo-src"

However, doing so results in the following error:

 ERROR: Nothing RPROVIDES 'foo-src' (but .../core-image-minimal_1.0.bb RDEPENDS on or otherwise requires it)

I think that the solution is to add the ${PN}-src packages to the default ${PACKAGES} in bitbake.conf.
Comment 1 Richard Purdie 2019-02-28 13:52:03 UTC
That sounds reasonable to me and is presumably how we handled this for -dbg.