pkg-config has been unmaintained since 2017. Major Linux distributions
such as Fedora, Debian, Alpine, and Arch Linux have all switched to
pkgconf as their default pkg-config implementation. Upstream projects
no longer use or recommend pkg-config. There is no reason for Yocto
to keep lagging behind and continue using a dead tool.

Switch the preferred providers for pkgconfig, nativesdk-pkgconfig and
pkgconfig-native to pkgconf, aligning with the broader ecosystem.

Signed-off-by: Kory Maincent <[email protected]>
---

There is also the question of the pkgconf wrappers:
https://git.openembedded.org/openembedded-core/tree/meta/recipes-devtools/pkgconf/pkgconf

Should we keep making pkgconf emulate the legacy pkg-config behavior?
At this point, projects have had sufficient time to adopt native pkgconf
compatibility, so it may be worth dropping the wrappers and letting
pkgconf behave as its own tool.
---
 meta/conf/distro/include/default-providers.inc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/meta/conf/distro/include/default-providers.inc 
b/meta/conf/distro/include/default-providers.inc
index 5101ad78f8..c0a5d1c75e 100644
--- a/meta/conf/distro/include/default-providers.inc
+++ b/meta/conf/distro/include/default-providers.inc
@@ -56,9 +56,9 @@ PREFERRED_PROVIDER_getopt ?= "util-linux-getopt"
 PREFERRED_PROVIDER_openssl ?= "openssl"
 PREFERRED_PROVIDER_openssl-native ?= "openssl-native"
 PREFERRED_PROVIDER_nativesdk-openssl ?= "nativesdk-openssl"
-PREFERRED_PROVIDER_pkgconfig ?= "pkgconfig"
-PREFERRED_PROVIDER_nativesdk-pkgconfig ?= "nativesdk-pkgconfig"
-PREFERRED_PROVIDER_pkgconfig-native ?= "pkgconfig-native"
+PREFERRED_PROVIDER_pkgconfig ?= "pkgconf"
+PREFERRED_PROVIDER_nativesdk-pkgconfig ?= "nativesdk-pkgconf"
+PREFERRED_PROVIDER_pkgconfig-native ?= "pkgconf-native"
 PREFERRED_RPROVIDER_initd-functions ?= "initscripts"
 
 PREFERRED_PROVIDER_nativesdk-mesa ?= "nativesdk-mesa"
-- 
2.43.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#233317): 
https://lists.openembedded.org/g/openembedded-core/message/233317
Mute This Topic: https://lists.openembedded.org/mt/118362272/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to