cat-in-136 / cargo-generate-rpm

Cargo helper command to generate a binary RPM package
MIT License
87 stars 19 forks source link

error: unpacking of archive failed on file /lib/systemd/system/xxx.service;6496c577: cpio: Digest mismatch #87

Closed vkill closed 1 year ago

vkill commented 1 year ago

Hi, there

When I run sudo yum localinstall -y target/generate-rpm/*-0.1.0-1.x86_64.rpm, the Digest mismatch error happened.

But I have no problem using 0.11.0

cargo install cargo-generate-rpm --version 0.11.0 --force
cargo generate-rpm --payload-compress gzip
cat-in-136 commented 1 year ago

@vkill are you use older system? it seems related to rpm-rs/rpm#148

vkill commented 1 year ago

@cat-in-136 Yes, CentOS 7

fritshoogland-yugabyte commented 1 year ago

the digest error is because executable in the file, at least in my case, is zero bytes. that means that the errors you find about tips etc. are not true in this case: the file included in the rpm is zero bytes. if I install cargo-generate-rpm 0.11.0, I get a non-zero executable, and it works. same here too: centos 7