When I try to do a local build with fedpkg local I generally get something like:
++ /usr/bin/cargo-inspector --version Cargo.toml + CRATE_VERSION=0.2.6 + REG_DIR=/home/orion/BUILDROOT/rust-jpeg-decoder-0.2.6-1.fc37.x86_64/usr/share/cargo/registry/jpeg-decoder-0.2.6 + /usr/bin/mkdir -p /home/orion/BUILDROOT/rust-jpeg-decoder-0.2.6-1.fc37.x86_64/usr/share/cargo/registry/jpeg-decoder-0.2.6 + gawk -i inplace -v INPLACE_SUFFIX=.deps '/^[((.+.)?((dev|build)-)?dependencies|features)/{f=1;next} /^[/{f=0}; !f' Cargo.toml + /usr/bin/env CARGO_HOME=.cargo RUSTC_BOOTSTRAP=1 'RUSTFLAGS=-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now -Clink-arg=-Wl,-dT,/home/orion/fedora/rust-jpeg-decoder/jpeg-decoder-0.2.6/.package_note-rust-jpeg-decoder-0.2.6-1.fc37.x86_64.ld --cap-lints=warn' /usr/bin/cargo package -l + grep -w -E -v 'Cargo.(lock|toml.orig)' + xargs -d '\n' /usr/bin/cp --parents -a -t /home/orion/BUILDROOT/rust-jpeg-decoder-0.2.6-1.fc37.x86_64/usr/share/cargo/registry/jpeg-decoder-0.2.6 error: 36 files in the working directory contain changes that were not yet committed into git:
tests/rayon.rs tests/lib.rs tests/rayon-0.rs tests/rayon-1.rs tests/rayon-2.rs Cargo.toml.deps LICENSE-MIT Cargo.toml src/marker.rs src/lib.rs src/decoder/lossless.rs src/idct.rs src/worker/mod.rs src/worker/rayon.rs src/worker/multithreaded.rs src/worker/immediate.rs src/arch/mod.rs src/arch/neon.rs src/arch/ssse3.rs src/parser.rs src/huffman.rs src/error.rs src/decoder.rs src/upsampler.rs LICENSE-APACHE benches/tower.jpg benches/large_image.rs benches/tower_progressive.jpg benches/tower_grayscale.jpg benches/decoding_benchmark.rs benches/large_image.jpg CHANGELOG.md rust-toolchain appveyor.yml README.md examples/decode.rs
to proceed despite this and include the uncommitted changes, pass the `--allow-dirty` flag /usr/bin/cp: missing file operand Try '/usr/bin/cp --help' for more information. error: Bad exit status from /var/tmp/rpm-tmp.SxxYSB (%install)
How does one get around this?
On Mon, Aug 8, 2022 at 4:54 AM Orion Poplawski orion@nwra.com wrote:
When I try to do a local build with fedpkg local I generally get something like:
I've never seen this particular error before, but "fedpkg local" will not work for 99% of Rust packages (or any other package that uses dynamically generated BuildRequires). Build with mock instead (i.e. "mock -r fedora-rawhide-x86_64 ./*.src.rpm").
Fabio