Bug 9505 - SDKs no longer provide opkg packaging data
Summary: SDKs no longer provide opkg packaging data
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: deployment (show other bugs)
Version: 2.1
Hardware: x86 Multiple
: Medium+ major
Target Milestone: 2.2 M1
Assignee: Paul Eggleton
QA Contact: Yi Zhao
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-04-21 19:01 UTC by Denys Dmytriyenko
Modified: 2016-06-20 20:28 UTC (History)
1 user (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Yes (doc changes required)


Attachments
preserve packaging data when SDKIMAGE_FEATURES has "package-management" (3.93 KB, patch)
2016-04-21 19:01 UTC, Denys Dmytriyenko
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Denys Dmytriyenko 2016-04-21 19:01:28 UTC
Created attachment 3146 [details]
preserve packaging data when SDKIMAGE_FEATURES has "package-management"

All past releases used to provide opkg packaging database in generated SDKs. We have tooling around that data to parse and extract useful information. But recently SDKs no longer have that data. It appears it was simply removed due to some limitations in the way opkg creates some portion of that database by symlinking files in /var/lib/opkg/lists/ directory:

http://cgit.openembedded.org/openembedded-core/commit/?id=c8e0ec2da9ad4ce1c103966906a85f68c15400dd

While the /var/lib/opkg/lists/ directory containing broken symlinks is a concern (and there are workarounds available), the rest of the packaging database is still valid and of great use.

Attached is the patch to make this configurable and allow setting a variable to preserve packaging database in SDKs.
Comment 1 Paul Eggleton 2016-04-27 03:52:56 UTC
From the discussion on IRC I think we'll try to get this in early for 2.2 and try to backport it to krogoth after the 2.1 release, since it's a bit late in the release cycle to be making such a change.
Comment 2 Paul Eggleton 2016-05-09 03:21:09 UTC
This was merged to master:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=5bfd397e16ddae0ad7a1abce36bb8a112e743df0

Also backported to the krogoth branch for a future 2.1.1 point release:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?h=krogoth&id=5bfd397e16ddae0ad7a1abce36bb8a112e743df0

We'll need to update the manual to cover the extra functionality accessible through SDKIMAGE_FEATURES.