[PATCH] fix: use pkgconf instead of pkg-config
Frede Braendstrup <[email protected]> Fri, 29 Aug 2025 13:47:06 +0200
| Newsgroups | org.yoctoproject.lists.poky |
|---|---|
| Message-ID | <[email protected]> |
As a preface, I know this is probably a bit of an aggressive move. But pkg-config doesn't build on newer GCC and Clang compilers due to a lot of hardening. The old K&R style C code is deprecated and cannot compile in the gcc default mode. pkgconf is a modern and compatible (although not necessarily bug compatible) alternative that is maintained, and has more features that are not available in the old pkg-config. I've been using this patch for a while now, and it has worked flawlessly. Signed-off-by: Frede Braendstrup <[email protected]> --- meta/classes-recipe/pkgconfig.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes-recipe/pkgconfig.bbclass b/meta/classes-recipe/pkgconfig.bbclass index 1e1f3824dd..55847fb705 100644 --- a/meta/classes-recipe/pkgconfig.bbclass +++ b/meta/classes-recipe/pkgconfig.bbclass @@ -4,5 +4,5 @@ # SPDX-License-Identifier: MIT # -DEPENDS:prepend = "pkgconfig-native " +DEPENDS:prepend = "pkgconf-native " -- 2.50.1