Bug 3346

Summary: Smart package feed handling
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Paul Eggleton <bluelightning>
Component: coreAssignee: Paul Eggleton <bluelightning>
Status: VERIFIED FIXED QA Contact:
Severity: enhancement    
Priority: Medium+ CC: alexandru.damian, corneliux.stoicescu, meta.mr.watcher, meta.watcher, sgw
Version: 1.4   
Target Milestone: 1.4 M2   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---
Bug Depends on:    
Bug Blocks: 3182    

Description Paul Eggleton 2012-10-29 15:33:55 UTC
For initial testing of Smart we can use rpm-dir channels; however this is rather suboptimal as the directories have to be re-indexed on every invocation of smart. We need to find the most optimal way of creating feeds for Smart and implement that within the rootfs construction code.

The major components of this task:
 - Update package-index (and related) to construct Smart compatible feeds
 - Update rootfs_rpm.bbclass (and related) to construct/use Smart compatible feeds
Comment 1 Bogdan Marinescu 2012-11-07 09:18:25 UTC
From the Smart FAQ (http://labix.org/smart/faq):

Smart supports the following repository formats as source channels:

    RPM repositories
        RPM System Database (locally installed packages)
        APT repositories for .rpm
        RPM-MD (used by YUM)
        Red Carpet (used by Ximian/Novell)
        RPM Header List (used by RedHat and Conectiva installation CDs, probably others)
        RPM Directory (a directory with a bunch of RPMs in it, no indexing required)
        URPMI (used by Mandriva) 

Not sure which one we're using, so I don't know what needs to change. Still investigating.
Comment 2 Paul Eggleton 2012-12-18 10:45:34 UTC
This is now part of the Smart integration merged to master:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=019ba25654cd3ae63a6b6c0f2d67da520bf10bc6
Comment 3 Stoicescu Cornel 2013-02-08 11:28:08 UTC
Verified in master: b07759a20221de575da98d221feb9ea9295f7e6f

From a core-image-minimal log.do_rootfs:

Note: adding Smart RPM DB channel