Bug 2843

Summary: glib-2.0-native: do_compile failed if no python-xml installed, on SLED11.2
Product: [Documentation] Reference Reporter: Xin Ouyang <xin.ouyang>
Component: handbookAssignee: Scott Rifenbark <srifenbark>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: bluelightning, jessica.zhang, liezhi.yang, meta.mr.watcher, meta.watcher, poky.doc.watcher, poky.watcher, zhenfeng.zhao
Version: 1.4   
Target Milestone: 1.4   
Hardware: All   
OS: Multiple   
URL: http://git.yoctoproject.org/cgit.cgi/yocto-docs/commit/?id=addbd0da1a35addcdd8a3d1bdf3812db68d96b2f
Whiteboard: 28 Nov 2012 - RESOLVED
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Xin Ouyang 2012-07-27 07:08:03 UTC
| Traceback (most recent call last):
|   File "./gdbus-2.0/codegen/gdbus-codegen.in", line 39, in <module>
|     from codegen import codegen_main
|   File "/buildarea2/xouyang/poky/build-qemux86/tmp/work/i686-linux/glib-2.0-native-1_2.32.4-r3/glib-2.32.4/gio/gdbus-2.0/codegen/codegen_main.py", line 30, in <module>
|     from . import parser
|   File "/buildarea2/xouyang/poky/build-qemux86/tmp/work/i686-linux/glib-2.0-native-1_2.32.4-r3/glib-2.32.4/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
| make[2]: *** Waiting for unfinished jobs....
| make[2]: *** [gdbus-daemon-generated.c] Error 1
| make[2]: Leaving directory `/buildarea2/xouyang/poky/build-qemux86/tmp/work/i686-linux/glib-2.0-native-1_2.32.4-r3/glib-2.32.4/gio'
| make[1]: *** [all-recursive] Error 1
| make[1]: Leaving directory `/buildarea2/xouyang/poky/build-qemux86/tmp/work/i686-linux/glib-2.0-native-1_2.32.4-r3/glib-2.32.4'
| make: *** [all] Error 2
| ERROR: oe_runmake failed
| ERROR: Function failed: do_compile (see /buildarea2/xouyang/poky/build-qemux86/tmp/work/i686-linux/glib-2.0-native-1_2.32.4-r3/temp/log.do_compile.6529 for further information)
NOTE: package glib-2.0-native-1_2.32.4-r3: task do_compile: Failed
ERROR: Task 6 (virtual:native:/buildarea2/xouyang/poky/meta/recipes-core/glib-2.0/glib-2.0_2.32.4.bb, do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 167 tasks of which 161 didn't need to be rerun and 1 failed.
ERROR: An uncaught exception occured in runqueue, please see the failure below:

Summary: 1 task failed:
  virtual:native:/buildarea2/xouyang/poky/meta/recipes-core/glib-2.0/glib-2.0_2.32.4.bb, do_compile
Comment 1 Xin Ouyang 2012-11-13 10:00:14 UTC
Should re-assign to document team as Richard's comment.

On Thu, 2012-11-01 at 16:53 +0800, Xin Ouyang wrote:
> glib-2.0 needs to inherit pythonnative because it will run python
> scripts to generate codes while do_compile.
>
> This has caused problems on some hosts(SLED11.2) if no python-xml
> installed.
>
> [Yocto 2843]
>
> Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
> ---
>  meta/recipes-core/glib-2.0/glib-2.0_2.32.4.bb |    4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)

This is going to adversely affect build speed. Can we not document that
python-xml needs to be installed on these hosts? I'd have thought that
would be available on most systems we support running on these days?

Cheers,

Richard
Comment 2 Scott Rifenbark 2012-11-27 15:11:51 UTC
So is the issue here that we need to add python-xml host package to all our supported hosts?  If so, is this categorized in the "essential" set of packages as defined earlier by Paul Eggleton?

Scott
Comment 3 Paul Eggleton 2012-11-27 15:51:41 UTC
We should add this; however we should only add it to the list for OpenSUSE; for the other three distributions this functionality is installed as part of the libraries for python itself so it is already taken care of for them.
Comment 4 Scott Rifenbark 2012-11-28 15:42:10 UTC
I updated the variables in the poky.ent file so that the OpenSUSE essentials package list now includes python-xml.  I also added some formatting characters to the strings of all distros to make the resuling manuals format the strings better. 

I have marked this bug RESOLVED.  Please see http://www.yoctoproject.org/docs/1.4/yocto-project-qs/yocto-project-qs.html#packages and http://www.yoctoproject.org/docs/1.4/poky-ref-manual/poky-ref-manual.html#required-packages-for-the-host-development-system for the latest QS and reference sections.

Scott