On Fri, Oct 11, 2024 at 01:01 PM, Ross Burton wrote:

> 
> On 11 Oct 2024, at 06:31, Aleksandar Nikolic via lists.yoctoproject.org
> <aleksandar.nikolic010=gmail....@lists.yoctoproject.org> wrote:
> 
>> It goes without saying, when I inherit the pkgconfig class in recipe B,
>> everything works as expected (because the pkg-config binary is found in
>> recipe-sysroot-native of recipe B), but this is also not correct, as
>> recipe B does not really depend on pkgconfig and shouldn't even know about
>> it.
> 
> But it does: it’s calling cmake macros that use pkgconfig. Inheriting the
> class is the right thing to do here.

I misspelled a bit, I was going to say "recipe B does not directly depend on 
pkgconfig, but rather through recipe A". What I meant by it was: I see recipe A 
as a blackbox which is supposed to bring all its dependencies with it and it 
does, except binaries (why they are not here has already been cleared up by 
Alex). I was just thinking "If I didn't know what recipe A depends on, but only 
that my recipe B depends on A, I would never inherit pkgconfig as recipe B does 
not know about this dependency". But then again, I fully understand why 
dependencies on executables aren't transitive in Yocto.

Aleksandar

> 
> Ross
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#64012): https://lists.yoctoproject.org/g/yocto/message/64012
Mute This Topic: https://lists.yoctoproject.org/mt/108943953/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to