]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
pkgconf: ensure pkgconf-native doesn't try and look on the host
authorRoss Burton <ross.burton@arm.com>
Fri, 20 Mar 2026 12:27:27 +0000 (12:27 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 23 Mar 2026 16:47:14 +0000 (16:47 +0000)
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 <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/pkgconf/pkgconf_2.5.1.bb

index a8455577f63c8b00aa851856e6317d65ef74dd1e..277ef9786c485d6f01c230217adbf75a166c1fee 100644 (file)
@@ -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.