diff mbox series

[meta-gnome,23/29] ibus: Use native pkg-config for build tools

Message ID 20261023065350.3228996-23-khem.raj@oss.qualcomm.com
State New
Headers show
Series [meta-oe,01/29] castxml: upgrade 0.7.0 -> 0.8.0 | expand

Commit Message

Khem Raj Oct. 23, 2026, 6:53 a.m. UTC
When cross compiling, ibus builds unicode-parser with CC_FOR_BUILD and
the glib flags from PKG_CONFIG_FOR_BUILD. That defaults to the native
pkg-config binary, but with the target PKG_CONFIG_PATH and sysroot, so
the build tool is compiled against the target glib headers. On 32-bit
targets glib's static assertions then fail with the 64-bit host
compiler:

  glib/gmacros.h:910:31: error: static assertion failed: "Expression evaluates to false"

Pass pkg-config-native, which uses the native sysroot, as
PKG_CONFIG_FOR_BUILD.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 meta-gnome/recipes-support/ibus/ibus_1.5.34.bb | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/meta-gnome/recipes-support/ibus/ibus_1.5.34.bb b/meta-gnome/recipes-support/ibus/ibus_1.5.34.bb
index b9f2beb7d3..274ca1f1b8 100644
--- a/meta-gnome/recipes-support/ibus/ibus_1.5.34.bb
+++ b/meta-gnome/recipes-support/ibus/ibus_1.5.34.bb
@@ -41,6 +41,7 @@  EXTRA_OECONF = " \
     --disable-python2 \
     --with-python=${bindir}/python3 \
     --with-ucd-dir=${STAGING_DATADIR}/unicode/ucd \
+    PKG_CONFIG_FOR_BUILD=${STAGING_BINDIR_NATIVE}/pkg-config-native \
 "

 do_configure:prepend() {