简体   繁体   中英

Fedora 32 unable to unpack cpio.zstd rpm

I am trying to build rpm under fedora 32. Spec file doesn't contains any special macros, just standard configure, make, make install. I found that under fedora 32 rpmbuild command pack rpm content to the.cpio.zstd archive, that can't be installed later. dnf install command for this rpm dies with error:

Error unpacking rpm package ffmpeg-1:4.3-1.fc32.x86_64

Same spec file under FC31 or EL8 produces valid rpm.

So, my question - what I am doing wrong? How to build standard cpio rpm under FC32, that can be installed?

This is cause by new compression introduced in Fedora 32. Older distribution does not understand this new compression.

You have to use the tool which is intended to build packages for different version of Fedoras/RHEL:

mock -r fedora-31-x86_64 ffmpeg.src.rpm

or

mock -r epel-8-x86_64 ffmpeg.src.rpm

For more info see https://github.com/rpm-software-management/mock/wiki

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM