[OE-core] [PATCH 1/1] glib-2.0-native: do_compile failed on opensuse 12.2 64bit

Burton, Ross ross.burton at intel.com
Fri Apr 26 12:08:30 UTC 2013


Hi,

On 26 April 2013 12:41, Robert Yang <liezhi.yang at windriver.com> wrote:
> 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.

I don't like this.

xml.parsers.expat is a standard Python library that's been integrated since 2.0:

http://docs.python.org/2/library/pyexpat.html#module-xml.parsers.expat

If we can't assume that a distribution has shipped a working Python
we've got bigger problems.

We could sanity check this in some way, maybe in the recipe's
configure step so we can give a nicer message, but I don't think we
should depend on pythonnative when we're talking about a standard
feature of Python.

Ross




More information about the Openembedded-core mailing list