Bug 13958

Summary: busybox ar can not extract ipk files anymore
Product: [Yocto Project Subprojects] opkg Reporter: Khem Raj <raj.khem>
Component: opkgAssignee: Alejandro del Castillo <alejandro.delcastillo>
Status: RESOLVED NOTABUG QA Contact:
Severity: normal    
Priority: Undecided CC: richard.purdie
Version: 0.4.2   
Target Milestone: ---   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description Khem Raj 2020-06-24 11:11:08 UTC
busybox ar applet can be used to extract opkg and dpkg archives, however of late it has started to regress in dunfell onwards, it worked well before. To reproduce the problem take any ipk produced by build and try to extract it

busybox ar -x ./xz_5.2.5-r0.2_cortexa55.ipk

the extraction works fine with binutils ar, however something in ipk header has changed which is not compatible with what busybox is expecting.
Comment 1 Richard Purdie 2020-06-25 06:29:56 UTC
Is this not the change to the compression format rather than anything else? Maybe the move to xz for compression?
Comment 2 Khem Raj 2020-06-25 10:53:29 UTC
(In reply to comment #1)
> Is this not the change to the compression format rather than anything else?
> Maybe the move to xz for compression?

In the end, I think its a busybox bug, where it cant handle archives built with ar -D
therefore I have filed a bug for busybox upstream [1]. This can be closed.

[1] https://bugs.busybox.net/show_bug.cgi?id=13036