It will pick up the .pc from the native sysroot and then fail to build since we don't have target introspection libs to link against
DEPENDS = "libffi python-pygobject-native-${PV}"
PE = "1"
-PR = "r1"
+PR = "r2"
MAJ_VER = "${@bb.data.getVar('PV',d,1).split('.')[0]}.${@bb.data.getVar('PV',d,1).split('.')[1]}"
export BUILD_SYS
export HOST_SYS
-export GOBJECT_INTROSPECTION_CFLAGS="-pthread -I${STAGING_INCDIR}/gobject-introspection-1.0 -I${STAGING_INCDIR}/glib-2.0 -I${STAGING_LIBDIR}/glib-2.0/include"
+# It picks up the introspection pc for the host sysroot without a knob to disable it, so force it to false
+do_configure_prepend() {
+ sed -i 's:have_gobject_introspection=true:have_gobject_introspection=false:g' configure.ac
+}
do_install_append() {
install -d ${D}${datadir}/pygobject/