Bug 10113 - native recipes do not include runtime dependencies when populating sysroot
Summary: native recipes do not include runtime dependencies when populating sysroot
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 2.1
Hardware: x86 Multiple
: Medium major
Target Milestone: Future
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-08-11 12:17 UTC by Otavio Salvador
Modified: 2019-02-17 10:26 UTC (History)
4 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 Otavio Salvador 2016-08-11 12:17:07 UTC
This error has been catch with a Python recipe which include some runtime dependencies on other packages.

The do_populate_sysroot does not include dependencies on the runtime dependencies so those are not installed at all, leaving the tool in a non-working state.

Adding:

do_populate_sysroot[rdeptask] = "do_populate_sysroot"

To the recipe workaround the problem.
Comment 1 Richard Purdie 2016-08-11 12:33:49 UTC
To elaborate, if you have a recipe foo which does:

RDEPENDS_${PN} = " \
    python3-requests \
"
BBCLASSEXTEND = "native"

and you "bitbake foo-native -g", depends.dot shows foo-native has an RDEPENDS on python3-requests-native but task-depends.dot doesn't show a dependency from the do_populate_sysroot task. If we add the line:

do_populate_sysroot[rdeptask] = "do_populate_sysroot"

then the python3-requests-native:do_populate_sysroot dependency shows up correctly. Sadly adding this line to native.bbclass results in circular dependency errors however :(
Comment 2 Richard Purdie 2017-06-06 11:05:55 UTC
Unfortunately this creates a lot of issues when trying to fix it properly. I would like to do that but its going to take a lot of time which we don't have right now and we have workarounds for the immediate issues. Reprioritising accordingly.
Comment 3 Richard Purdie 2019-02-17 10:26:09 UTC
Finally found time to fix this http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=eea86c4f0a960d0094571a78dc0cf9d46d162a22 (was easier once the dependency look code in bitbake was fixed)