From: Ross Burton Date: Fri, 20 Mar 2026 12:27:27 +0000 (+0000) Subject: pkgconf: ensure pkgconf-native doesn't try and look on the host X-Git-Tag: yocto-6.0_M3~224 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=a1f8e2c286af0a41d47aeee7fa1a226f01bf8456;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git pkgconf: ensure pkgconf-native doesn't try and look on the host Neuter the native build of pkgconf so that it doesn't default to looking on the build host for .pc files, to avoid accidental host contamination. Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-devtools/pkgconf/pkgconf_2.5.1.bb b/meta/recipes-devtools/pkgconf/pkgconf_2.5.1.bb index a8455577f6..277ef9786c 100644 --- a/meta/recipes-devtools/pkgconf/pkgconf_2.5.1.bb +++ b/meta/recipes-devtools/pkgconf/pkgconf_2.5.1.bb @@ -24,6 +24,12 @@ SRC_URI[sha256sum] = "cd05c9589b9f86ecf044c10a2269822bc9eb001eced2582cfffd658b0a inherit autotools pkgconfig +# Tell the native pkgconf to use directories that don't exist, so we _need_ to +# tell it the paths with environment variables. +EXTRA_OECONF:append:class-native = " --with-pkg-config-dir='/not/exist' \ + --with-system-includedir=/not/exist/include \ + --with-system-libdir=/not/exist/lib" + do_install:append () { # Install a wrapper which deals, as much as possible with pkgconf vs # pkg-config compatibility issues.