On 8/10/2026 4:43 AM, Ross Burton wrote:
> CAUTION: This email comes from a non Wind River email account!
> Do not click links or open attachments unless you recognize the sender and
> know the content is safe.
>
> On 10 Aug 2026, at 05:52, Sumanth Gavini via lists.openembedded.org
> <[email protected]> wrote:
>>
>> * Added 0001-pkgconfigdeps.sh-Do-not-emit-usr-bin-pkg-config-as-a.patch
>> - pkgconfigdeps.sh unconditionally emits /usr/bin/pkg-config as a hard
>> Requires for packages shipping .pc files. In OE/Yocto cross-compilation,
>> pkg-config is a host-only build tool not needed on the target rootfs,
>> causing do_rootfs and do_populate_sdk failures with -dev packages.
>
> But that’s not entirely true - a package which ships a .pc file arguably
> needs pkgconfig of some sort for that to be useful, and it’s absolutely
> possible to do development on the target.
>
> You can argue whether this dependency is actually useful - and I don’t
> believe it is, the user of the .pc file should be the origin of the pkgconf
> dependency, but we can fix this and keep the existing behaviour by adding
> another RPROVIDES to pkgconf.
>
> (note that my WIP branch to remove rpmdeps entirely doesn’t generate these
> dependencies at all, as I really do believe they’re pointless)
>
> Ross
Hi Ross,
Thanks for the review.
You're right, the user of the .pc file should be the origin of the
pkgconf dependency, and removing the emission entirely is heavy-handed.
I've dropped patch 08 and instead added /usr/bin/pkg-config alongside
the existing pkgconfig in RPROVIDES:
RPROVIDES:${PN} += "pkgconfig /usr/bin/pkg-config"
This satisfies the auto-generated Requires from pkgconfigdeps.sh
without modifying the upstream rpm script.
I also had to remove /usr/bin/pkg-config from nativesdk-sdk-provides-dummy
because RPM 6's internal dependency generator auto-detects file-level
Provides from installed files nativesdk-pkgconf already provides
/usr/bin/pkg-config via the wrapper script it installs, so the dummy
entry caused a conflict.
Will send v14 with this change
--
# Sumanth Gavini
# Wind River Linux
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#243224):
https://lists.openembedded.org/g/openembedded-core/message/243224
Mute This Topic: https://lists.openembedded.org/mt/120680513/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-