python-pygobject: forcefully disable introspection
authorKoen Kooi <koen@openembedded.org>
Fri, 15 Oct 2010 08:46:24 +0000 (10:46 +0200)
committerKoen Kooi <koen@openembedded.org>
Fri, 15 Oct 2010 08:48:08 +0000 (10:48 +0200)
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

recipes/python/python-pygobject_2.20.0.bb

index 157fa9f..adc17e7 100644 (file)
@@ -4,7 +4,7 @@ LICENSE = "LGPL"
 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]}"
 
@@ -20,7 +20,10 @@ inherit autotools distutils-base pkgconfig
 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/