Closed jtk18 closed 3 years ago
Steps to reproduce on a centos 7 machine with Rust installed already:
git clone https://github.com/cat-in-136/cargo-generate-rpm.git; cd cargo-generate-rpm
cargo install cargo-generate-rpm
cargo build --release; strip -s target/release/cargo-generate-rpm
cargo generate-rpm
rpm -i target/generate-rpm/cargo-generate-rpm-0.5.0-1.x86_64.rpm
Result:
error: unpacking of archive failed: cpio: Bad magic error: cargo-generate-rpm-0:0.5.0-1.x86_64: install failed
I'm fairly certain it's the rpm-rs crate, of course, but I thought I'd report it to you first to see if you had any ideas? Thank you very much!
Could you please try to run cargo generate-rpm--payload-compress none?
Confirmed that generates an RPM that installs. Thank you!
Steps to reproduce on a centos 7 machine with Rust installed already:
git clone https://github.com/cat-in-136/cargo-generate-rpm.git; cd cargo-generate-rpm
cargo install cargo-generate-rpm
cargo build --release; strip -s target/release/cargo-generate-rpm
cargo generate-rpm
rpm -i target/generate-rpm/cargo-generate-rpm-0.5.0-1.x86_64.rpm
Result:
I'm fairly certain it's the rpm-rs crate, of course, but I thought I'd report it to you first to see if you had any ideas? Thank you very much!