For random reasons most if not all of the rust packages on Terra Rawhide are facing this exact issue[1][2][3] since the last few weeks:
rpmbuild │ + /usr/bin/env CARGO_HOME=.cargo RUSTC_BOOTSTRAP=1 'RUSTFLAGS=-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn -C link-arg=-fuse-ld=mold' /usr/bin/cargo build -j4 -Z avoid-dev-deps --profile rpm
rpmbuild │ warning: both `/github/home/rpmbuild/BUILD/ruffle-nightly-20250523-build/ruffle-nightly-2025-05-23/.cargo/config` and `/github/home/rpmbuild/BUILD/ruffle-nightly-20250523-build/ruffle-nightly-2025-05-23/.cargo/config.toml` exist. Using `/github/home/rpmbuild/BUILD/ruffle-nightly-20250523-build/ruffle-nightly-2025-05-23/.cargo/config`
rpmbuild │ Updating crates.io index
rpmbuild │ Updating git repository `https://github.com/ruffle-rs/rust-flash-lso`
rpmbuild │ Updating git repository `https://github.com/ruffle-rs/nellymoser`
rpmbuild │ Updating git repository `https://github.com/ruffle-rs/regras3`
rpmbuild │ Updating git repository `https://github.com/ruffle-rs/h263-rs`
rpmbuild │ Updating git repository `https://github.com/ruffle-rs/nihav-vp6`
rpmbuild │ Updating git repository `https://github.com/kyren/gc-arena.git`
rpmbuild │ Downloading crates ...
rpmbuild │ error: failed to download `unicode-segmentation v1.12.0`
rpmbuild │
rpmbuild │ Caused by:
rpmbuild │ Out of memory
rpmbuild │ error: Bad exit status from /var/tmp/rpm-tmp.SldqOd (%build)
This only happens on Rawhide. Since Fedora 42 and Rawhide have the same cargo
version, we can assume this is an issue not with cargo
itself.
The command is the expansion of %cargo_license_summary_online
, our own version of %cargo_license_summary
:
$ rpm -E '%cargo_license_summary'
(
set -euo pipefail
/usr/bin/env CARGO_HOME=.cargo RUSTC_BOOTSTRAP=1 RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn' /usr/bin/cargo tree -Z avoid-dev-deps --workspace --offline --edges no-build,no-dev,no-proc-macro --no-dedupe --target all --prefix none --format "# {l}" | sed -e "s: / :/:g" -e "s:/: OR :g" | sort -u
)
$ rpm -E '%cargo_license_summary_online'
(
set -euo pipefail
/usr/bin/env CARGO_HOME=.cargo RUSTC_BOOTSTRAP=1 RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn' /usr/bin/cargo tree -Z avoid-dev-deps --workspace --edges no-build,no-dev,no-proc-macro --no-dedupe --target all --prefix none --format "# {l}" | sed -e "s: / :/:g" -e "s:/: OR :g" | sort -u
)
As you can see the only difference is the lack of the --offline
flag.
Is Fedora upstream also facing the same issue? Is there an ongoing fix / bug tracker?