public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust] f45: Fix bootstrap builds
@ 2026-11-13 21:41 Paul Murphy
0 siblings, 0 replies; only message in thread
From: Paul Murphy @ 2026-11-13 21:41 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/rust
Branch : f45
Commit : b74919c5f09eb933290224b198c49da1d91a4d99
Author : Paul Murphy <murp@redhat.com>
Date : 2026-10-28T09:04:17-05:00
Stats : +2/-2 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/rust/c/b74919c5f09eb933290224b198c49da1d91a4d99?branch=f45
Log:
Fix bootstrap builds
Lua 5.5 has made loop variables read-only.
Use an absolute path to invoke cargo when generating
profiling data. The bootstrap cargo isn't in $PATH.
---
diff --git a/rust.spec b/rust.spec
index c8f8d2e..3b3da60 100644
--- a/rust.spec
+++ b/rust.spec
@@ -241,7 +241,7 @@ end}
local channel = rpm.expand("%{bootstrap_channel}")
local target_arch = rpm.expand("%{_target_cpu}")
for i, arch in ipairs(bootstrap_arches) do
- i = 1000 + i * 6
+ local i = 1000 + i * 6
local suffix = channel.."-"..rust_triple(arch)
print(string.format("Source%d: %s/cargo-%s.tar.xz\n", i, base, suffix))
print(string.format("Source%d: %s/cargo-%s.tar.xz.asc\n", i+1, base, suffix))
@@ -973,7 +973,7 @@ mkdir -p "%{profraw}"
env LLVM_PROFILE_FILE="%{profraw}/default_%%m_%%p.profraw" \
LD_LIBRARY_PATH=$PWD/build/host/stage2/lib \
RUSTC=$PWD/build/host/stage2/bin/rustc \
- cargo build --manifest-path=src/tools/cargo/Cargo.toml
+ %{local_rust_root}/bin/cargo build --manifest-path=src/tools/cargo/Cargo.toml
# Finalize the profile data and clean up the raw files
llvm-profdata merge -o "%{profdata}" "%{profraw}"
rm -r "%{profraw}" build/%{rust_triple}/stage2*/
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-13 21:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-13 21:41 [rpms/rust] f45: Fix bootstrap builds Paul Murphy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox