Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 810634 - rpm.eclass uses rpm2tar for unpack - fails on some rpm packages
Summary: rpm.eclass uses rpm2tar for unpack - fails on some rpm packages
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-27 09:00 UTC by Anton Gubarkov
Modified: 2021-08-28 08:18 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Gubarkov 2021-08-27 09:00:43 UTC
The rpm_unpack function in rpm.eclass uses rpm2tar to unpack the contents of a RPM file to workdir. 
rpm2tar fails on some rpms (see https://bugs.gentoo.org/show_bug.cgi?id=576842)

the rpm2cpio | cpio -idm works reliably on these packages. 

Shouldn't we switch to rpm2cpio?
Comment 1 Mike Gilbert gentoo-dev 2021-08-27 14:50:31 UTC
(In reply to Anton Gubarkov from comment #0)
> Shouldn't we switch to rpm2cpio?

That would require people to install app-arch/rpm, which is a "heavier" package than rpm2targz.

I do agree that it would probably be a better solution though.