[oe-commits] Koen Kooi : python-pygobject: forcefully disable introspection
git version control
git at git.openembedded.org
Fri Oct 15 08:51:50 UTC 2010
Module: openembedded.git
Branch: org.openembedded.dev
Commit: c9ac99f13f603d15e9a852916cc4daa4a4d210bc
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=c9ac99f13f603d15e9a852916cc4daa4a4d210bc
Author: Koen Kooi <koen at openembedded.org>
Date: Fri Oct 15 10:46:24 2010 +0200
python-pygobject: forcefully disable introspection
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 | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/recipes/python/python-pygobject_2.20.0.bb b/recipes/python/python-pygobject_2.20.0.bb
index 157fa9f..adc17e7 100644
--- a/recipes/python/python-pygobject_2.20.0.bb
+++ b/recipes/python/python-pygobject_2.20.0.bb
@@ -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/
More information about the Openembedded-commits
mailing list