https://bugzilla.redhat.com/show_bug.cgi?id=2124697
--- Comment #50 from Richard W.M. Jones rjones@redhat.com --- (In reply to Stefan Hajnoczi from comment #49)
Hi Rich, Is it possible to add the following to the rpm spec file?
export CARGO_NET_OFFLINE=true # avoid the need to patch src/cargo-build.sh
The above failed with the error:
error: the lock file /home/rjones/rpmbuild/BUILD/libblkio-v1.1.1/Cargo.lock needs to be updated but --locked was passed to prevent this
(The original code which edited cargo-build.sh was designed to prevent that)
# Explicitly enable debuginfo and release build optimization level for now. # In the future this can be dropped when rpm macros set RUSTFLAGS # themselves like they set CFLAGS, CXXFLAGS, etc. {%meson} -Ddebug=true -Doptimization=3
Making just this change, here are new scratch builds:
f37: https://koji.fedoraproject.org/koji/taskinfo?taskID=94429101 f38: https://koji.fedoraproject.org/koji/taskinfo?taskID=94429097
I think this will work on both f37 and f38.
For f38 please see this libblkio merge request: https://gitlab.com/libblkio/libblkio/-/merge_requests/149