Bug 15151

Summary: Recipes using RPM fail to extract
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Will Bodley <will>
Component: meta-yoctoAssignee: Steve Sakoman <steve>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: liezhi.yang, poky.bs.watcher, poky.watcher, randy.macleod, richard.purdie
Version: 4.0.10   
Target Milestone: 4.0.13   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
Patch to resolve issue none

Description Will Bodley 2023-06-21 02:40:25 UTC
Created attachment 4956 [details]
Patch to resolve issue

Hi

We just upgraded from dunfell to kirkstone and noticed some differences in what seems to be the RPM compression, for our use case we have an internal source recipe pulling using git, and an external recipe prebuilt that uses the RPM generated by the internal source recipe. Moving to kirkstone seems to break the unpacking of the RPMs.

I've attached the patch I've used to work around the issue, let me know if there is a better way.
Comment 1 Richard Purdie 2023-06-21 09:24:35 UTC
There is a patch on the mailing list for this which upgrades the rpm2cpio.sh script but there seems to be some execution permission issue which we need to fix before it can merge. Revising that patch is probably the next step.

Note that we added unzstd to HOSTTOOLS so the zstd dependency whilst correct, isn't needed with current master.
Comment 3 Randy MacLeod 2023-06-22 14:41:57 UTC
Steve to review what's in master and consider back-porting after a bit of soak time in master. There may be problems with meta-oe or other layers.. -- YP bug reivew