[Rpm-maint] [rpm-software-management/rpm] RFE: add option to use an external decompressor to rpm2cpio and rpm2archive (Issue #1939)

Panu Matilainen notifications at github.com
Fri Feb 25 08:03:00 UTC 2022


As it is, at least rpm2cpio happens to allow an external decompressor for unsupported formats because rpmio is sloppy and just returns the compressed stream as such for any invalid/unknown decompressor flags, eg `rpm2cpio foo.rpm | zstd -d | cpio`  can be used to work around lack of zstd support in older versions of librpm. This is an useful thing to have, but it should be an explicit thing.

1. rpmio needs to return failure for invalid compressor flags
2. rpm2cpio (and rpm2archive) need to check for that failure and error out cleanly
3. rpm2cpio (and rpm2archive) should offer an option to let an external decompressor handle it, ie just not reopen the piggyback stream at all
4. as a part of this, rpm2cpio be ported to popt, finally

Inspired by https://bugzilla.redhat.com/show_bug.cgi?id=2058426

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1939
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/issues/1939 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20220225/b7ec2be6/attachment.html>


More information about the Rpm-maint mailing list