I'm very new to rust and trying to build ClamAV 0.105.1 which adds usage of rust. I'm getting errors like the following when building (the package name seems to change):
error: checksum for `heck v0.3.3` changed between lock files
this could be indicative of a few possible errors:
* the lock file is corrupt * a replacement source in use (e.g., a mirror) returned a different checksum * the source itself may be corrupt in one way or another
unable to verify that `heck v0.3.3` is the same as when the lockfile was generated
gmake[2]: Leaving directory '/builddir/build/BUILD/clamav-0.105.1/redhat-linux-build' gmake[2]: *** [libclamav_rust/CMakeFiles/clamav_rust_target.dir/build.make:83: libclamav_rust/x86_64-unknown-linux-gnu/debug/libclamav_rust.a] Error 101 gmake[1]: *** [CMakeFiles/Makefile2:1539: libclamav_rust/CMakeFiles/clamav_rust_target.dir/all] Error 2
I'm building from: https://src.fedoraproject.org/fork/orion/rpms/clamav/tree/0.105
though it needs a bunch of rust packages that I've just submitted for review.
Any help would be greatly appreciated.
On Mon, Aug 8, 2022 at 4:36 AM Orion Poplawski orion@nwra.com wrote:
I'm very new to rust and trying to build ClamAV 0.105.1 which adds usage of rust. I'm getting errors like the following when building (the package name seems to change):
error: checksum for `heck v0.3.3` changed between lock files
this could be indicative of a few possible errors:
* the lock file is corrupt * a replacement source in use (e.g., a mirror) returned a different
checksum * the source itself may be corrupt in one way or another
unable to verify that `heck v0.3.3` is the same as when the lockfile was generated
Looks like you're not running %cargo_prep in the correct directory. This macro explicitly removes Cargo.lock, exactly for this reason.
For context: We use a "replacement source" to replace https://crates.io with our own, local crate sources (in /usr/share/cargo/registry). RPM packages for Rust crates install their sources there.
Fabio