<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>2843</bug_id>
          
          <creation_ts>2012-07-27 07:08:03 +0000</creation_ts>
          <short_desc>glib-2.0-native: do_compile failed if no python-xml installed, on SLED11.2</short_desc>
          <delta_ts>2012-11-28 15:42:10 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>9</classification_id>
          <classification>Documentation</classification>
          <product>Reference</product>
          <component>handbook</component>
          <version>1.4</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://git.yoctoproject.org/cgit.cgi/yocto-docs/commit/?id=addbd0da1a35addcdd8a3d1bdf3812db68d96b2f</bug_file_loc>
          <status_whiteboard>28 Nov 2012 - RESOLVED</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Xin Ouyang">xin.ouyang</reporter>
          <assigned_to name="Scott Rifenbark">srifenbark</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>liezhi.yang</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>poky.doc.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>zhenfeng.zhao</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>23558</commentid>
    <comment_count>0</comment_count>
    <who name="Xin Ouyang">xin.ouyang</who>
    <bug_when>2012-07-27 07:08:03 +0000</bug_when>
    <thetext>| Traceback (most recent call last):
|   File &quot;./gdbus-2.0/codegen/gdbus-codegen.in&quot;, line 39, in &lt;module&gt;
|     from codegen import codegen_main
|   File &quot;/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&quot;, line 30, in &lt;module&gt;
|     from . import parser
|   File &quot;/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&quot;, line 25, in &lt;module&gt;
|     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&apos;
| 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&apos;
| 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 &apos;1&apos;
NOTE: Tasks Summary: Attempted 167 tasks of which 161 didn&apos;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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27385</commentid>
    <comment_count>1</comment_count>
    <who name="Xin Ouyang">xin.ouyang</who>
    <bug_when>2012-11-13 10:00:14 +0000</bug_when>
    <thetext>Should re-assign to document team as Richard&apos;s comment.

On Thu, 2012-11-01 at 16:53 +0800, Xin Ouyang wrote:
&gt; glib-2.0 needs to inherit pythonnative because it will run python
&gt; scripts to generate codes while do_compile.
&gt;
&gt; This has caused problems on some hosts(SLED11.2) if no python-xml
&gt; installed.
&gt;
&gt; [Yocto 2843]
&gt;
&gt; Signed-off-by: Xin Ouyang &lt;Xin.Ouyang@windriver.com&gt;
&gt; ---
&gt;  meta/recipes-core/glib-2.0/glib-2.0_2.32.4.bb |    4 +++-
&gt;  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&apos;d have thought that
would be available on most systems we support running on these days?

Cheers,

Richard</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27736</commentid>
    <comment_count>2</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2012-11-27 15:11:51 +0000</bug_when>
    <thetext>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 &quot;essential&quot; set of packages as defined earlier by Paul Eggleton?

Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27742</commentid>
    <comment_count>3</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2012-11-27 15:51:41 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27798</commentid>
    <comment_count>4</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2012-11-28 15:42:10 +0000</bug_when>
    <thetext>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</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>