Reputation: 562
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?
Upvotes: 2
Views: 1145
Reputation: 5427
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
Upvotes: 1