Bug 13203 - It is not possible to RDEPEND on a -src package
Summary: It is not possible to RDEPEND on a -src package
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: configuration (show other bugs)
Version: 2.7
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.7 M4
Assignee: Joshua Watt
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2019-02-25 22:57 UTC by Joshua Watt
Modified: 2019-05-01 20:40 UTC (History)
1 user (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 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.