public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Paul Murphy <murp@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rust] f45: Fix bootstrap builds
Date: Fri, 13 Nov 2026 21:41:59 GMT [thread overview]
Message-ID: <179460611968.1.16459604689401244641.rpms-rust-b74919c5f09e@fedoraproject.org> (raw)
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*/
reply other threads:[~2026-11-13 21:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179460611968.1.16459604689401244641.rpms-rust-b74919c5f09e@fedoraproject.org \
--to=murp@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox