poky/meta/recipes-devtools/rust/files/triagebot.patch
Yash Shinde 6c529c908c rust: Upgrade 1.86.0 -> 1.87.0
Rust stable version updated to 1.87.0.
https://blog.rust-lang.org/2025/05/15/Rust-1.87.0/

* Update LLVM data-layout for arm64.
  LLVM requires matching data layouts and
  the aarch64 llvm data-layout was updated to to allow using
  32-bit signed/unsigned pointers when building 64-bit targets
  using 270, 271 and 272 address spaces.

  e985396145
  c9f27275c1

* Rebase existing patches with v1.87.0.

* Two tests from the `ui` and `codegen` modules now fail only on riscv64.
  Enable them on arm32/64 and x86-32/64 targets, while restricting
  them on riscv64 via `only-<target_arch>` tags.

  Test Results Summary:

  +-----------+--------+---------+
  | Machine   | Passed | Ignored |
  +-----------+--------+---------+
  | arm-32    | 28,320 | 901     |
  | arm-64    | 28,400 | 849     |
  | x86-32    | 28,285 | 885     |
  | x86-64    | 28,518 | 676     |
  | riscv-64  | 27,845 | 868     |
  +-----------+--------+---------+

* Backport triagebot.patch to skip tidy linkcheck when triagebot.toml
  is not present. Distribution tarballs won't include triagebot.toml,
  which causes tidy checks to fail.
  This backport ensures tidy checks can still run successfully
  even when the file is missing.

  https://github.com/rust-lang/rust/pull/142666/commits

* During rust installation, some binaries were installed from
  'stage2-tools' built path to '${D}${bindir}'. However, from
  v1.87 the stage2-tools are no longer built by default.
  Update logic to install from `stage1-tools` instead.

(From OE-Core rev: 16ce25e6970b4a50f6433606a0c87d22ec74ea5a)

Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-06-26 11:02:34 +01:00

33 lines
1.2 KiB
Diff

Skip tidy triagebot linkcheck if triagebot.toml doesn't exist
Distribution tarballs won't include triagebot.toml, which
causes tidy checks to fail with the following error:
tidy error: triagebot.toml file not found
some tidy checks failed
Drop the triagebot.toml check which is mostly to catch broken
path filters *within* `triagebot.toml` and not enforce
the existence of it.
Upstream-Status: Backport [https://github.com/rust-lang/rust/pull/142666/commits]
Signed-off-by: Yash Shinde <Yash.Shinde@windriver.com>
---
diff --git a/src/tools/tidy/src/triagebot.rs b/src/tools/tidy/src/triagebot.rs
--- a/src/tools/tidy/src/triagebot.rs
+++ b/src/tools/tidy/src/triagebot.rs
@@ -6,8 +6,11 @@
pub fn check(path: &Path, bad: &mut bool) {
let triagebot_path = path.join("triagebot.toml");
+
+ // This check is mostly to catch broken path filters *within* `triagebot.toml`, and not enforce
+ // the existence of `triagebot.toml` itself (which is more obvious), as distribution tarballs
+ // will not include non-essential bits like `triagebot.toml`.
if !triagebot_path.exists() {
- tidy_error!(bad, "triagebot.toml file not found");
return;
}