From: Ross Burton Date: Mon, 9 Feb 2026 12:56:19 +0000 (+0000) Subject: pkgconfig: inherit the pkgconfig class X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc06157db7ec6aac5e6547e9303e00a66c0c179b;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git pkgconfig: inherit the pkgconfig class Building target pkgconfig needs pkgconfig-native because pkgconfig uses pkgconfig to find libglib. Inherit the pkgconfig class so that the pkgconfig recipe does not need to know the details of how pkgconfig is integrated. Native builds use an internal copy of glib to avoid the circular dependency, and the self-dependency on pkgconfig-native is automatically pruned. Signed-off-by: Ross Burton Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb b/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb index 19b9b6bc9de..d4350be212b 100644 --- a/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb +++ b/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb @@ -19,7 +19,7 @@ SRC_URI = "git://gitlab.freedesktop.org/pkg-config/pkg-config.git;branch=master; file://0001-Backport-g-s-size-g-u-intptr-atomics-in-builtin-glib.patch \ " -inherit autotools +inherit autotools pkgconfig # Because of a faulty test, the current auto mode always evaluates to no, # so just continue that behaviour. @@ -29,7 +29,7 @@ EXTRA_OECONF += "--disable-indirect-deps" PACKAGECONFIG ??= "glib" PACKAGECONFIG:class-native = "" -PACKAGECONFIG[glib] = "--without-internal-glib,--with-internal-glib,glib-2.0 pkgconfig-native" +PACKAGECONFIG[glib] = "--without-internal-glib,--with-internal-glib,glib-2.0" BBCLASSEXTEND = "native nativesdk"