<?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>2134</bug_id>
          
          <creation_ts>2012-03-16 13:39:51 +0000</creation_ts>
          <short_desc>bitbake package-index fails for rpm</short_desc>
          <delta_ts>2012-04-14 14:28:12 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>(1.2)  2012-04-11: Patch Review</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.2 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Andrei Gherzan">andrei</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>scott.a.garman</cc>
    
    <cc>sgw</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>19193</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2012-03-16 13:39:51 +0000</bug_when>
    <thetext>bitbake package-index fails due to not being able to find the libxml2 bindings:

| + createrepo /home/paul/poky/poky/build/tmp/deploy/rpm
| Traceback (most recent call last):
|   File &quot;/home/paul/poky/poky/build/tmp/sysroots/i686-linux/usr/share/createrepo/genpkgmetadata.py&quot;, line 27, in &lt;module&gt;
|     import libxml2
| ImportError: No module named libxml2
NOTE: package package-index-1.0-r0: task do_package_index: Failed

I suspect this is because the host python is being used instead of the native one since the libxml2 module does exist in the native sysroot.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19626</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2012-03-29 16:50:59 +0000</bug_when>
    <thetext>I can no longer reproduce this after cleaning out TMPDIR, and it works fine on two other host machines. I&apos;m aware I had some brokenness in there due to some other bugs, so I&apos;m going to mark this one as WORKSFORME.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19755</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2012-03-31 17:10:00 +0000</bug_when>
    <thetext>Whilst I never saw the libxml issue, I consistently see:

| + rpm-createsolvedb.py rpm /media/build1/poky/build6/tmp/deploy/rpm/x86_64-nativesdk /media/build1/poky/build6/tERROR: Function failed: do_package_index (see /media/build1/poky/build6/tmp/work/i586-poky-linux/package-index-1.0-r0/temp/log.do_package_index.25555 for further information)
| mp/deploy/rpm/all
|    total:               1      0.000000 MB      1.339680 secs
|    fingerprint:       321      0.010880 MB      0.014860 secs
|    install:           107      0.000000 MB      0.131623 secs
|    dbadd:             107      0.000000 MB      0.129404 secs
|    dbget:            4085      0.011956 MB      0.003506 secs
|    dbput:             107      0.974936 MB      0.115491 secs
|    readhdr:          1071      1.937440 MB      1.093024 secs
|    hdrload:           550      3.034148 MB      0.002142 secs
|    hdrget:          19375      0.000000 MB      0.016254 secs
| + createrepo /media/build1/poky/build6/tmp/deploy/rpm
| Traceback (most recent call last):
|   File &quot;/media/build1/poky/build6/tmp/sysroots/x86_64-linux/usr/share/createrepo/genpkgmetadata.py&quot;, line 26, in &lt;module&gt;
|     import rpm
| ImportError: No module named rpm
NOTE: package package-index-1.0-r0: task do_package_index: Failed
ERROR: Task 8 (/media/build1/poky/meta/recipes-core/meta/package-index.bb, do_package_index) failed with exit code &apos;1&apos;
NOTE: Tasks Summary: Attempted 215 tasks of which 206 didn&apos;t need to be rerun and 1 failed

:(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20117</commentid>
    <comment_count>3</comment_count>
    <who name="Andrei Gherzan">andrei</who>
    <bug_when>2012-04-10 10:04:07 +0000</bug_when>
    <thetext>The bug is that the native python used to run genpkgmetadata.py is picking up host&apos;s python modules.

More about this. RPM is built without python. And this modules is needed by the above py file.

So: 
1. rpm-native should be built with python support. 
2. native python should only look into STAGING_DIR_NATIVE directory for modules.

@g</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20181</commentid>
    <comment_count>4</comment_count>
    <who name="Andrei Gherzan">andrei</who>
    <bug_when>2012-04-11 14:27:59 +0000</bug_when>
    <thetext>Fixed. Please check and test here:

http://lists.linuxtogo.org/pipermail/openembedded-core/2012-April/020892.html


@g</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20182</commentid>
    <comment_count>5</comment_count>
    <who name="Andrei Gherzan">andrei</who>
    <bug_when>2012-04-11 14:30:07 +0000</bug_when>
    <thetext>Closed by mistake. Waiting for merge....</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20376</commentid>
    <comment_count>6</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2012-04-14 14:28:12 +0000</bug_when>
    <thetext>Fixes merged into master ending with http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=04b16f1038f7cae445d741e86c2cc19c70f991c1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>