Bug 2461

Summary: list_installed_packages seems to retrieve incomplete list.
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Beth Flanagan <elizabeth.flanagan>
Component: meta-yoctoAssignee: Beth Flanagan <elizabeth.flanagan>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: elizabeth.flanagan, jiajun.xu, poky.bs.watcher, poky.watcher, sgw, song.liu
Version: unspecified   
Target Milestone: 1.4 M2   
Hardware: x86   
OS: Multiple   
Whiteboard: (Pending)
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Beth Flanagan 2012-05-15 22:58:49 UTC
This was reported on the email list:

http://comments.gmane.org/gmane.linux.embedded.yocto.general/6489

I need a bit more info. I believe this is most likely an issue with list_installed_packages. With the work I'm doing within license.bbclass this shouldn't be an issue for license and package manifests, however this may indicate an issue with list_installed_packages.
Comment 1 Beth Flanagan 2012-05-30 23:38:40 UTC
This is a bit uglier than I first thought it would be. I'm going to up this to 3 days as:

1. It effects quite a bit of how license manifest and package manifests are generated.

2. It can *only* be done during do_rootfs and I don't want to add any additional strain to rootfs performance.

Generation of the data can and should still occur during packaging, however, as certain packages are never actually installed in some circumstances, how this is achieved is going to take a bit of work.
Comment 2 Beth Flanagan 2012-06-11 17:24:54 UTC
I'm going to have to push this off to M2 as to do it right is going to take re-writing a bunch of code to be event driven. The bonus here is doing so should reduce some of the overhead around do_rootfs. Bumping this to 5 days.
Comment 3 Beth Flanagan 2012-07-02 18:08:06 UTC
This is currently in process. Most of it is done, just final manifest on rootfs needs to be completed.

Need about 8 hours on this for testing/final devel

http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=eflanagan/license_manifest_2&id=7f49a5f65c4554392d17f7db4e5fca63d0131876
Comment 4 Beth Flanagan 2012-12-05 23:42:14 UTC
Submitted for pull: git.yoctoproject.org/cgit.cgi/poky-contrib/commit/?h=eflanagan/locale_license&id=18ff48823dac8258feb94958f9ebe3dcaab32815

Test:

Build core-image-sato
runqemu qemux86 core-image-sato ext3
ssh root@192.168.7.4 'rpm -qa|sort' > pkglist
pr -m -t -s tmp/deploy/licenses/core-image-sato-qemux86-20121205210948/package.manifest pkglist | gawk '{print $2 " " $1}'|more