From 09530481a187e2952c0389c96839982aeae86cbf Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Thu, 22 Oct 2026 08:35:55 -0700 Subject: [PATCH] ibus: Use native pkg-config for build tools 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 --- meta-gnome/recipes-support/ibus/ibus_1.5.34.bb | 1 + 1 file changed, 1 insertion(+) 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() {