<?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>5278</bug_id>
          
          <creation_ts>2013-09-26 13:10:46 +0000</creation_ts>
          <short_desc>bitbake package-index does not work properly for rpm</short_desc>
          <delta_ts>2013-10-01 13:04:59 +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>OE-Core</product>
          <component>core</component>
          <version>1.4</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>corneliux.stoicescu</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>mark.hatle</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>37240</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2013-09-26 13:10:46 +0000</bug_when>
    <thetext>If you run bitbake package-index when using the RPM backend it is not unlikely it will fail with the following:

ERROR: There are no packages in /path/to/tmp/deploy/rpm!

Looking at the log you can tell it is not looking at the correct list of package architectures, and the reason for this is that package_update_index_rpm() uses MULTILIB_PREFIX_LIST which is only set (separately) when populate_sdk_rpm or rootfs_rpm are inherited, which is not the case for the package-index recipe. Even if it does not fail it will not be indexing all of the package architectures.

Fixing this properly will require some refactoring. In the meantime I have a stopgap fix that I will be sending for 1.5.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37316</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2013-09-29 10:53:01 +0000</bug_when>
    <thetext>Fix merged to master:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=2f64fae60b3f61a2c45dc9e5314d2d16b1e64605

I&apos;ve entered bug 5286 to cover the refactoring, so I&apos;ll mark this one as resolved.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37397</commentid>
    <comment_count>2</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-10-01 13:04:59 +0000</bug_when>
    <thetext>&apos;bitbake package-index&apos; works after the fix. Verified in:
poky master:2f64fae60b3f61a2c45dc9e5314d2d16b1e64605</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>