Bug 5278 - bitbake package-index does not work properly for rpm
Summary: bitbake package-index does not work properly for rpm
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.4
Hardware: All Multiple
: Medium normal
Target Milestone: 1.5
Assignee: Paul Eggleton
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-09-26 13:10 UTC by Paul Eggleton
Modified: 2013-10-01 13:04 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Eggleton 2013-09-26 13:10:46 UTC
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.
Comment 1 Paul Eggleton 2013-09-29 10:53:01 UTC
Fix merged to master:

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

I've entered bug 5286 to cover the refactoring, so I'll mark this one as resolved.
Comment 2 Stoicescu Cornel 2013-10-01 13:04:59 UTC
'bitbake package-index' works after the fix. Verified in:
poky master:2f64fae60b3f61a2c45dc9e5314d2d16b1e64605