[OE-core] [PATCH 1/1] glib-2.0-native: do_compile failed on opensuse 12.2 64bit
Robert Yang
liezhi.yang at windriver.com
Fri Apr 26 11:41:08 UTC 2013
The error message:
File "/path/to/glib-2.34.3/gio/gdbus-2.0/codegen/parser.py", line 25, in <module>
import xml.parsers.expat
ImportError: No module named xml.parsers.expat
make[2]: *** [gdbus-daemon-generated.h] Error 1
This is because opensuse 12.2 doesn't install the expat.py (one of
python's lib) by default, but our native python provides it, use the
native python would fix the problem.
[YOCTO #4424]
Signed-off-by: Robert Yang <liezhi.yang at windriver.com>
---
meta/recipes-core/glib-2.0/glib-2.0_2.34.3.bb | 2 +-
meta/recipes-core/glib-2.0/glib.inc | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/meta/recipes-core/glib-2.0/glib-2.0_2.34.3.bb b/meta/recipes-core/glib-2.0/glib-2.0_2.34.3.bb
index 7795524..50f8968 100644
--- a/meta/recipes-core/glib-2.0/glib-2.0_2.34.3.bb
+++ b/meta/recipes-core/glib-2.0/glib-2.0_2.34.3.bb
@@ -45,7 +45,7 @@ RDEPENDS_${PN}-ptest_append_libc-glibc = "\
"
do_configure_prepend() {
- sed -i -e '1s,#!.*,#!${USRBINPATH}/env python,' ${S}/gio/gdbus-2.0/codegen/gdbus-codegen.in
+ sed -i -e '1s,#!.*,#!${PYTHON},' ${S}/gio/gdbus-2.0/codegen/gdbus-codegen.in
}
do_install_append() {
diff --git a/meta/recipes-core/glib-2.0/glib.inc b/meta/recipes-core/glib-2.0/glib.inc
index 42c34c3..0b09131 100644
--- a/meta/recipes-core/glib-2.0/glib.inc
+++ b/meta/recipes-core/glib-2.0/glib.inc
@@ -21,7 +21,7 @@ PACKAGES =+ "${PN}-utils ${PN}-bash-completion ${PN}-codegen"
LEAD_SONAME = "libglib-2.0.*"
FILES_${PN}-utils = "${bindir}/* ${datadir}/glib-2.0/gettext"
-inherit autotools gettext gtk-doc pkgconfig ptest
+inherit autotools gettext gtk-doc pkgconfig ptest pythonnative
S = "${WORKDIR}/glib-${PV}"
--
1.7.10.4
More information about the Openembedded-core
mailing list