mirror of
https://git.yoctoproject.org/poky
synced 2026-02-06 16:56:37 +01:00
* Drop backported musl fixes.
* Set `change-id` rather than `changelog-seen`
to fix build warning.
* Add fixes for 4b7e0a0b56aa24 ("Handle vendored sources
when remapping paths") which otherwise cause build failures:
| thread 'main' panicked at src/core/builder.rs:1795:26:
| std::fs::read_dir(registry_src) failed with No such file or directory (os=
error 2)
https://blog.rust-lang.org/2023/12/28/Rust-1.75.0.html
(From OE-Core rev: 9aec2c6c777388bb3129aa4c4f27a40f912522b4)
Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
38 lines
2.1 KiB
Diff
38 lines
2.1 KiB
Diff
Fix the cargo binary path error and ensure that it is fetched
|
|
during rustc bootstrap in rust oe-selftest.
|
|
|
|
======================================================================
|
|
ERROR: test_cargoflags (bootstrap_test.BuildBootstrap)
|
|
----------------------------------------------------------------------
|
|
Traceback (most recent call last):
|
|
File "/home/build-st/tmp/work/cortexa57-poky-linux/rust/1.74.1/rustc-1.74.1-src/src/bootstrap/bootstrap_test.py", line 157, in test_cargoflags
|
|
args, _ = self.build_args(env={"CARGOFLAGS": "--timings"})
|
|
File "/home/build-st/tmp/work/cortexa57-poky-linux/rust/1.74.1/rustc-1.74.1-src/src/bootstrap/bootstrap_test.py", line 154, in build_args
|
|
return build.build_bootstrap_cmd(env), env
|
|
File "/home/build-st/tmp/work/cortexa57-poky-linux/rust/1.74.1/rustc-1.74.1-src/src/bootstrap/bootstrap.py", line 960, in build_bootstrap_cmd
|
|
raise Exception("no cargo executable found at `{}`".format(
|
|
Exception: no cargo executable found at `/home/build-st/tmp/work/cortexa57-poky-linux/rust/1.74.1/rustc-1.74.1-src/build/x86_64-unknown-linux-gnu/stage0/bin/cargo`
|
|
|
|
Upstream-Status: Submitted [https://github.com/rust-lang/rust/pull/120125]
|
|
|
|
Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com>
|
|
---
|
|
diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py
|
|
--- a/src/bootstrap/bootstrap.py
|
|
+++ b/src/bootstrap/bootstrap.py
|
|
@@ -954,9 +954,11 @@
|
|
if "RUSTFLAGS_BOOTSTRAP" in env:
|
|
env["RUSTFLAGS"] += " " + env["RUSTFLAGS_BOOTSTRAP"]
|
|
|
|
- env["PATH"] = os.path.join(self.bin_root(), "bin") + \
|
|
- os.pathsep + env["PATH"]
|
|
- if not os.path.isfile(self.cargo()):
|
|
+ cargo_bin_path = os.path.join(self.bin_root(), "bin", "cargo")
|
|
+ if not os.path.isfile(cargo_bin_path):
|
|
+ cargo_bin_path = os.getenv("RUST_TARGET_PATH") + "rust-snapshot/bin/cargo"
|
|
+ env["PATH"] = os.path.dirname(cargo_bin_path) + os.pathsep + env["PATH"]
|
|
+ else:
|
|
raise Exception("no cargo executable found at `{}`".format(
|
|
self.cargo()))
|
|
args = [self.cargo(), "build", "--manifest-path",
|