On Tue, 2024-10-08 at 11:17 +0200, Alexander Kanavin wrote:
> On Mon, 7 Oct 2024 at 23:08, Claus Stovgaard via
> lists.openembedded.org
> <[email protected]> wrote:
> > A prime example for where we need the installation of packages in
> > RRECOMMENDS, and not ignore it is for generating a SDK with all
> > dependencies for an application.
> >
> > E.g. if we have a dummy recipe with packages in DEPENDS, the
> > packages
> > listed in DEPENDS will end in RRECOMMENDS. See process_depchains in
> > package.py for the pkg_adddeprrecs method, and not be installed in
> > the
> > SDK. Using the variable introduced with this patch, will install
> > packages from RRECOMMENDS in the SDK, and we have a classic SDK
> > with
> > all the packages from DEPENDS and ready to be used for the
> > application.
>
> But DEPENDS isn't meant to generate SDK dependencies. It's purpose is
> to pull things into sysroots in a plain yocto build.
>
> You need RDEPENDS for that if I'm not mistaken.
>
> Alex
It is a build time dependency as I see it.
if foo.bb is setting DEPENDS to include "bar baz and qux" to indicate
it need it for compilation.
When foo is added to an image, and we then populate_sdk for this image
I expect that the SDK includes the dev packages of bar baz and qux to
be able to compile foo with it.
This has working until now as the SDK installed the recommended
packages.
The key is that process_depchains in package.py make the
recommendation. From the comment
<snip>
def process_depchains(pkgfiles, d):
"""
For a given set of prefix and postfix modifiers, make those
packages
RRECOMMENDS on the corresponding packages for its RDEPENDS.
Example: If package A depends upon package B, and A's .bb emits an
A-dev package, this would make A-dev Recommends: B-dev.
</snip>
I will start on creating an example on my github account showing the
issue better if it is not yet clear.
Claus
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#205287):
https://lists.openembedded.org/g/openembedded-core/message/205287
Mute This Topic: https://lists.openembedded.org/mt/108685995/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-