Bug 15661 - bitbake fetcher does not support new ipk format
Summary: bitbake fetcher does not support new ipk format
Status: NEW
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 5.99
Assignee: Unassigned
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2024-11-25 18:09 UTC by Weston Schmidt
Modified: 2025-01-16 15:35 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Weston Schmidt 2024-11-25 18:09:30 UTC
When tracking down why my ipks aren't working with `inherit bin_package` I think I discovered a bug with bitbake not supporting the different forms of ipk that are allowed.

This code appears to expect the ipk to be an `ar` format.
https://github.com/openembedded/bitbake/blob/06aa6c292813a28c84736193b550fb2d18884d43/lib/bb/fetch2/__init__.py#L1575

Based on the opkg code, an ipk can be several forms:
https://git.yoctoproject.org/opkg/tree/libopkg/opkg_archive.c#n505

It would be ideal to support all the forms available on a platform (if the compression is present).
Comment 1 Randy MacLeod 2024-11-28 15:43:11 UTC
The bitbake fetcher does not support ipk new formats yet.

Could you work on and send a patch.
Comment 2 Randy MacLeod 2024-11-28 15:44:04 UTC
Move to need info.
Comment 3 Weston Schmidt 2024-12-17 16:40:17 UTC
I'm not sure how "new" this feature is - https://git.yoctoproject.org/opkg/commit/libopkg?id=44ad8888728959ea0c9eedddeff449b8112e01f5 shows the ipk package structure has existed in the current form since 2016, if not before.

My expectation is that the forms libopkg support should all be supported by bitbake unless there is a reason why that's technically impossible.  These are both yocto hosted projects.
Comment 4 Randy MacLeod 2025-01-16 15:35:56 UTC
The bitbake fetcher only supports the older format.
Someone who uses the newer format and fetching will have to submit a patch.

No one plans to work on this in the short term so set to 5.99.