* [meta-lts-mixins][wrynose/rust][PATCH 00/10] Update to 1.100.0
@ 2026-11-30 0:52 Scott Murray
2026-11-30 0:52 ` [meta-lts-mixins][wrynose/rust][PATCH 01/10] rust-target-config.bbclass: Add i128:128 to mips64 data layouts Scott Murray
` (9 more replies)
0 siblings, 10 replies; 11+ messages in thread
From: Scott Murray @ 2026-11-30 0:52 UTC (permalink / raw)
To: yocto-patches
This patch series for the wrynose/rust mixin layer backports the
recent Rust toolchain changes in oe-core master branch to pull in
the 1.99.1 -> 1.100.0 update and other fixes.
I intend to merge this series to wrynose/rust by end of day Tuesday,
Dec. 1 (EST), unless an issue is pointed out.
Scott
Changes:
Benhur Tessele (1):
rust: add rust-analyzer to the SDK behind a PACKAGECONFIG
Deepesh Varatharajan (1):
rust: Fix intermittent test failure
Hemanth Kumar M D (2):
rust: Upgrade 1.99.1 -> 1.100.0
rust: drop native libLLVM path for non-host architectures
Michal Sieron (2):
rust-target-config.bbclass: Add i128:128 to mips64 data layouts
rust-target-config.bbclass: Set llvm-abiname for mips64 targets
Trevor Gamblin (4):
rust-target-config.bbclass: pass on all RISC-V extensions to LLVM
ptest-cargo.bbclass: run do_install_ptest_cargo as a postfunc
librsvg: make ptest symlink creation idempotent
ptest-cargo.bbclass: don't follow symlinks when chowning
classes-recipe/ptest-cargo.bbclass | 25 +-
classes-recipe/rust-target-config.bbclass | 42 +--
conf/layer.conf | 4 +-
lib/oeqa/selftest/cases/rust_mixin.py | 1 +
.../{cargo_1.99.1.bb => cargo_1.100.0.bb} | 0
...teps-tool.rs-switch-off-lto-for-rust.patch | 27 +-
...ip-StdarchVerify-when-remote-testing.patch | 30 --
...host-triple-from-unit-metadata-hash.patch} | 0
...ess-tests-adjust-for-new-Cargo-lints.patch | 287 ++++++++++++++++++
...hygiene-encoding-order-deterministic.patch | 59 ----
...native-sysroot-L-when-cross-building.patch | 49 +++
...se-thread-local-in-c_str_alloc_error.patch | 64 ++++
...bject-names-relative-to-source-roots.patch | 40 ++-
...bstd-rs_1.99.1.bb => libstd-rs_1.100.0.bb} | 10 +-
...99.1.bb => rust-cross-canadian_1.100.0.bb} | 0
recipes-devtools/rust/rust-snapshot.inc | 104 +++----
recipes-devtools/rust/rust-source.inc | 9 +-
...ource_1.99.1.bb => rust-source_1.100.0.bb} | 0
.../rust/{rust_1.99.1.bb => rust_1.100.0.bb} | 18 ++
recipes-gnome/librsvg/librsvg_2.63.4.bb | 2 +-
20 files changed, 544 insertions(+), 227 deletions(-)
rename recipes-devtools/rust/{cargo_1.99.1.bb => cargo_1.100.0.bb} (100%)
delete mode 100644 recipes-devtools/rust/files/0003-bootstrap-skip-StdarchVerify-when-remote-testing.patch
rename recipes-devtools/rust/files/{0004-cargo-omit-host-triple-from-unit-metadata-hash.patch => 0003-cargo-omit-host-triple-from-unit-metadata-hash.patch} (100%)
create mode 100644 recipes-devtools/rust/files/0004-Re-bless-tests-adjust-for-new-Cargo-lints.patch
delete mode 100644 recipes-devtools/rust/files/0005-rustc-span-make-hygiene-encoding-order-deterministic.patch
create mode 100644 recipes-devtools/rust/files/0005-rustc_llvm-drop-native-sysroot-L-when-cross-building.patch
create mode 100644 recipes-devtools/rust/files/0006-alloctests-use-thread-local-in-c_str_alloc_error.patch
rename recipes-devtools/rust/{libstd-rs_1.99.1.bb => libstd-rs_1.100.0.bb} (77%)
rename recipes-devtools/rust/{rust-cross-canadian_1.99.1.bb => rust-cross-canadian_1.100.0.bb} (100%)
rename recipes-devtools/rust/{rust-source_1.99.1.bb => rust-source_1.100.0.bb} (100%)
rename recipes-devtools/rust/{rust_1.99.1.bb => rust_1.100.0.bb} (92%)
--
2.56.1
^ permalink raw reply [flat|nested] 11+ messages in thread
* [meta-lts-mixins][wrynose/rust][PATCH 01/10] rust-target-config.bbclass: Add i128:128 to mips64 data layouts
2026-11-30 0:52 [meta-lts-mixins][wrynose/rust][PATCH 00/10] Update to 1.100.0 Scott Murray
@ 2026-11-30 0:52 ` Scott Murray
2026-11-30 0:52 ` [meta-lts-mixins][wrynose/rust][PATCH 02/10] rust-target-config.bbclass: Set llvm-abiname for mips64 targets Scott Murray
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Scott Murray @ 2026-11-30 0:52 UTC (permalink / raw)
To: yocto-patches
From: Michal Sieron <michalwsieron@gmail.com>
LLVM 22 added i128:128 to the default MIPS64 data layout. rustc rejects
a target spec whose data-layout differs from the one LLVM reports, so
building libstd for mips64 fails:
error: data-layout for target `mips64-octeon2-linux-gnu`,
`E-m:e-i8:8:32-i16:16:32-i64:64-n32:64-S128`, differs from LLVM
target's `mips64-octeon2-linux-gnu` default layout,
`E-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128`
Add i128:128 to the mips64 and mips64el entries to match, as already
done for the other 64-bit architectures. mips64-n32 is left alone.
AI-Generated: Uses Cursor
Signed-off-by: Michal Sieron <michal.sieron@nokia.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(adapted from oe-core commit 781e3a54a8cf13c092fd68c46cd87d80ca8679f0)
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
---
classes-recipe/rust-target-config.bbclass | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/classes-recipe/rust-target-config.bbclass b/classes-recipe/rust-target-config.bbclass
index fee19a1..1faaaef 100644
--- a/classes-recipe/rust-target-config.bbclass
+++ b/classes-recipe/rust-target-config.bbclass
@@ -225,7 +225,7 @@ TARGET_C_INT_WIDTH[mipsel] = "32"
MAX_ATOMIC_WIDTH[mipsel] = "32"
## mips64-unknown-linux-{gnu, musl}
-DATA_LAYOUT[mips64] = "E-m:e-i8:8:32-i16:16:32-i64:64-n32:64-S128"
+DATA_LAYOUT[mips64] = "E-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
TARGET_ENDIAN[mips64] = "big"
TARGET_POINTER_WIDTH[mips64] = "64"
TARGET_C_INT_WIDTH[mips64] = "32"
@@ -239,7 +239,7 @@ TARGET_C_INT_WIDTH[mips64-n32] = "32"
MAX_ATOMIC_WIDTH[mips64-n32] = "64"
## mips64el-unknown-linux-{gnu, musl}
-DATA_LAYOUT[mips64el] = "e-m:e-i8:8:32-i16:16:32-i64:64-n32:64-S128"
+DATA_LAYOUT[mips64el] = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
TARGET_ENDIAN[mips64el] = "little"
TARGET_POINTER_WIDTH[mips64el] = "64"
TARGET_C_INT_WIDTH[mips64el] = "32"
--
2.56.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [meta-lts-mixins][wrynose/rust][PATCH 02/10] rust-target-config.bbclass: Set llvm-abiname for mips64 targets
2026-11-30 0:52 [meta-lts-mixins][wrynose/rust][PATCH 00/10] Update to 1.100.0 Scott Murray
2026-11-30 0:52 ` [meta-lts-mixins][wrynose/rust][PATCH 01/10] rust-target-config.bbclass: Add i128:128 to mips64 data layouts Scott Murray
@ 2026-11-30 0:52 ` Scott Murray
2026-11-30 0:52 ` [meta-lts-mixins][wrynose/rust][PATCH 03/10] rust: add rust-analyzer to the SDK behind a PACKAGECONFIG Scott Murray
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Scott Murray @ 2026-11-30 0:52 UTC (permalink / raw)
To: yocto-patches
From: Michal Sieron <michalwsieron@gmail.com>
Recent rustc requires 64-bit MIPS target specs to name the LLVM ABI and
fails the build of libstd otherwise:
error: LLVM ABI must be specified for 64-bit MIPS targets
Set llvm-abiname to n64 for mips64 and mips64el, and to n32 for the
mips64-n32 variant, matching the ABIs the data layouts already describe.
AI-Generated: Uses Cursor
Signed-off-by: Michal Sieron <michal.sieron@nokia.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(adapted from oe-core commit 9518ce9aa2a6cbce678895ef9a95cd27939dae2a)
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
---
classes-recipe/rust-target-config.bbclass | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/classes-recipe/rust-target-config.bbclass b/classes-recipe/rust-target-config.bbclass
index 1faaaef..2faecd5 100644
--- a/classes-recipe/rust-target-config.bbclass
+++ b/classes-recipe/rust-target-config.bbclass
@@ -418,6 +418,10 @@ def rust_gen_target(d, thing, wd, arch):
tspec['llvm-abiname'] = d.getVar('TUNE_RISCV_ABI')
if "loongarch64" in tspec['llvm-target']:
tspec['llvm-abiname'] = "lp64d"
+ if arch_abi == "mips64-n32":
+ tspec['llvm-abiname'] = "n32"
+ elif rust_arch in ("mips64", "mips64el"):
+ tspec['llvm-abiname'] = "n64"
if "powerpc64le" in tspec['llvm-target']:
tspec['llvm-abiname'] = "elfv2"
elif "powerpc64" in tspec['llvm-target']:
--
2.56.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [meta-lts-mixins][wrynose/rust][PATCH 03/10] rust: add rust-analyzer to the SDK behind a PACKAGECONFIG
2026-11-30 0:52 [meta-lts-mixins][wrynose/rust][PATCH 00/10] Update to 1.100.0 Scott Murray
2026-11-30 0:52 ` [meta-lts-mixins][wrynose/rust][PATCH 01/10] rust-target-config.bbclass: Add i128:128 to mips64 data layouts Scott Murray
2026-11-30 0:52 ` [meta-lts-mixins][wrynose/rust][PATCH 02/10] rust-target-config.bbclass: Set llvm-abiname for mips64 targets Scott Murray
@ 2026-11-30 0:52 ` Scott Murray
2026-11-30 0:52 ` [meta-lts-mixins][wrynose/rust][PATCH 04/10] rust: Upgrade 1.99.1 -> 1.100.0 Scott Murray
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Scott Murray @ 2026-11-30 0:52 UTC (permalink / raw)
To: yocto-patches
From: Benhur Tessele <benhur.tessele@est.tech>
Add a rust-analyzer PACKAGECONFIG option which, when enabled, installs
it for the nativesdk variant and packages it as rust-tools-analyzer. The
option is disabled by default.
Two additional pieces are required for the tool to be usable:
- The proc-macro server, rust-analyzer-proc-macro-srv, which
rust-analyzer looks up under <sysroot>/libexec. Install it into
${libexecdir}; without it, analysis of any crate using a derive or
attribute macro fails with "cannot find proc-macro server in sysroot".
- The standard library sources, which rust-analyzer analyses from source
rather than from the compiled rlibs. Add an RDEPENDS on ${PN}-src-lib
so that core/std items resolve.
Both binaries link against librustc_driver from the main package, so the
package also RDEPENDS on ${PN}.
rust-analyzer is only installed for nativesdk, as a language server is
used on the SDK host rather than on a target device.
To get it into an SDK:
SDK_FEATURES:append = " rust"
PACKAGECONFIG:append:pn-nativesdk-rust = " rust-analyzer"
TOOLCHAIN_HOST_TASK:append = " nativesdk-rust-tools-analyzer"
Tested by building an SDK with the option enabled and confirming
rust-analyzer resolves the standard library and expands proc-macros, and
by building with the option disabled to confirm the default configuration
is unaffected.
AI-Generated: Kiro with Claude Opus 5
Signed-off-by: Benhur Tessele <benhur.tessele@est.tech>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(adapted from oe-core commit bfeb93bd978c1f03947a90b137bb9237807cc842)
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
---
recipes-devtools/rust/rust_1.99.1.bb | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/recipes-devtools/rust/rust_1.99.1.bb b/recipes-devtools/rust/rust_1.99.1.bb
index 4fa6f1a..5933578 100644
--- a/recipes-devtools/rust/rust_1.99.1.bb
+++ b/recipes-devtools/rust/rust_1.99.1.bb
@@ -24,6 +24,8 @@ RDEPENDS:${PN}:append:class-target = " gcc g++ binutils"
PACKAGECONFIG ??= "llvm-shared"
PACKAGECONFIG[llvm-shared] = ",,,"
+# Only used by the nativesdk variant; rust-analyzer runs on the SDK host
+PACKAGECONFIG[rust-analyzer] = ",,,"
S = "${RUSTSRC}"
# Separate build directory from the shared source tree so that multiple
@@ -282,17 +284,21 @@ do_test_compile () {
ALLOW_EMPTY:${PN} = "1"
PACKAGES =+ "${PN}-rustdoc ${PN}-tools-clippy ${PN}-tools-rustfmt ${PN}-src-lib"
+PACKAGES:prepend:class-nativesdk = "${@bb.utils.contains('PACKAGECONFIG', 'rust-analyzer', '${PN}-tools-analyzer ', '', d)}"
FILES:${PN}-rustdoc = "${bindir}/rustdoc"
FILES:${PN}-tools-clippy = "${bindir}/cargo-clippy ${bindir}/clippy-driver"
FILES:${PN}-tools-rustfmt = "${bindir}/rustfmt"
+FILES:${PN}-tools-analyzer = "${bindir}/rust-analyzer ${libexecdir}/rust-analyzer-proc-macro-srv"
FILES:${PN}-src-lib = "${libdir}/rustlib/src/rust"
RDEPENDS:${PN}-rustdoc = "${PN}"
RDEPENDS:${PN}-tools-clippy = "${PN}"
RDEPENDS:${PN}-tools-rustfmt = "${PN}"
+RDEPENDS:${PN}-tools-analyzer = "${PN} ${PN}-src-lib"
SUMMARY:${PN}-tools-clippy = "A collection of lints to catch common mistakes and improve your Rust code"
SUMMARY:${PN}-tools-rustfmt = "A tool for formatting Rust code according to style guidelines"
+SUMMARY:${PN}-tools-analyzer = "A language server providing IDE features for Rust"
do_install () {
rust_do_install
@@ -314,6 +320,10 @@ rust_do_install:class-nativesdk() {
rust_runx install
rust_runx install clippy
rust_runx install rustfmt
+ if ${@bb.utils.contains('PACKAGECONFIG', 'rust-analyzer', 'true', 'false', d)}; then
+ rust_runx install rust-analyzer
+ rust_runx build rust-analyzer-proc-macro-srv
+ fi
unset PSEUDO_UNLOAD
install -d ${D}${bindir}
@@ -322,6 +332,14 @@ rust_do_install:class-nativesdk() {
patchelf --set-rpath "\$ORIGIN/../lib" ${D}${bindir}/$i
done
+ if ${@bb.utils.contains('PACKAGECONFIG', 'rust-analyzer', 'true', 'false', d)}; then
+ install -d ${D}${libexecdir}
+ cp rust-build/${RUST_BUILD_SYS}/stage2-tools/${RUST_HOST_SYS}/release/rust-analyzer ${D}${bindir}
+ patchelf --set-rpath "\$ORIGIN/../lib" ${D}${bindir}/rust-analyzer
+ cp rust-build/${RUST_BUILD_SYS}/stage2-tools/${RUST_HOST_SYS}/release/rust-analyzer-proc-macro-srv ${D}${libexecdir}
+ patchelf --set-rpath "\$ORIGIN/../lib" ${D}${libexecdir}/rust-analyzer-proc-macro-srv
+ fi
+
chown root:root ${D}/ -R
rm ${D}${libdir}/rustlib/uninstall.sh
rm ${D}${libdir}/rustlib/install.log
--
2.56.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [meta-lts-mixins][wrynose/rust][PATCH 04/10] rust: Upgrade 1.99.1 -> 1.100.0
2026-11-30 0:52 [meta-lts-mixins][wrynose/rust][PATCH 00/10] Update to 1.100.0 Scott Murray
` (2 preceding siblings ...)
2026-11-30 0:52 ` [meta-lts-mixins][wrynose/rust][PATCH 03/10] rust: add rust-analyzer to the SDK behind a PACKAGECONFIG Scott Murray
@ 2026-11-30 0:52 ` Scott Murray
2026-11-30 0:52 ` [meta-lts-mixins][wrynose/rust][PATCH 05/10] rust: drop native libLLVM path for non-host architectures Scott Murray
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Scott Murray @ 2026-11-30 0:52 UTC (permalink / raw)
To: yocto-patches
From: Hemanth Kumar M D <Hemanth.KumarMD@windriver.com>
Rust Changes:
https://github.com/rust-lang/rust/releases/tag/1.100.0
Cargo Changes:
https://doc.rust-lang.org/nightly/cargo/CHANGELOG.html
Update local patches:
0001-src-core-build_steps-tool.rs-switch-off-lto-for-rust.patch
cc-hash-object-names-relative-to-source-roots.patch
Drop merged patches:
0003-bootstrap-skip-StdarchVerify-when-remote-testing.patch
0005-rustc-span-make-hygiene-encoding-order-deterministic.patch
Backport 0004-Re-bless-tests-adjust-for-new-Cargo-lints.patch to fix
do_install with the new cargo lints [1].
libstd-rs: cargo now uses a new directory layout [2]. Each crate's
artifacts are in build/<crate>/<hash>/out/ and deps/ is no longer
created, so update do_install to copy the libraries from there.
oe-selftest: exclude only the baseline revision of
tests/ui/asm/arm-high-dregs.rs. It expects an error for the d16 register
on an armv7 target without neon. OE's default configuration for qemuarm
(tune-cortexa15.inc, DEFAULTTUNE cortexa15thf-neon) enables neon, so the
expected error is not emitted [3].
Excluded tests:
+---------+---------+---------+
| Before | After | Skipped |
+---------+---------+---------+
| 44 | 45 | +1 |
+---------+---------+---------+
[1] https://github.com/rust-lang/cargo/pull/17298
[2] https://github.com/rust-lang/cargo/pull/17354
[3] https://github.com/rust-lang/rust/blob/1.100.0/tests/ui/asm/arm-high-dregs.rs
Test results:
rust v1.100.0 (from autobuilder)
+-------------+---------+---------+
| Machine | Passed | Skipped |
+-------------+---------+---------+
| qemux86-64 | 24201 | 1083 |
| qemux86 | 23934 | 1352 |
| qemuarm | 23914 | 1371 |
| qemuarm64 | 24028 | 1258 |
| qemuriscv64 | 23969 | 1315 |
+-------------+---------+---------+
Test results difference (1.100.0 - 1.99.1):
+-------------+--------+---------+
| Machine | Passed | Skipped |
+-------------+--------+---------+
| qemux86-64 | +510 | +61 |
| qemux86 | +506 | +67 |
| qemuarm | +506 | +66 |
| qemuarm64 | +506 | +67 |
| qemuriscv64 | +505 | +66 |
+-------------+--------+---------+
Signed-off-by: Hemanth Kumar M D <Hemanth.KumarMD@windriver.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(adapted from oe-core commit fae96382d70aeb58de3a668edd53368693ef609c)
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
---
conf/layer.conf | 4 +-
lib/oeqa/selftest/cases/rust_mixin.py | 1 +
.../{cargo_1.99.1.bb => cargo_1.100.0.bb} | 0
...teps-tool.rs-switch-off-lto-for-rust.patch | 27 +-
...ip-StdarchVerify-when-remote-testing.patch | 30 --
...host-triple-from-unit-metadata-hash.patch} | 0
...ess-tests-adjust-for-new-Cargo-lints.patch | 287 ++++++++++++++++++
...hygiene-encoding-order-deterministic.patch | 59 ----
...bject-names-relative-to-source-roots.patch | 40 ++-
...bstd-rs_1.99.1.bb => libstd-rs_1.100.0.bb} | 10 +-
...99.1.bb => rust-cross-canadian_1.100.0.bb} | 0
recipes-devtools/rust/rust-snapshot.inc | 104 +++----
recipes-devtools/rust/rust-source.inc | 7 +-
...ource_1.99.1.bb => rust-source_1.100.0.bb} | 0
.../rust/{rust_1.99.1.bb => rust_1.100.0.bb} | 0
15 files changed, 385 insertions(+), 184 deletions(-)
rename recipes-devtools/rust/{cargo_1.99.1.bb => cargo_1.100.0.bb} (100%)
delete mode 100644 recipes-devtools/rust/files/0003-bootstrap-skip-StdarchVerify-when-remote-testing.patch
rename recipes-devtools/rust/files/{0004-cargo-omit-host-triple-from-unit-metadata-hash.patch => 0003-cargo-omit-host-triple-from-unit-metadata-hash.patch} (100%)
create mode 100644 recipes-devtools/rust/files/0004-Re-bless-tests-adjust-for-new-Cargo-lints.patch
delete mode 100644 recipes-devtools/rust/files/0005-rustc-span-make-hygiene-encoding-order-deterministic.patch
rename recipes-devtools/rust/{libstd-rs_1.99.1.bb => libstd-rs_1.100.0.bb} (77%)
rename recipes-devtools/rust/{rust-cross-canadian_1.99.1.bb => rust-cross-canadian_1.100.0.bb} (100%)
rename recipes-devtools/rust/{rust-source_1.99.1.bb => rust-source_1.100.0.bb} (100%)
rename recipes-devtools/rust/{rust_1.99.1.bb => rust_1.100.0.bb} (100%)
diff --git a/conf/layer.conf b/conf/layer.conf
index b563428..0a00792 100644
--- a/conf/layer.conf
+++ b/conf/layer.conf
@@ -13,8 +13,8 @@ LAYERSERIES_COMPAT_wrynose-rust-mixin = "wrynose"
LAYERDEPENDS_wrynose-rust-mixin = "core"
-RUSTVERSION ?= "1.99.1%"
+RUSTVERSION ?= "1.100.0%"
# For lack of a better place to put this since it needs to be visible
# globally, carry it here.
-RECIPE_MAINTAINER:pn-rust-source-1.99.1 = "Deepesh Varatharajan <Deepesh.Varatharajan@windriver.com>"
+RECIPE_MAINTAINER:pn-rust-source-1.100.0 = "Deepesh Varatharajan <Deepesh.Varatharajan@windriver.com>"
diff --git a/lib/oeqa/selftest/cases/rust_mixin.py b/lib/oeqa/selftest/cases/rust_mixin.py
index 645b5d5..03af983 100644
--- a/lib/oeqa/selftest/cases/rust_mixin.py
+++ b/lib/oeqa/selftest/cases/rust_mixin.py
@@ -93,6 +93,7 @@ class RustSelfTestSystemEmulated(OESelftestTestCase, OEPTestResultTestCase):
'tests/rustdoc-js-std',
'tests/ui/abi/stack-probes-lto.rs',
'tests/ui/abi/stack-probes.rs',
+ 'tests/ui/asm/arm-high-dregs.rs#baseline',
'tests/ui/codegen/huge-stacks.rs',
'tests/ui/codegen/mismatched-data-layouts.rs',
'tests/codegen-llvm/rust-abi-arch-specific-adjustment.rs',
diff --git a/recipes-devtools/rust/cargo_1.99.1.bb b/recipes-devtools/rust/cargo_1.100.0.bb
similarity index 100%
rename from recipes-devtools/rust/cargo_1.99.1.bb
rename to recipes-devtools/rust/cargo_1.100.0.bb
diff --git a/recipes-devtools/rust/files/0001-src-core-build_steps-tool.rs-switch-off-lto-for-rust.patch b/recipes-devtools/rust/files/0001-src-core-build_steps-tool.rs-switch-off-lto-for-rust.patch
index 0bd32ec..7482c2a 100644
--- a/recipes-devtools/rust/files/0001-src-core-build_steps-tool.rs-switch-off-lto-for-rust.patch
+++ b/recipes-devtools/rust/files/0001-src-core-build_steps-tool.rs-switch-off-lto-for-rust.patch
@@ -18,17 +18,21 @@ Upstream-Status: Inappropriate [reported at https://github.com/rust-lang/rust/is
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Deepesh Varatharajan <Deepesh.Varatharajan@windriver.com>
---
- src/bootstrap/src/core/build_steps/tool.rs | 19 +++----------------
+ src/bootstrap/src/core/build_steps/tool.rs | 22 ++++------------------
src/bootstrap/src/core/builder/mod.rs | 2 +-
- 2 files changed, 4 insertions(+), 17 deletions(-)
+ 2 files changed, 5 insertions(+), 19 deletions(-)
+diff --git a/src/bootstrap/src/core/build_steps/tool.rs b/src/bootstrap/src/core/build_steps/tool.rs
+index c4fae69..7c4e230 100644
--- a/src/bootstrap/src/core/build_steps/tool.rs
+++ b/src/bootstrap/src/core/build_steps/tool.rs
-@@ -13,14 +13,13 @@
+@@ -13,16 +13,16 @@ use std::ffi::OsStr;
use std::path::{Path, PathBuf};
use std::{env, fs};
--use crate::core::build_steps::compile::is_lto_stage;
+-use crate::core::build_steps::compile::{CargoMessage, is_lto_stage};
++use crate::core::build_steps::compile::CargoMessage;
+ use crate::core::build_steps::dist::LLD_FILE_NAMES;
use crate::core::build_steps::toolstate::ToolState;
use crate::core::build_steps::{compile, llvm};
use crate::core::builder::{
@@ -36,12 +40,13 @@ Signed-off-by: Deepesh Varatharajan <Deepesh.Varatharajan@windriver.com>
- StepMetadata, apply_pgo, cargo_profile_var,
+ StepMetadata, apply_pgo,
};
+ use crate::core::compiler::Compiler;
-use crate::core::config::{Allocator, DebuginfoLevel, RustcLto, TargetSelection};
+use crate::core::config::{Allocator, DebuginfoLevel, TargetSelection};
+ use crate::core::session::{FileType, Mode};
use crate::utils::exec::{BootstrapCommand, command};
use crate::utils::helpers::{self, add_dylib_path, exe, t};
- use crate::{Compiler, FileType, Mode};
-@@ -117,21 +116,7 @@
+@@ -121,21 +121,7 @@ impl Step for ToolBuild {
cargo.env("RUSTC_WRAPPER", ccache);
}
@@ -64,14 +69,16 @@ Signed-off-by: Deepesh Varatharajan <Deepesh.Varatharajan@windriver.com>
let pgo_config = match self.path {
"src/tools/rustdoc" => Some(&builder.config.rustdoc_pgo),
+diff --git a/src/bootstrap/src/core/builder/mod.rs b/src/bootstrap/src/core/builder/mod.rs
+index c221a97..4af0fda 100644
--- a/src/bootstrap/src/core/builder/mod.rs
+++ b/src/bootstrap/src/core/builder/mod.rs
-@@ -13,7 +13,7 @@
+@@ -13,7 +13,7 @@ use clap::ValueEnum;
#[cfg(feature = "tracing")]
use tracing::instrument;
--pub use self::cargo::{Cargo, apply_pgo, cargo_profile_var};
-+pub use self::cargo::{Cargo, apply_pgo};
- pub use crate::Compiler;
+-pub(crate) use self::cargo::{Cargo, apply_pgo, cargo_profile_var};
++pub(crate) use self::cargo::{Cargo, apply_pgo};
use crate::core::build_steps::compile::{Std, StdLink, looks_like_codegen_backend};
+ use crate::core::build_steps::llvm::{LlvmKind, get_llvm_build_status};
use crate::core::build_steps::tool::RustcPrivateCompilers;
diff --git a/recipes-devtools/rust/files/0003-bootstrap-skip-StdarchVerify-when-remote-testing.patch b/recipes-devtools/rust/files/0003-bootstrap-skip-StdarchVerify-when-remote-testing.patch
deleted file mode 100644
index a57765f..0000000
--- a/recipes-devtools/rust/files/0003-bootstrap-skip-StdarchVerify-when-remote-testing.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-From ca4541f4241f48f8344bc8b8dd7fcbb476ea6900 Mon Sep 17 00:00:00 2001
-From: Deepesh Varatharajan <Deepesh.Varatharajan@windriver.com>
-Date: Wed, 26 Aug 2026 03:49:52 -0700
-Subject: [PATCH] bootstrap: skip StdarchVerify when remote testing is enabled
-
-When TEST_DEVICE_ADDR is set for cross-testing, the StdarchVerify step
-incorrectly attempts to run on the remote target. Since stdarch-verify
-is a host-only verification tool, skip it when remote testing is enabled.
-
-Upstream-Status: Backport [https://github.com/rust-lang/rust/commit/ca4541f4241f48f8344bc8b8dd7fcbb476ea6900]
-Signed-off-by: Deepesh Varatharajan <Deepesh.Varatharajan@windriver.com>
-
-diff --git a/src/bootstrap/src/core/build_steps/test.rs b/src/bootstrap/src/core/build_steps/test.rs
-index a2d05f8..3753aec 100644
---- a/src/bootstrap/src/core/build_steps/test.rs
-+++ b/src/bootstrap/src/core/build_steps/test.rs
-@@ -962,7 +962,12 @@ impl Step for StdarchVerify {
- }
-
- fn make_run(run: RunConfig<'_>) {
-- run.builder.ensure(StdarchVerify);
-+ let builder = run.builder;
-+ if builder.remote_tested(run.target) {
-+ builder.info("remote testing is not supported by stdarch-verify. skipping");
-+ return;
-+ }
-+ builder.ensure(StdarchVerify);
- }
-
- fn run(self, builder: &Builder<'_>) {
diff --git a/recipes-devtools/rust/files/0004-cargo-omit-host-triple-from-unit-metadata-hash.patch b/recipes-devtools/rust/files/0003-cargo-omit-host-triple-from-unit-metadata-hash.patch
similarity index 100%
rename from recipes-devtools/rust/files/0004-cargo-omit-host-triple-from-unit-metadata-hash.patch
rename to recipes-devtools/rust/files/0003-cargo-omit-host-triple-from-unit-metadata-hash.patch
diff --git a/recipes-devtools/rust/files/0004-Re-bless-tests-adjust-for-new-Cargo-lints.patch b/recipes-devtools/rust/files/0004-Re-bless-tests-adjust-for-new-Cargo-lints.patch
new file mode 100644
index 0000000..6580b53
--- /dev/null
+++ b/recipes-devtools/rust/files/0004-Re-bless-tests-adjust-for-new-Cargo-lints.patch
@@ -0,0 +1,287 @@
+From daa24324904fa6aa460a22de733068c8dcb0323d Mon Sep 17 00:00:00 2001
+From: Mark Rousskov <mark.simulacrum@gmail.com>
+Date: Tue, 29 Sep 2026 08:13:20 -0400
+Subject: [PATCH] Re-bless tests / adjust for new Cargo lints
+
+Cargo 1.100 added its own lints (rust-lang/cargo#17298) and rustc no
+longer emits unused_crate_dependencies under cargo. The target and
+nativesdk rust are built with cargo-native 1.100, so do_install fails on
+the unfulfilled expect in rustc-main and on unused dependencies in
+library/sysroot, as warnings are denied.
+
+rust-native is still built with the 1.99 snapshot, so keep the attribute
+in compiler/rustc/src/main.rs as allow instead of dropping it.
+
+Upstream-Status: Backport [https://github.com/rust-lang/rust/commit/daa24324904fa6aa460a22de733068c8dcb0323d]
+Signed-off-by: Hemanth Kumar M D <Hemanth.KumarMD@windriver.com>
+---
+ compiler/rustc/src/main.rs | 2 +-
+ library/alloc/Cargo.toml | 4 ++++
+ library/panic_unwind/Cargo.toml | 3 +++
+ library/std/Cargo.toml | 4 ++++
+ library/std_detect/Cargo.toml | 4 ++++
+ library/sysroot/Cargo.toml | 5 +++++
+ src/tools/clippy/clippy_test_deps/Cargo.toml | 4 ++++
+ src/tools/miri/tests/deps/Cargo.toml | 4 ++++
+ src/tools/miri/tests/deps/cross-crate-items/Cargo.toml | 4 ++++
+ src/tools/rust-analyzer/Cargo.toml | 5 +++--
+ src/tools/rust-analyzer/crates/macros/Cargo.toml | 3 +++
+ .../crates/proc-macro-srv/proc-macro-test/Cargo.toml | 3 +++
+ .../rust-analyzer/lib/ungrammar/ungrammar2json/Cargo.toml | 3 +++
+ tests/ui/array-slice-vec/vec-res-add.stderr | 1 -
+ ...st_equality_comparison_instead_of_pattern_matching.stderr | 4 ----
+ tests/ui/pattern/deref-patterns/implicit-const-deref.stderr | 1 -
+ tests/ui/pattern/issue-115599.stderr | 1 -
+ tests/ui/pattern/pattern-tyvar-2.stderr | 1 -
+ 18 files changed, 45 insertions(+), 11 deletions(-)
+
+diff --git a/compiler/rustc/src/main.rs b/compiler/rustc/src/main.rs
+--- a/compiler/rustc/src/main.rs
++++ b/compiler/rustc/src/main.rs
+@@ -1,7 +1,7 @@
+ // We need this feature as it changes `dylib` linking behavior and allows us to link to `rustc_driver`.
+ #![feature(rustc_private)]
+ // Several crates are depended upon but unused so that they are present in the sysroot
+-#![expect(unused_crate_dependencies)]
++#![allow(unused_crate_dependencies)]
+
+ #[allow(unused_imports)]
+ use std::process::ExitCode;
+diff --git a/library/alloc/Cargo.toml b/library/alloc/Cargo.toml
+index b32e5e991cc74..a1071d2cde5f0 100644
+--- a/library/alloc/Cargo.toml
++++ b/library/alloc/Cargo.toml
+@@ -31,3 +31,7 @@ check-cfg = [
+ 'cfg(no_rc)',
+ 'cfg(no_sync)',
+ ]
++
++[lints.cargo]
++# compiler-builtins is claimed unused?
++unused_dependencies = "allow"
+diff --git a/library/panic_unwind/Cargo.toml b/library/panic_unwind/Cargo.toml
+index 72c1041b46795..3b7805a205492 100644
+--- a/library/panic_unwind/Cargo.toml
++++ b/library/panic_unwind/Cargo.toml
+@@ -18,3 +18,6 @@ unwind = { path = "../unwind" }
+
+ [target.'cfg(not(all(windows, target_env = "msvc")))'.dependencies]
+ libc = { version = "0.2", default-features = false }
++
++[lints.cargo]
++unused_dependencies = "allow"
+diff --git a/library/std/Cargo.toml b/library/std/Cargo.toml
+index 1d35b42a53947..67eebd820ca59 100644
+--- a/library/std/Cargo.toml
++++ b/library/std/Cargo.toml
+@@ -167,3 +167,7 @@ check-cfg = [
+ 'cfg(target_has_reliable_f128)',
+ 'cfg(target_has_reliable_f128_math)',
+ ]
++
++[lints.cargo]
++# panic_abort is not directly used but must be linked in
++unused_dependencies = "allow"
+diff --git a/library/std_detect/Cargo.toml b/library/std_detect/Cargo.toml
+index a6785bb20555d..c03fff827d5cd 100644
+--- a/library/std_detect/Cargo.toml
++++ b/library/std_detect/Cargo.toml
+@@ -24,3 +24,7 @@ libc = { version = "0.2.0", default-features = false }
+
+ [features]
+ std_detect_env_override = []
++
++[lints.cargo]
++# libc is definitely used in code but the lint doesn't realize that (unclear why)
++unused_dependencies = "allow"
+diff --git a/library/sysroot/Cargo.toml b/library/sysroot/Cargo.toml
+index 10562389d62d3..cef5532857b5e 100644
+--- a/library/sysroot/Cargo.toml
++++ b/library/sysroot/Cargo.toml
+@@ -32,3 +32,8 @@ optimize_for_size = ["std/optimize_for_size"]
+ panic-unwind = ["std/panic-unwind"]
+ profiler = ["dep:profiler_builtins"]
+ windows_raw_dylib = ["std/windows_raw_dylib"]
++
++[lints.cargo]
++# We expect some of these dependencies to not actually be used since this is
++# just an aggregator crate.
++unused_dependencies = "allow"
+diff --git a/src/tools/clippy/clippy_test_deps/Cargo.toml b/src/tools/clippy/clippy_test_deps/Cargo.toml
+index 880df6599c1e4..c3d236a17e1bb 100644
+--- a/src/tools/clippy/clippy_test_deps/Cargo.toml
++++ b/src/tools/clippy/clippy_test_deps/Cargo.toml
+@@ -18,3 +18,7 @@ itertools = "0.15"
+
+ # Make sure we are not part of the rustc workspace.
+ [workspace]
++
++[lints.cargo]
++# Not all tests use all of the above dependencies
++unused_dependencies = "allow"
+diff --git a/src/tools/miri/tests/deps/Cargo.toml b/src/tools/miri/tests/deps/Cargo.toml
+index a377141f98aaf..6b6d4a9e2f443 100644
+--- a/src/tools/miri/tests/deps/Cargo.toml
++++ b/src/tools/miri/tests/deps/Cargo.toml
+@@ -37,3 +37,7 @@ windows-sys = { version = "0.61", features = [
+ # Make sure we are not part of the rustc workspace.
+ [workspace]
+ members = ["cross-crate-items"]
++
++[lints.cargo]
++# Not all tests use all of the above dependencies
++unused_dependencies = "allow"
+diff --git a/src/tools/miri/tests/deps/cross-crate-items/Cargo.toml b/src/tools/miri/tests/deps/cross-crate-items/Cargo.toml
+index 1f9fc93cd5237..ca6818dc0fe25 100644
+--- a/src/tools/miri/tests/deps/cross-crate-items/Cargo.toml
++++ b/src/tools/miri/tests/deps/cross-crate-items/Cargo.toml
+@@ -5,3 +5,7 @@ edition = "2021"
+
+ [dependencies]
+ futures = { version = "0.3.0", default-features = false, features = ["alloc", "async-await"] }
++
++[lints.cargo]
++# panic_abort is not directly used but must be linked in
++unused_dependencies = "allow"
+diff --git a/src/tools/rust-analyzer/Cargo.toml b/src/tools/rust-analyzer/Cargo.toml
+index d77e89df45e44..54e82148665b6 100644
+--- a/src/tools/rust-analyzer/Cargo.toml
++++ b/src/tools/rust-analyzer/Cargo.toml
+@@ -68,10 +68,8 @@ parser = { path = "./crates/parser", version = "0.0.0" }
+ paths = { path = "./crates/paths", version = "0.0.0" }
+ proc-macro-api = { path = "./crates/proc-macro-api", version = "0.0.0" }
+ proc-macro-srv = { path = "./crates/proc-macro-srv", version = "0.0.0" }
+-proc-macro-srv-cli = { path = "./crates/proc-macro-srv-cli", version = "0.0.0" }
+ profile = { path = "./crates/profile", version = "0.0.0" }
+ project-model = { path = "./crates/project-model", version = "0.0.0" }
+-query-group = { package = "query-group-macro", path = "./crates/query-group-macro", version = "0.0.0" }
+ span = { path = "./crates/span", version = "0.0.0" }
+ stdx = { path = "./crates/stdx", version = "0.0.0" }
+ syntax = { path = "./crates/syntax", version = "0.0.0" }
+@@ -167,6 +165,9 @@ hashbrown = { version = "0.17.0", features = [
+ # We need to freeze the version of the crate, as the raw-api feature is considered unstable
+ dashmap = { version = "=6.2.1", features = ["raw-api", "inline"] }
+
++[workspace.lints.cargo]
++unused_dependencies = "allow"
++
+ [workspace.lints.rust]
+ # remember to update RUSTFLAGS in ci.yml if you add something here
+
+diff --git a/src/tools/rust-analyzer/crates/macros/Cargo.toml b/src/tools/rust-analyzer/crates/macros/Cargo.toml
+index 8184cc6d1c03d..b0d0000268588 100644
+--- a/src/tools/rust-analyzer/crates/macros/Cargo.toml
++++ b/src/tools/rust-analyzer/crates/macros/Cargo.toml
+@@ -17,3 +17,6 @@ proc-macro2 = "1"
+ quote = "1"
+ syn = "2.0.9"
+ synstructure = "0.13.0"
++
++[lints]
++workspace = true
+diff --git a/src/tools/rust-analyzer/crates/proc-macro-srv/proc-macro-test/Cargo.toml b/src/tools/rust-analyzer/crates/proc-macro-srv/proc-macro-test/Cargo.toml
+index 78630ddb4d7d8..668188340e5c8 100644
+--- a/src/tools/rust-analyzer/crates/proc-macro-srv/proc-macro-test/Cargo.toml
++++ b/src/tools/rust-analyzer/crates/proc-macro-srv/proc-macro-test/Cargo.toml
+@@ -11,3 +11,6 @@ doctest = false
+
+ [build-dependencies]
+ cargo_metadata = "0.23.0"
++
++[lints]
++workspace = true
+diff --git a/src/tools/rust-analyzer/lib/ungrammar/ungrammar2json/Cargo.toml b/src/tools/rust-analyzer/lib/ungrammar/ungrammar2json/Cargo.toml
+index 0fa08bbbd0485..f17587e3f556c 100644
+--- a/src/tools/rust-analyzer/lib/ungrammar/ungrammar2json/Cargo.toml
++++ b/src/tools/rust-analyzer/lib/ungrammar/ungrammar2json/Cargo.toml
+@@ -10,3 +10,6 @@ edition = "2024"
+ [dependencies]
+ write-json = "0.1.1"
+ ungrammar = { path = "../", version = "1.1.0" }
++
++[lints]
++workspace = true
+diff --git a/tests/ui/array-slice-vec/vec-res-add.stderr b/tests/ui/array-slice-vec/vec-res-add.stderr
+index 6d5ad1d3c9694..4e13dbd0366d0 100644
+--- a/tests/ui/array-slice-vec/vec-res-add.stderr
++++ b/tests/ui/array-slice-vec/vec-res-add.stderr
+@@ -8,7 +8,6 @@ LL | let k = i + j;
+ |
+ note: `Vec<R>` does not implement `Add`
+ --> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL
+- ::: $SRC_DIR/alloc/src/vec/mod.rs:LL:COL
+ |
+ = note: `Vec<R>` is defined in another crate
+
+diff --git a/tests/ui/consts/const_in_pattern/suggest_equality_comparison_instead_of_pattern_matching.stderr b/tests/ui/consts/const_in_pattern/suggest_equality_comparison_instead_of_pattern_matching.stderr
+index ab823c8fc73b9..38440af675feb 100644
+--- a/tests/ui/consts/const_in_pattern/suggest_equality_comparison_instead_of_pattern_matching.stderr
++++ b/tests/ui/consts/const_in_pattern/suggest_equality_comparison_instead_of_pattern_matching.stderr
+@@ -123,7 +123,6 @@ LL | V => {}
+ | ^ constant of non-structural type
+ |
+ --> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL
+- ::: $SRC_DIR/alloc/src/vec/mod.rs:LL:COL
+ |
+ = note: `Vec<()>` is not usable in patterns
+ |
+@@ -144,7 +143,6 @@ LL | if let V = vec![] {}
+ | ^ constant of non-structural type
+ |
+ --> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL
+- ::: $SRC_DIR/alloc/src/vec/mod.rs:LL:COL
+ |
+ = note: `Vec<()>` is not usable in patterns
+ |
+@@ -160,7 +158,6 @@ LL | let V = vec![] else { return; };
+ | ^ constant of non-structural type
+ |
+ --> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL
+- ::: $SRC_DIR/alloc/src/vec/mod.rs:LL:COL
+ |
+ = note: `Vec<()>` is not usable in patterns
+ |
+@@ -176,7 +173,6 @@ LL | let V = Vec::new() else { return; };
+ | ^ constant of non-structural type
+ |
+ --> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL
+- ::: $SRC_DIR/alloc/src/vec/mod.rs:LL:COL
+ |
+ = note: `Vec<()>` is not usable in patterns
+ |
+diff --git a/tests/ui/pattern/deref-patterns/implicit-const-deref.stderr b/tests/ui/pattern/deref-patterns/implicit-const-deref.stderr
+index c03137fcc4151..7c176162ad184 100644
+--- a/tests/ui/pattern/deref-patterns/implicit-const-deref.stderr
++++ b/tests/ui/pattern/deref-patterns/implicit-const-deref.stderr
+@@ -8,7 +8,6 @@ LL | EMPTY => {}
+ | ^^^^^ constant of non-structural type
+ |
+ --> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL
+- ::: $SRC_DIR/alloc/src/vec/mod.rs:LL:COL
+ |
+ = note: `Vec<()>` is not usable in patterns
+ |
+diff --git a/tests/ui/pattern/issue-115599.stderr b/tests/ui/pattern/issue-115599.stderr
+index 280516deba14b..f776623ff75b2 100644
+--- a/tests/ui/pattern/issue-115599.stderr
++++ b/tests/ui/pattern/issue-115599.stderr
+@@ -8,7 +8,6 @@ LL | if let CONST_STRING = empty_str {}
+ | ^^^^^^^^^^^^ constant of non-structural type
+ |
+ --> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL
+- ::: $SRC_DIR/alloc/src/vec/mod.rs:LL:COL
+ |
+ = note: `Vec<u8>` is not usable in patterns
+ |
+diff --git a/tests/ui/pattern/pattern-tyvar-2.stderr b/tests/ui/pattern/pattern-tyvar-2.stderr
+index 4761a4e829b85..6676d5129872b 100644
+--- a/tests/ui/pattern/pattern-tyvar-2.stderr
++++ b/tests/ui/pattern/pattern-tyvar-2.stderr
+@@ -8,7 +8,6 @@ LL | fn foo(t: Bar) -> isize { match t { Bar::T1(_, Some(x)) => { return x * 3;
+ |
+ note: `Vec<isize>` does not implement `Mul<{integer}>`
+ --> $SRC_DIR/alloc/src/vec/mod.rs:LL:COL
+- ::: $SRC_DIR/alloc/src/vec/mod.rs:LL:COL
+ |
+ = note: `Vec<isize>` is defined in another crate
+
diff --git a/recipes-devtools/rust/files/0005-rustc-span-make-hygiene-encoding-order-deterministic.patch b/recipes-devtools/rust/files/0005-rustc-span-make-hygiene-encoding-order-deterministic.patch
deleted file mode 100644
index 47a713f..0000000
--- a/recipes-devtools/rust/files/0005-rustc-span-make-hygiene-encoding-order-deterministic.patch
+++ /dev/null
@@ -1,59 +0,0 @@
-From 9c190d14f93bf27c7f1c94d400cda6f48f285a34 Mon Sep 17 00:00:00 2001
-From: Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org>
-Date: Tue, 15 Sep 2026 17:05:36 +0530
-Subject: [PATCH] rust: sort syntax contexts and expansions before encoding
-
-HygieneEncodeContext encodes the pending syntax contexts and expansions in
-hash-map order, so the encoded rmeta depends on the build host. Sort both
-before encoding. Upstream has fixed the same problem with a different
-approach in https://github.com/rust-lang/rust/pull/161450, merged after
-rust 1.99 branched, so this stays a local fix rather than a backport
-until a rust upgrade contains it.
-
-Patch by Alejandro Enedino Hernandez Samaniego, from his strict-version-hash
-v5 series for openembedded-core:
-https://lists.openembedded.org/g/openembedded-core/topic/120939810
-
-Upstream-Status: Inappropriate [OE-specific]
-
-Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandro@enedino.org>
-Signed-off-by: Sunil Dora <sunilkumar.dora@windriver.com>
----
- compiler/rustc_span/src/hygiene.rs | 10 ++++++----
- 1 file changed, 6 insertions(+), 4 deletions(-)
-
-diff --git a/compiler/rustc_span/src/hygiene.rs b/compiler/rustc_span/src/hygiene.rs
-index 1c74205..a464eca 100644
---- a/compiler/rustc_span/src/hygiene.rs
-+++ b/compiler/rustc_span/src/hygiene.rs
-@@ -1313,12 +1313,12 @@ impl HygieneEncodeContext {
-
- // Consume the current round of syntax contexts.
- // Drop the lock() temporary early.
-- // It's fine to iterate over a HashMap, because the serialization of the table
-- // that we insert data into doesn't depend on insertion order.
- #[allow(rustc::potential_query_instability)]
-- let latest_ctxts = { mem::take(&mut *self.latest_ctxts.lock()) }.into_iter();
-+ let mut latest_ctxts: Vec<_> = { mem::take(&mut *self.latest_ctxts.lock()) }.into_iter().collect();
-+ latest_ctxts.sort_by_key(|ctxt| ctxt.0);
- let all_ctxt_data: Vec<_> = HygieneData::with(|data| {
- latest_ctxts
-+ .into_iter()
- .map(|ctxt| (ctxt, data.syntax_context_data[ctxt.0 as usize].key()))
- .collect()
- });
-@@ -1330,9 +1330,11 @@ impl HygieneEncodeContext {
-
- // Same as above, but for expansions instead of syntax contexts.
- #[allow(rustc::potential_query_instability)]
-- let latest_expns = { mem::take(&mut *self.latest_expns.lock()) }.into_iter();
-+ let mut latest_expns: Vec<_> = { mem::take(&mut *self.latest_expns.lock()) }.into_iter().collect();
-+ latest_expns.sort_by_key(|expn| (expn.krate, expn.local_id));
- let all_expn_data: Vec<_> = HygieneData::with(|data| {
- latest_expns
-+ .into_iter()
- .map(|expn| (expn, data.expn_data(expn).clone(), data.expn_hash(expn)))
- .collect()
- });
---
-2.43.0
diff --git a/recipes-devtools/rust/files/cc-hash-object-names-relative-to-source-roots.patch b/recipes-devtools/rust/files/cc-hash-object-names-relative-to-source-roots.patch
index c128bd7..e0218bf 100644
--- a/recipes-devtools/rust/files/cc-hash-object-names-relative-to-source-roots.patch
+++ b/recipes-devtools/rust/files/cc-hash-object-names-relative-to-source-roots.patch
@@ -15,7 +15,7 @@ CARGO_MANIFEST_DIR as upstream already did.
The OUT_DIR part is generic and is merged upstream as rust-lang/cc-rs
commit fe27e7b6262, in a slightly different shape: the upstream tree
-moved on from the cc 1.2.0 that rust vendors, so the change here keeps
+moved on from the cc 1.4.3 that rust vendors, so the change here keeps
the form that fits these sources. RUST_COMPILER_RT_ROOT is set by
rust's own build system, so that part stays local to this patch.
@@ -23,38 +23,34 @@ Upstream-Status: Backport [https://github.com/rust-lang/cc-rs/commit/fe27e7b6262
Signed-off-by: Sunil Dora <sunilkumar.dora@windriver.com>
---
- vendor/cc-1.2.0/.cargo-checksum.json | 2 +-
- vendor/cc-1.2.0/src/command_helpers.rs | 18 +++++++++++++++---
+ vendor/cc-1.4.3/.cargo-checksum.json | 2 +-
+ vendor/cc-1.4.3/src/command_helpers.rs | 18 +++++++++++++++---
2 files changed, 16 insertions(+), 4 deletions(-)
-diff --git a/vendor/cc-1.2.0/.cargo-checksum.json b/vendor/cc-1.2.0/.cargo-checksum.json
-index 470ecbb..2ff8a08 100644
---- a/vendor/cc-1.2.0/.cargo-checksum.json
-+++ b/vendor/cc-1.2.0/.cargo-checksum.json
+diff --git a/vendor/cc-1.4.3/.cargo-checksum.json b/vendor/cc-1.4.3/.cargo-checksum.json
+index cc4144e..a8ab1fc 100644
+--- a/vendor/cc-1.4.3/.cargo-checksum.json
++++ b/vendor/cc-1.4.3/.cargo-checksum.json
@@ -1 +1 @@
--{"$comment":"This file only protects against accidental modifications. It is not a security mechanism and does not protect against malicious changes.","files":{".cargo_vcs_info.json":"d6e26674a9d7de87dab83262a14f2377988a1e087e4b514f3983f8dd141ea813","CHANGELOG.md":"fb0a3bcb34301d2578bef86feabe93057068cb1906a7f10b584f58ff6123e8c6","Cargo.lock":"b661254fadca74408d53742755b371f7ae29e501e851aeae13bcd14a51883321","Cargo.toml":"50debe1b2fc050e8b305bdd514509d98cdbc59e96e5f10888df4b6fca19d3a75","Cargo.toml.orig":"0aff9dc74ddbe3bfe89ad9698212a6a18d6124b9593780aad25e277d28e9a71f","LICENSE-APACHE":"a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2","LICENSE-MIT":"378f5840b258e2779c39418f3f2d7b2ba96f1c7917dd6be0713f88305dbda397","README.md":"f1ddbede208a5b78333a25dac0a7598e678e9b601a7d99a791069bddaf180dfe","clippy.toml":"aa7850db4350883c8f373bd0d6b4d19bf3b75f13c1c238e24368c109cb52fb1d","src/command_helpers.rs":"b766a70e39b8ea7bb57afd288bcac205a23f6a26ac5619cb1d5b10f70c5dfdea","src/detect_compiler_family.c":"97ca4b021495611e828becea6187add37414186a16dfedd26c2947cbce6e8b2f","src/lib.rs":"221ba9475100303b5c694b2a02e5353452ee08a29e4e4d4d67ea8fcbd87605df","src/parallel/async_executor.rs":"4ce24435fff6b6555b43fee042c16bd65d4150d0346567f246b9190d85b45983","src/parallel/job_token.rs":"018a01cb00182270bbcb68e31e7a7c5c621a95f086e4c68cfa2bf557ac24e5f2","src/parallel/mod.rs":"bd9c1334d17d138c281961c690b8d8118a2d6295a7d6cd7296826255436fa063","src/parallel/stderr.rs":"74384d41198740a6fce0877f144262db09fb091225fa8fbfa771314bb11487c6","src/target.rs":"7313240db078ad85c1209a42a5fa96c3692b5d6e5093c7f366a1b99677247109","src/target/apple.rs":"6afbecac9f66aa72db55694413532f80b2753f28466a6213d1aa901a03c78bcd","src/target/generated.rs":"af067e1c291e895ddb591f92534eed0c48977cdb2b58f8239423e07c6de31cd3","src/target/llvm.rs":"e1db4a7fb8b905ee9853781f2fcc64a9d3b48154e4c8b6cb12f5373c5935da6e","src/target/parser.rs":"4f2129a24273d62bf8ab339098e7f758e4e42b0df369dd2b0eb1b20726be91f8","src/tempfile.rs":"ebafb5b0e5d08b0706916ed911d4245240e60c3e2d0c9a1630c520842988a2b3","src/tool.rs":"2e6550062e021f2b394388172bbb01e86fe6a94d2395bcb3c85a9e86690da1a9","src/utilities.rs":"52b30b24a1c31cdefb105309ee5220cfc9fca76eaf4e6d6509c3e19f431448fe","src/windows/com.rs":"a2800ddb81215fff2bf618336f5c4ff8e8bdb746dd18b795873c7304b3f2a5e3","src/windows/find_tools.rs":"0ff410bd71f08ee88e99609c15be5f1bc16ad7bd07a83918d13a70c8465642e2","src/windows/mod.rs":"34cfa201cfbcac7ccaa3ea5295d3e4200439af3cc5c6433baf81502596040a89","src/windows/registry.rs":"c521b72c825e8095843e73482ffa810ed066ad8bb9f86e6db0c5c143c171aba1","src/windows/setup_config.rs":"754439cbab492afd44c9755abcbec1a41c9b2c358131cee2df13c0e996dbbec8","src/windows/vs_instances.rs":"946527cf8fd32c3472f6a2884dcdec290763101097334c7478f9c24c3950db6b","src/windows/winapi.rs":"250d51c1826d1a2329e9889dd9f058cfce253dbf2a678b076147c6cdb5db046c","src/windows/windows_sys.rs":"e2714c8307bfa083b9745eb0e46cadd7f98d7b88abf45a7637172019324e34b8","src/windows/windows_targets.rs":"5b4648ebc22b028caca9f4b4bf8881fe2d094b7bec217264ba2e6e2c49d1ccee"},"package":"1aeb932158bd710538c73702db6945cb68a8fb08c519e6e12706b94263b36db8"}
+-{"$comment":"This file only protects against accidental modifications. It is not a security mechanism and does not protect against malicious changes.","files":{".cargo_vcs_info.json":"067dd1727a66bb81a833e7ff9ed732d0a26c4dfb6f78600884cf20cc766b379e",".tombi.toml":"93f57361f60b03b6c14ede301446e5e2658abaa98cac39a4a96be0966b6b851a","CHANGELOG.md":"7e2c9bec874d564ceeedfa88587ab86f45d8a3d3df4a6f6ef19ad3db3997d74e","Cargo.lock":"f309ad15b2b17d7ff090e11005112ad2ed04495da92d8d11f758adb69c87d273","Cargo.toml":"c424f930665aa062f43c448c2837c98f9aad434a95cce4400605b0f2af7c820e","Cargo.toml.orig":"d1fc79a63899b64a816fe5595b403c27ade4612ea58c0e88556c05d307b431f0","LICENSE-APACHE":"a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2","LICENSE-MIT":"378f5840b258e2779c39418f3f2d7b2ba96f1c7917dd6be0713f88305dbda397","README.md":"cc952a506dc726eed3e128d47d62defbac4470bbb0e465f6a043ae8bf0c96d19","clippy.toml":"cf46251b0953d1a3c7a4f8f8941a08d8a416d5fc348dfe3f3c520eb93fcc18ea","src/command_helpers.rs":"650c9682edc3d7732249e327c1026c7cc733f3702f4867b9580223e97522d3c6","src/detect_compiler_family.c":"97ca4b021495611e828becea6187add37414186a16dfedd26c2947cbce6e8b2f","src/flags.rs":"1a80855f51db6808cdcb5c0e6bd1c0973e86463014082ef7ed1d0fbe7b89cf93","src/lib.rs":"61391623eed3591d6d06977867b7a772348daa1385c1fefd8e82ab8e9adbc71b","src/parallel/async_executor.rs":"4ce24435fff6b6555b43fee042c16bd65d4150d0346567f246b9190d85b45983","src/parallel/command_runner.rs":"1d17d9a037de93b31cc7ee6a914a1e1f6c1ac156cf8619f0014dcbaca6a0b215","src/parallel/job_token.rs":"1aa1ecc639e09845eea0f1e11a76c39ad2604eaac3268059652f56add8890089","src/parallel/mod.rs":"bf156170790d40a76015a8c78cc2a391cbe1b60bb96c1fac1d047d26e342386a","src/parallel/stderr.rs":"b68d728087667fd568921d61cd40d0dc6b56c59bde6e671cb50cb0c43dcdf56d","src/target.rs":"a9d2d347a3a08015531f00b32bc8a7478f5636822cc8e0237ea9efa3f07d4cd4","src/target/apple.rs":"da9411b2c4db419e0fa39f765ee53b8665b3837fb39827679a53238734a4a1c1","src/target/generated.rs":"f93008829c57e9da3f5d6ac84643c04d8438a319fe9517533604dfe47e9cb8d7","src/target/llvm.rs":"525680a605fb57e038c3103d3efc9201c1af7b99162adf5dbc399da1d5007efe","src/target/parser.rs":"5ea311fc57b6a6d1aecd7e5433ee5f79b403b58e40be18650fdd81cf514614cb","src/tempfile.rs":"77963fe55b63d3a30cccae46f763b8d61ed722247fe208e8485858770f6a67f7","src/tool.rs":"52a7bc134154fde7fecb1ef691f0179eb617e2f17a10d71dfa71afbcb061555b","src/utilities.rs":"ebb59ac01fb9588bcea0d0ee786e5d5a5696b4284a1245657625db03e830b72e"},"package":"509591b7bcd67f4ef775afad7662703b4935daaa6ec0e5605cfb1090b32a2b6d"}
\ No newline at end of file
-+{"$comment":"This file only protects against accidental modifications. It is not a security mechanism and does not protect against malicious changes.","files":{".cargo_vcs_info.json":"d6e26674a9d7de87dab83262a14f2377988a1e087e4b514f3983f8dd141ea813","CHANGELOG.md":"fb0a3bcb34301d2578bef86feabe93057068cb1906a7f10b584f58ff6123e8c6","Cargo.lock":"b661254fadca74408d53742755b371f7ae29e501e851aeae13bcd14a51883321","Cargo.toml":"50debe1b2fc050e8b305bdd514509d98cdbc59e96e5f10888df4b6fca19d3a75","Cargo.toml.orig":"0aff9dc74ddbe3bfe89ad9698212a6a18d6124b9593780aad25e277d28e9a71f","LICENSE-APACHE":"a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2","LICENSE-MIT":"378f5840b258e2779c39418f3f2d7b2ba96f1c7917dd6be0713f88305dbda397","README.md":"f1ddbede208a5b78333a25dac0a7598e678e9b601a7d99a791069bddaf180dfe","clippy.toml":"aa7850db4350883c8f373bd0d6b4d19bf3b75f13c1c238e24368c109cb52fb1d","src/command_helpers.rs":"010873ba1ab0ea4b7e3b5eac72aed5f50e535d42cb94da943d2aa3d74904aa0f","src/detect_compiler_family.c":"97ca4b021495611e828becea6187add37414186a16dfedd26c2947cbce6e8b2f","src/lib.rs":"221ba9475100303b5c694b2a02e5353452ee08a29e4e4d4d67ea8fcbd87605df","src/parallel/async_executor.rs":"4ce24435fff6b6555b43fee042c16bd65d4150d0346567f246b9190d85b45983","src/parallel/job_token.rs":"018a01cb00182270bbcb68e31e7a7c5c621a95f086e4c68cfa2bf557ac24e5f2","src/parallel/mod.rs":"bd9c1334d17d138c281961c690b8d8118a2d6295a7d6cd7296826255436fa063","src/parallel/stderr.rs":"74384d41198740a6fce0877f144262db09fb091225fa8fbfa771314bb11487c6","src/target.rs":"7313240db078ad85c1209a42a5fa96c3692b5d6e5093c7f366a1b99677247109","src/target/apple.rs":"6afbecac9f66aa72db55694413532f80b2753f28466a6213d1aa901a03c78bcd","src/target/generated.rs":"af067e1c291e895ddb591f92534eed0c48977cdb2b58f8239423e07c6de31cd3","src/target/llvm.rs":"e1db4a7fb8b905ee9853781f2fcc64a9d3b48154e4c8b6cb12f5373c5935da6e","src/target/parser.rs":"4f2129a24273d62bf8ab339098e7f758e4e42b0df369dd2b0eb1b20726be91f8","src/tempfile.rs":"ebafb5b0e5d08b0706916ed911d4245240e60c3e2d0c9a1630c520842988a2b3","src/tool.rs":"2e6550062e021f2b394388172bbb01e86fe6a94d2395bcb3c85a9e86690da1a9","src/utilities.rs":"52b30b24a1c31cdefb105309ee5220cfc9fca76eaf4e6d6509c3e19f431448fe","src/windows/com.rs":"a2800ddb81215fff2bf618336f5c4ff8e8bdb746dd18b795873c7304b3f2a5e3","src/windows/find_tools.rs":"0ff410bd71f08ee88e99609c15be5f1bc16ad7bd07a83918d13a70c8465642e2","src/windows/mod.rs":"34cfa201cfbcac7ccaa3ea5295d3e4200439af3cc5c6433baf81502596040a89","src/windows/registry.rs":"c521b72c825e8095843e73482ffa810ed066ad8bb9f86e6db0c5c143c171aba1","src/windows/setup_config.rs":"754439cbab492afd44c9755abcbec1a41c9b2c358131cee2df13c0e996dbbec8","src/windows/vs_instances.rs":"946527cf8fd32c3472f6a2884dcdec290763101097334c7478f9c24c3950db6b","src/windows/winapi.rs":"250d51c1826d1a2329e9889dd9f058cfce253dbf2a678b076147c6cdb5db046c","src/windows/windows_sys.rs":"e2714c8307bfa083b9745eb0e46cadd7f98d7b88abf45a7637172019324e34b8","src/windows/windows_targets.rs":"5b4648ebc22b028caca9f4b4bf8881fe2d094b7bec217264ba2e6e2c49d1ccee"},"package":"1aeb932158bd710538c73702db6945cb68a8fb08c519e6e12706b94263b36db8"}
++{"$comment":"This file only protects against accidental modifications. It is not a security mechanism and does not protect against malicious changes.","files":{".cargo_vcs_info.json":"067dd1727a66bb81a833e7ff9ed732d0a26c4dfb6f78600884cf20cc766b379e",".tombi.toml":"93f57361f60b03b6c14ede301446e5e2658abaa98cac39a4a96be0966b6b851a","CHANGELOG.md":"7e2c9bec874d564ceeedfa88587ab86f45d8a3d3df4a6f6ef19ad3db3997d74e","Cargo.lock":"f309ad15b2b17d7ff090e11005112ad2ed04495da92d8d11f758adb69c87d273","Cargo.toml":"c424f930665aa062f43c448c2837c98f9aad434a95cce4400605b0f2af7c820e","Cargo.toml.orig":"d1fc79a63899b64a816fe5595b403c27ade4612ea58c0e88556c05d307b431f0","LICENSE-APACHE":"a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2","LICENSE-MIT":"378f5840b258e2779c39418f3f2d7b2ba96f1c7917dd6be0713f88305dbda397","README.md":"cc952a506dc726eed3e128d47d62defbac4470bbb0e465f6a043ae8bf0c96d19","clippy.toml":"cf46251b0953d1a3c7a4f8f8941a08d8a416d5fc348dfe3f3c520eb93fcc18ea","src/command_helpers.rs":"f878c574ad193473ef07d9b41afe4f7c27b735cc33492615a53c7a454aee3cc9","src/detect_compiler_family.c":"97ca4b021495611e828becea6187add37414186a16dfedd26c2947cbce6e8b2f","src/flags.rs":"1a80855f51db6808cdcb5c0e6bd1c0973e86463014082ef7ed1d0fbe7b89cf93","src/lib.rs":"61391623eed3591d6d06977867b7a772348daa1385c1fefd8e82ab8e9adbc71b","src/parallel/async_executor.rs":"4ce24435fff6b6555b43fee042c16bd65d4150d0346567f246b9190d85b45983","src/parallel/command_runner.rs":"1d17d9a037de93b31cc7ee6a914a1e1f6c1ac156cf8619f0014dcbaca6a0b215","src/parallel/job_token.rs":"1aa1ecc639e09845eea0f1e11a76c39ad2604eaac3268059652f56add8890089","src/parallel/mod.rs":"bf156170790d40a76015a8c78cc2a391cbe1b60bb96c1fac1d047d26e342386a","src/parallel/stderr.rs":"b68d728087667fd568921d61cd40d0dc6b56c59bde6e671cb50cb0c43dcdf56d","src/target.rs":"a9d2d347a3a08015531f00b32bc8a7478f5636822cc8e0237ea9efa3f07d4cd4","src/target/apple.rs":"da9411b2c4db419e0fa39f765ee53b8665b3837fb39827679a53238734a4a1c1","src/target/generated.rs":"f93008829c57e9da3f5d6ac84643c04d8438a319fe9517533604dfe47e9cb8d7","src/target/llvm.rs":"525680a605fb57e038c3103d3efc9201c1af7b99162adf5dbc399da1d5007efe","src/target/parser.rs":"5ea311fc57b6a6d1aecd7e5433ee5f79b403b58e40be18650fdd81cf514614cb","src/tempfile.rs":"77963fe55b63d3a30cccae46f763b8d61ed722247fe208e8485858770f6a67f7","src/tool.rs":"52a7bc134154fde7fecb1ef691f0179eb617e2f17a10d71dfa71afbcb061555b","src/utilities.rs":"ebb59ac01fb9588bcea0d0ee786e5d5a5696b4284a1245657625db03e830b72e"},"package":"509591b7bcd67f4ef775afad7662703b4935daaa6ec0e5605cfb1090b32a2b6d"}
\ No newline at end of file
-diff --git a/vendor/cc-1.2.0/src/command_helpers.rs b/vendor/cc-1.2.0/src/command_helpers.rs
-index adedab2..c911306 100644
---- a/vendor/cc-1.2.0/src/command_helpers.rs
-+++ b/vendor/cc-1.2.0/src/command_helpers.rs
-@@ -315,13 +315,25 @@ pub(crate) fn objects_from_files(files: &[Arc<Path>], dst: &Path) -> Result<Vec<
+diff --git a/vendor/cc-1.4.3/src/command_helpers.rs b/vendor/cc-1.4.3/src/command_helpers.rs
+index 57c49f4..da92b69 100644
+--- a/vendor/cc-1.4.3/src/command_helpers.rs
++++ b/vendor/cc-1.4.3/src/command_helpers.rs
+@@ -308,9 +308,21 @@ pub(crate) fn objects_from_files(files: &[Arc<Path>], dst: &Path) -> Result<Vec<
// Make the dirname relative (if possible) to avoid full system paths influencing the sha
// and making the output system-dependent
-+ // compiler-builtins generates sources into OUT_DIR and reads the compiler-rt
-+ // intrinsics from RUST_COMPILER_RT_ROOT, so try those before the manifest dir
- //
- // NOTE: Here we allow using std::env::var (instead of Build::getenv) because
- // CARGO_* variables always trigger a rebuild when changed
- #[allow(clippy::disallowed_methods)]
-- let dirname = if let Some(root) = std::env::var_os("CARGO_MANIFEST_DIR") {
+- let dirname = if let Some(root) = cargo_env_var_os("CARGO_MANIFEST_DIR") {
- let root = root.to_string_lossy();
- Cow::Borrowed(dirname.strip_prefix(&*root).unwrap_or(&dirname))
++ // compiler-builtins generates sources into OUT_DIR and reads the compiler-rt
++ // intrinsics from RUST_COMPILER_RT_ROOT, so try those before the manifest dir
+ let strip_root = |var: &str| {
-+ std::env::var_os(var).and_then(|root| {
++ cargo_env_var_os(var).and_then(|root| {
+ dirname
+ .strip_prefix(&*root.to_string_lossy())
+ .map(str::to_owned)
diff --git a/recipes-devtools/rust/libstd-rs_1.99.1.bb b/recipes-devtools/rust/libstd-rs_1.100.0.bb
similarity index 77%
rename from recipes-devtools/rust/libstd-rs_1.99.1.bb
rename to recipes-devtools/rust/libstd-rs_1.100.0.bb
index 31d42a8..eb56bab 100644
--- a/recipes-devtools/rust/libstd-rs_1.99.1.bb
+++ b/recipes-devtools/rust/libstd-rs_1.100.0.bb
@@ -42,11 +42,11 @@ do_compile:prepend () {
do_install () {
mkdir -p ${D}${rustlibdir}
- # With the incremental build support added in 1.24, the libstd deps directory also includes dependency
- # files that get installed. Those are really only needed to incrementally rebuild the libstd library
- # itself and don't need to be installed.
- rm -f ${B}/target/${RUST_TARGET_SYS}/${BUILD_DIR}/deps/*.d
- cp ${B}/target/${RUST_TARGET_SYS}/${BUILD_DIR}/deps/* ${D}${rustlibdir}
+ # Since cargo 1.100 the build-dir new layout is always enabled: each crate's
+ # artifacts are in build/<crate>/<hash>/out/ instead of deps/. The dependency
+ # files are only needed to incrementally rebuild libstd, don't install them.
+ rm -f ${B}/target/${RUST_TARGET_SYS}/${BUILD_DIR}/build/*/*/out/*.d
+ cp ${B}/target/${RUST_TARGET_SYS}/${BUILD_DIR}/build/*/*/out/* ${D}${rustlibdir}
}
BBCLASSEXTEND = "nativesdk"
diff --git a/recipes-devtools/rust/rust-cross-canadian_1.99.1.bb b/recipes-devtools/rust/rust-cross-canadian_1.100.0.bb
similarity index 100%
rename from recipes-devtools/rust/rust-cross-canadian_1.99.1.bb
rename to recipes-devtools/rust/rust-cross-canadian_1.100.0.bb
diff --git a/recipes-devtools/rust/rust-snapshot.inc b/recipes-devtools/rust/rust-snapshot.inc
index f5865d4..1082c0d 100644
--- a/recipes-devtools/rust/rust-snapshot.inc
+++ b/recipes-devtools/rust/rust-snapshot.inc
@@ -4,58 +4,58 @@
## The exact (previous) version that has been used is specified in the source tarball.
## The version is replicated here.
-SNAPSHOT_VERSION = "1.98.0"
-
-SRC_URI[rustc-snapshot-aarch64.sha256sum] = "00590657f2356d7163ca5ef295283523974c340fa21bb94b420ce794f29b358c"
-SRC_URI[rust-std-snapshot-aarch64.sha256sum] = "a36f7ac98af20ef0ba6368aace0345efabbebaef7962eba99f47190fd256162d"
-SRC_URI[cargo-snapshot-aarch64.sha256sum] = "5784379d73ac881d15a9e67eed2882cd58c747c276221c23cdf9aff37e015ff6"
-SRC_URI[clippy-snapshot-aarch64.sha256sum] = "bc9b5636170e4b067794bfb8962c6f22b2aee5cb7358f4d9523072bb2976062a"
-
-SRC_URI[rustc-snapshot-i686.sha256sum] = "5244bd76687b64cd7305ef038d8f349774eee494174899474535c23dcbeaa009"
-SRC_URI[rust-std-snapshot-i686.sha256sum] = "11c7a5cfa324e4324611793692a863490902bdff8b9ccd197404711cb8dc24d4"
-SRC_URI[cargo-snapshot-i686.sha256sum] = "b768fe07ae4bd233e5c3f864f935620abb8b72139f7369c869e964a0c30ae419"
-SRC_URI[clippy-snapshot-i686.sha256sum] = "df4f34169dffa12cfc75fd246c75092734f2ff3837299531b0dad432d58f959a"
-
-SRC_URI[rustc-snapshot-loongarch64.sha256sum] = "5af789de2072c185302377c0bf6af5f6ce518670eaec62363142d60a90209986"
-SRC_URI[rust-std-snapshot-loongarch64.sha256sum] = "397eb65ab17005c709a86e7bf7cb03d8aa9dae4303783a19c06ba8963247d537"
-SRC_URI[cargo-snapshot-loongarch64.sha256sum] = "e00ba627af9f098f0d9527c5b15f1a6886486c93f0139eee6f36cb104543a182"
-SRC_URI[clippy-snapshot-loongarch64.sha256sum] = "7bda4fb4a971d23598bd488047fe8a4083f72c9af221a6018a84a8e304663c61"
-
-SRC_URI[rustc-snapshot-powerpc.sha256sum] = "a4848482dbb50b808495a32d35ed5c7a7a9de86d5c9d7de1ca34a5590ce6056f"
-SRC_URI[rust-std-snapshot-powerpc.sha256sum] = "ae6a38ebf8ab0b8bd20da34aedc3de6f78d8314f10a6e373bd76a0dc90f22133"
-SRC_URI[cargo-snapshot-powerpc.sha256sum] = "4e5760b7898b00c5b772fe7b1e48d75a0b4035b4a7d4de3ba6fc5b1544966196"
-SRC_URI[clippy-snapshot-powerpc.sha256sum] = "a5c37e43b380adfeb14149ec0d9c4a76c985ec8d532ac669be9055094d05f166"
-
-SRC_URI[rustc-snapshot-powerpc64.sha256sum] = "c9833ed9d2abde4c6b8f4067408e9ff4a758e4252e87257d3acf780c31d3531d"
-SRC_URI[rust-std-snapshot-powerpc64.sha256sum] = "e33d1517443f93dcbf151c46e3969bdbe4c9df4c847455915eecd6caee08cee2"
-SRC_URI[cargo-snapshot-powerpc64.sha256sum] = "fff7e0ca647951a4a42c2272c857fa749e28746853190e8211849da35d1fb45d"
-SRC_URI[clippy-snapshot-powerpc64.sha256sum] = "02cc96e76c2ca4e22608fbf9080455211f0f6b51dc0ec7da0f54430181de7262"
-
-SRC_URI[rustc-snapshot-powerpc64le.sha256sum] = "a940bca1bce862b2233a5cc07bdfb3f24b285744fc6ecb6dbb174853a41bff6a"
-SRC_URI[rust-std-snapshot-powerpc64le.sha256sum] = "ec370e4ad9712cde2f6664f18a022bd8de34c71b8517040b4d14144fcf1ef3e7"
-SRC_URI[cargo-snapshot-powerpc64le.sha256sum] = "98b90455b3c57086b7ee6456da1075c929a495ac76850411db1e3cf76cf0cf48"
-SRC_URI[clippy-snapshot-powerpc64le.sha256sum] = "2318acbbf599bd57084e4ccc75252723fefd7a9f7d4acd03ee1513b41c212b46"
-
-SRC_URI[rustc-snapshot-riscv64gc.sha256sum] = "2f76a343190d8ffbe6c44666fdab32b6a6696a3e1176f6d84222b6e6221a382c"
-SRC_URI[rust-std-snapshot-riscv64gc.sha256sum] = "68ce716d38bcc15c6fe3686bc7133f5adbadd28f5f5a8a73ef1172b4f60149fc"
-SRC_URI[cargo-snapshot-riscv64gc.sha256sum] = "9fcbf7ebb55a3eefdc2145a29b1cc797380edee0cee1163742c5ee06c4622347"
-SRC_URI[clippy-snapshot-riscv64gc.sha256sum] = "12b08f51925b9eafae1b3ddccbab49024a05827fa965e65dbccdd63422f84b1e"
-
-SRC_URI[rustc-snapshot-s390x.sha256sum] = "c6e39df3937b6e2c2c66eb67406738036ed80f79072d136e122e61747b139b85"
-SRC_URI[rust-std-snapshot-s390x.sha256sum] = "c9bcf3eb8348e04502a49345a0847576e6c6fbd6600d566ef7cc74f6c2d06048"
-SRC_URI[cargo-snapshot-s390x.sha256sum] = "0bc2062d88993fc590007ea2374f5e784fb5b7f1eec6c024b1fb3459ccd50212"
-SRC_URI[clippy-snapshot-s390x.sha256sum] = "25aad07f775b7eaac2139f1f233855f8fd81e40ea8450e2220ce9906bab5f123"
-
-SRC_URI[rustc-snapshot-x86_64.sha256sum] = "0e37cb339f447fc44d6d781073bacacebfdc5612f2600e4c7e84c266f5f3aced"
-SRC_URI[rust-std-snapshot-x86_64.sha256sum] = "f5022e6c95a5ad23cca2513dc8281200f585fa188de6370aa37b128a43f876a3"
-SRC_URI[cargo-snapshot-x86_64.sha256sum] = "2f512d170d3dd23e16ababcda32ee2e6d5172d861a7af1f504e0b1e270cafab9"
-SRC_URI[clippy-snapshot-x86_64.sha256sum] = "646c6bd2450ea4c32a3c78ad7a3727294eea1f1519718a3f1487424021695ffa"
-
-SRC_URI[rust-std-snapshot-i586.sha256sum] = "7d150f9ec40eaaeb4ae453dedf5416855b9245420fd89203a5da420f692ead38"
-
-SRC_URI[rust-std-snapshot-riscv64a23.sha256sum] = "81fec8bb25e1377e8f143c33441d12ac115781da496475ecca5601cc791be56b"
-
-SRC_URI[rust-std-snapshot-sparc64.sha256sum] = "9e0a10697c2e68707573fbcc01aa927d32b9652deb771ca87d69a9b7225580ed"
+SNAPSHOT_VERSION = "1.99.0"
+
+SRC_URI[rustc-snapshot-aarch64.sha256sum] = "89c0f1a3a44df63c95e5d5f2ba093d0a12c5f5f57f8635f8a7a0ce50cf86600e"
+SRC_URI[rust-std-snapshot-aarch64.sha256sum] = "1cf7e2ef58ed1cfa6f1adea18e155cbf254c1951f39e5f5e3376879f55fd64a4"
+SRC_URI[cargo-snapshot-aarch64.sha256sum] = "113229fcc16cc1ba004923a4cc275fbf3281dafaaf8b97269f9c00189d497fd4"
+SRC_URI[clippy-snapshot-aarch64.sha256sum] = "42e49dc02d29949395c0c072585961f6c9b5408110236087828d4e2f94ca96ef"
+
+SRC_URI[rustc-snapshot-i686.sha256sum] = "17d94ac00b3a5ae896022aabd9e73fb56f01881c9bd3d5095e08d9c9e608f4ac"
+SRC_URI[rust-std-snapshot-i686.sha256sum] = "b13902a225a6109588de09167831da111c70a30bedb2d9b9754d9fb13dc6e558"
+SRC_URI[cargo-snapshot-i686.sha256sum] = "a6cdcfd06454695375a3aa89c37b0431b5146d55b1111fc323ac92a15d1d087a"
+SRC_URI[clippy-snapshot-i686.sha256sum] = "e3295d8f8fc7658e8135a3fdad3a9f7d7dc34d38540f4efc720502dcf952fc86"
+
+SRC_URI[rustc-snapshot-loongarch64.sha256sum] = "70e0b964f64c462ebb0b9ef1c4e08c3a87a724fbae16b1ca866127e68d4f5e7d"
+SRC_URI[rust-std-snapshot-loongarch64.sha256sum] = "31418c9492c57eff5893f7d80d6cf776d968dfcfe1750be8c2bf2c05b19689d9"
+SRC_URI[cargo-snapshot-loongarch64.sha256sum] = "dd5901c5668513c0640fff626aa7fce42d33ceb18afecc91e1163063ea859cd1"
+SRC_URI[clippy-snapshot-loongarch64.sha256sum] = "ef24b5ed352469eb5efd9eed4e68928ff684682865a70c5e74c372b5d356f034"
+
+SRC_URI[rustc-snapshot-powerpc.sha256sum] = "ad672e3d515cfbb33e8e05d4fb15a5dfa745988b9699f5b62d1cb9ba13dde81c"
+SRC_URI[rust-std-snapshot-powerpc.sha256sum] = "f2ce1424fc9272a64f358f8d28c72f277f7fa626c256f115daae0ecfa12a8999"
+SRC_URI[cargo-snapshot-powerpc.sha256sum] = "a511dd7f315fe6097a12de73c1b4041ae6b5c2880e88ed2afba2b36d79074bf7"
+SRC_URI[clippy-snapshot-powerpc.sha256sum] = "bfc3191f0086878a7e72b3362f8a36ccd9bb9a88ad14c122334443b16eb39f28"
+
+SRC_URI[rustc-snapshot-powerpc64.sha256sum] = "fd891495f63d0aa1168875f8a0160ec1587d2ef6bb83979f03e9aa7c21ca8362"
+SRC_URI[rust-std-snapshot-powerpc64.sha256sum] = "8b9ac17c3410a1ca895c2280c839fd1d1df7adcb6435137eb3030bb255ee69cf"
+SRC_URI[cargo-snapshot-powerpc64.sha256sum] = "18134aecb63ee24aa980c9843cf24bdaeb9c2dd8aeca832ae5b88ca5d8856981"
+SRC_URI[clippy-snapshot-powerpc64.sha256sum] = "388e0748e40ec77ab799806e1f48b615ab8e65220d3c9a6838dfa172bea8b4a0"
+
+SRC_URI[rustc-snapshot-powerpc64le.sha256sum] = "308c82f4c4ba93e7614a27660347ed6b419f3570c5bc1046f73d840b7728dbc9"
+SRC_URI[rust-std-snapshot-powerpc64le.sha256sum] = "8c1a6857ba1be316ff453efc4d2aefd43756ecdb6d549a3d64be7351c4a55bdd"
+SRC_URI[cargo-snapshot-powerpc64le.sha256sum] = "bbdf0aa56ce2dd7347e9a06861f9bd2d8015e2dadcf80edcb843892efc68174a"
+SRC_URI[clippy-snapshot-powerpc64le.sha256sum] = "4ce616ff452ec0491876d00fe1c89fab786b6ce7fd0289c0e0f47da1bfac7039"
+
+SRC_URI[rustc-snapshot-riscv64gc.sha256sum] = "80db2efdcf26ba75b1c38c6da896ff332d1bb6d0fbde6b1d2336a7ea475c6e40"
+SRC_URI[rust-std-snapshot-riscv64gc.sha256sum] = "646847eb1d0b58c55118390a2b1a6af871e4bc581651b5047dcbdfd0a24629f9"
+SRC_URI[cargo-snapshot-riscv64gc.sha256sum] = "999311c0ee828b3988f16abcd586d1189ebab6d37081197d89a9883c4b7d2134"
+SRC_URI[clippy-snapshot-riscv64gc.sha256sum] = "c4ae4e5e03e3ce8c2f2b93a4b59e2f3c8f47a1647de29458f8e26e76079b0d61"
+
+SRC_URI[rustc-snapshot-s390x.sha256sum] = "b598d8f89ac024fa9839de2393787eb85bed071528236f0a282e8100d852cb4a"
+SRC_URI[rust-std-snapshot-s390x.sha256sum] = "ec386455256a3ef1d16bccb02a040cbb6978af565f716fdc26684054b19dd0d0"
+SRC_URI[cargo-snapshot-s390x.sha256sum] = "c6f4d75baf64f08a449d89d1f5cacb4e14a3be40a8623a00ea1530a6e3fa9d9e"
+SRC_URI[clippy-snapshot-s390x.sha256sum] = "ad97b001f4c73442307434176fc97cdcf7a80820d728f48bebfb31237ca8b55c"
+
+SRC_URI[rustc-snapshot-x86_64.sha256sum] = "77171ba2a0345fdf2abc4fedda55d6de078dae7a68527c28be8c77dcc9604bd5"
+SRC_URI[rust-std-snapshot-x86_64.sha256sum] = "3e58dff2d0b72196b5ea4e90536e174d400de88564a52694686b81e091169933"
+SRC_URI[cargo-snapshot-x86_64.sha256sum] = "d7674918d28093097614cd9728b6ca60db9ea3038f640f0bd1e9a4188c7568ce"
+SRC_URI[clippy-snapshot-x86_64.sha256sum] = "982442e32ad8dd3f0bb3a30db74038da5f71fd9bf1a865cc71da8ea5d4ec71ec"
+
+SRC_URI[rust-std-snapshot-i586.sha256sum] = "0d2e0687934fd8f79e75a092e9a4c1240ca8346b61aa22dae0921a3d66274b18"
+
+SRC_URI[rust-std-snapshot-riscv64a23.sha256sum] = "e63bf434820d6a2f95396428d1659dac8ef915bc1432d730091ae399518d5fbe"
+
+SRC_URI[rust-std-snapshot-sparc64.sha256sum] = "ef4399ed88f527bb71b937583a7e5bf36177d83fb55b8c58973ae146579c5ed6"
SRC_URI += " \
${RUST_DIST_SERVER}/dist/${RUST_STD_SNAPSHOT}.tar.xz;name=rust-std-snapshot-${RUST_BUILD_ARCH};subdir=rust-snapshot-components \
diff --git a/recipes-devtools/rust/rust-source.inc b/recipes-devtools/rust/rust-source.inc
index b384a0c..8b5b59b 100644
--- a/recipes-devtools/rust/rust-source.inc
+++ b/recipes-devtools/rust/rust-source.inc
@@ -5,11 +5,10 @@ SRC_URI += "https://static.rust-lang.org/dist/rustc-${RUST_VERSION}-src.tar.xz;n
file://cc-hash-object-names-relative-to-source-roots.patch;patchdir=${RUSTSRC} \
file://0001-src-core-build_steps-tool.rs-switch-off-lto-for-rust.patch;patchdir=${RUSTSRC} \
file://0002-Fix-rust-build-failure-with-unstable-options.patch;patchdir=${RUSTSRC} \
- file://0003-bootstrap-skip-StdarchVerify-when-remote-testing.patch;patchdir=${RUSTSRC} \
- file://0004-cargo-omit-host-triple-from-unit-metadata-hash.patch;patchdir=${RUSTSRC} \
- file://0005-rustc-span-make-hygiene-encoding-order-deterministic.patch;patchdir=${RUSTSRC} \
+ file://0003-cargo-omit-host-triple-from-unit-metadata-hash.patch;patchdir=${RUSTSRC} \
+ file://0004-Re-bless-tests-adjust-for-new-Cargo-lints.patch;patchdir=${RUSTSRC} \
"
-SRC_URI[rust.sha256sum] = "6451598a99e77f07571960f6b21d577399d3a30f33e80cbd2e3a4aae6535d265"
+SRC_URI[rust.sha256sum] = "90dab90b8084eb57c35ae2b1d0b70c8e5138ace6023b22c60a5a400f586f63b2"
# Point UNPACKDIR into the work-shared location so rust-source.bb and all
# consumers (via S/RUSTSRC) reference a single shared source tree.
diff --git a/recipes-devtools/rust/rust-source_1.99.1.bb b/recipes-devtools/rust/rust-source_1.100.0.bb
similarity index 100%
rename from recipes-devtools/rust/rust-source_1.99.1.bb
rename to recipes-devtools/rust/rust-source_1.100.0.bb
diff --git a/recipes-devtools/rust/rust_1.99.1.bb b/recipes-devtools/rust/rust_1.100.0.bb
similarity index 100%
rename from recipes-devtools/rust/rust_1.99.1.bb
rename to recipes-devtools/rust/rust_1.100.0.bb
--
2.56.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [meta-lts-mixins][wrynose/rust][PATCH 05/10] rust: drop native libLLVM path for non-host architectures
2026-11-30 0:52 [meta-lts-mixins][wrynose/rust][PATCH 00/10] Update to 1.100.0 Scott Murray
` (3 preceding siblings ...)
2026-11-30 0:52 ` [meta-lts-mixins][wrynose/rust][PATCH 04/10] rust: Upgrade 1.99.1 -> 1.100.0 Scott Murray
@ 2026-11-30 0:52 ` Scott Murray
2026-11-30 0:52 ` [meta-lts-mixins][wrynose/rust][PATCH 06/10] rust: Fix intermittent test failure Scott Murray
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Scott Murray @ 2026-11-30 0:52 UTC (permalink / raw)
To: yocto-patches
From: Hemanth Kumar M D <Hemanth.KumarMD@windriver.com>
With the recent refactoring of the LLVM handling in rust bootstrap [1],
the library search path of the native LLVM
(recipe-sysroot-native/usr/lib) is added to the link of the target
rustc_llvm when rustc is cross-built.
rustc_llvm/build.rs only adjusts these -L paths by replacing the host
triple with the target triple. In OE the native and target sysroot
paths do not contain a triple, so the native path is kept and the
linker finds the native libLLVM before the target one. A linker that
cannot read the native library fails with:
libLLVM-23.so: file not recognized: file format not recognized
Add a patch to drop -L paths that point into recipe-sysroot-native when
cross-building. The target libLLVM is still found through the target
--sysroot.
This is a workaround. The issue has been reported upstream [2] and the
patch can be dropped once it is fixed there.
[1] https://github.com/rust-lang/rust/pull/161247
[2] https://github.com/rust-lang/rust/issues/165385
Signed-off-by: Hemanth Kumar M D <Hemanth.KumarMD@windriver.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(adapted from oe-core commit 49c30208e9fc84bd8bf054ee7ffc853126fdd0bd)
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
---
...native-sysroot-L-when-cross-building.patch | 49 +++++++++++++++++++
recipes-devtools/rust/rust-source.inc | 1 +
2 files changed, 50 insertions(+)
create mode 100644 recipes-devtools/rust/files/0005-rustc_llvm-drop-native-sysroot-L-when-cross-building.patch
diff --git a/recipes-devtools/rust/files/0005-rustc_llvm-drop-native-sysroot-L-when-cross-building.patch b/recipes-devtools/rust/files/0005-rustc_llvm-drop-native-sysroot-L-when-cross-building.patch
new file mode 100644
index 0000000..8fd17c1
--- /dev/null
+++ b/recipes-devtools/rust/files/0005-rustc_llvm-drop-native-sysroot-L-when-cross-building.patch
@@ -0,0 +1,49 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Hemanth Kumar M D <Hemanth.KumarMD@windriver.com>
+Date: Mon, 16 Nov 2026 03:14:17 -0800
+Subject: [PATCH] rustc_llvm: drop native sysroot -L when cross-building
+
+With the recent refactoring of the LLVM handling in rust bootstrap [1],
+the library search path of the native LLVM
+(recipe-sysroot-native/usr/lib) is added to the link of the target
+rustc_llvm when rustc is cross-built.
+
+rustc_llvm/build.rs only adjusts these -L paths by replacing the host
+triple with the target triple. In OE the native and target sysroot
+paths do not contain a triple, so the native path is kept and the
+linker finds the native libLLVM before the target one. A linker that
+cannot read the native library fails with:
+
+ libLLVM-23.so: file not recognized: file format not recognized
+
+Drop -L paths that point into recipe-sysroot-native when
+cross-building. The target libLLVM is still found through the target
+--sysroot.
+
+Upstream-Status: Inappropriate [https://github.com/rust-lang/rust/issues/165385]
+
+[1] https://github.com/rust-lang/rust/pull/161247
+
+Signed-off-by: Hemanth Kumar M D <Hemanth.KumarMD@windriver.com>
+---
+ compiler/rustc_llvm/build.rs | 7 ++++++-
+ 1 file changed, 6 insertions(+), 1 deletion(-)
+
+diff --git a/compiler/rustc_llvm/build.rs b/compiler/rustc_llvm/build.rs
+index 450b98f..05ff9dc 100644
+--- a/compiler/rustc_llvm/build.rs
++++ b/compiler/rustc_llvm/build.rs
+@@ -452,7 +452,12 @@ fn main() {
+ if let Some(stripped) = lib.strip_prefix("-LIBPATH:") {
+ println!("cargo:rustc-link-search=native={}", stripped.replace(&host, &target));
+ } else if let Some(stripped) = lib.strip_prefix("-L") {
+- println!("cargo:rustc-link-search=native={}", stripped.replace(&host, &target));
++ // OE: the build-machine llvm-config reports a libdir in the
++ // native sysroot, which holds a wrong-arch libLLVM.
++ let rewritten = stripped.replace(&host, &target);
++ if !rewritten.contains("recipe-sysroot-native") {
++ println!("cargo:rustc-link-search=native={rewritten}");
++ }
+ }
+ } else if let Some(stripped) = lib.strip_prefix("-LIBPATH:") {
+ println!("cargo:rustc-link-search=native={stripped}");
diff --git a/recipes-devtools/rust/rust-source.inc b/recipes-devtools/rust/rust-source.inc
index 8b5b59b..ed779f3 100644
--- a/recipes-devtools/rust/rust-source.inc
+++ b/recipes-devtools/rust/rust-source.inc
@@ -7,6 +7,7 @@ SRC_URI += "https://static.rust-lang.org/dist/rustc-${RUST_VERSION}-src.tar.xz;n
file://0002-Fix-rust-build-failure-with-unstable-options.patch;patchdir=${RUSTSRC} \
file://0003-cargo-omit-host-triple-from-unit-metadata-hash.patch;patchdir=${RUSTSRC} \
file://0004-Re-bless-tests-adjust-for-new-Cargo-lints.patch;patchdir=${RUSTSRC} \
+ file://0005-rustc_llvm-drop-native-sysroot-L-when-cross-building.patch;patchdir=${RUSTSRC} \
"
SRC_URI[rust.sha256sum] = "90dab90b8084eb57c35ae2b1d0b70c8e5138ace6023b22c60a5a400f586f63b2"
--
2.56.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [meta-lts-mixins][wrynose/rust][PATCH 06/10] rust: Fix intermittent test failure
2026-11-30 0:52 [meta-lts-mixins][wrynose/rust][PATCH 00/10] Update to 1.100.0 Scott Murray
` (4 preceding siblings ...)
2026-11-30 0:52 ` [meta-lts-mixins][wrynose/rust][PATCH 05/10] rust: drop native libLLVM path for non-host architectures Scott Murray
@ 2026-11-30 0:52 ` Scott Murray
2026-11-30 0:52 ` [meta-lts-mixins][wrynose/rust][PATCH 07/10] rust-target-config.bbclass: pass on all RISC-V extensions to LLVM Scott Murray
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Scott Murray @ 2026-11-30 0:52 UTC (permalink / raw)
To: yocto-patches
From: Deepesh Varatharajan <Deepesh.Varatharajan@windriver.com>
Fixes [YOCTO #16460]
Fix an intermittent test failure by backporting the upstream Rust commit.
https://github.com/rust-lang/rust/commit/a292cb16d5cfc32923be91c86afaf727682a38dc
Signed-off-by: Deepesh Varatharajan <Deepesh.Varatharajan@windriver.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(adapted from oe-core commit 5dbd586fa8a9ad1a5e0193986f1ed67e14b8c3ae)
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
---
...se-thread-local-in-c_str_alloc_error.patch | 64 +++++++++++++++++++
recipes-devtools/rust/rust-source.inc | 1 +
2 files changed, 65 insertions(+)
create mode 100644 recipes-devtools/rust/files/0006-alloctests-use-thread-local-in-c_str_alloc_error.patch
diff --git a/recipes-devtools/rust/files/0006-alloctests-use-thread-local-in-c_str_alloc_error.patch b/recipes-devtools/rust/files/0006-alloctests-use-thread-local-in-c_str_alloc_error.patch
new file mode 100644
index 0000000..f213220
--- /dev/null
+++ b/recipes-devtools/rust/files/0006-alloctests-use-thread-local-in-c_str_alloc_error.patch
@@ -0,0 +1,64 @@
+From a292cb16d5cfc32923be91c86afaf727682a38dc Mon Sep 17 00:00:00 2001
+From: Jules Bertholet <julesbertholet@quoi.xyz>
+Date: Mon, 16 Nov 2026 09:24:03 -0500
+Subject: [PATCH] alloctests: use thread-local in `c_str_alloc_error`
+
+Upstream-Status: Backport [https://github.com/rust-lang/rust/commit/a292cb16d5cfc32923be91c86afaf727682a38dc]
+Signed-off-by: Deepesh Varatharajan <Deepesh.Varatharajan@windriver.com>
+
+diff --git a/library/alloctests/tests/c_str_alloc_error.rs b/library/alloctests/tests/c_str_alloc_error.rs
+index 1e7d54d75b3..fc572169583 100644
+--- a/library/alloctests/tests/c_str_alloc_error.rs
++++ b/library/alloctests/tests/c_str_alloc_error.rs
+@@ -15,20 +15,22 @@
+ #![feature(alloc_error_hook)]
+
+ use std::alloc::{GlobalAlloc, Layout, System, set_alloc_error_hook};
++use std::cell::Cell;
+ use std::ffi::CString;
+ use std::panic::{AssertUnwindSafe, catch_unwind};
+-use std::sync::atomic::{AtomicBool, Ordering};
+
+ // Once armed, the first allocation of 8 bytes or more fails and disarms, so the
+ // reallocation inside `clone_into`'s grow path fails while the runtime's own
+ // smaller allocations keep succeeding.
+ struct OneShotFailingAlloc;
+
+-static ARMED: AtomicBool = AtomicBool::new(false);
++thread_local! {
++ static ARMED: Cell<bool> = const { Cell::new(false) };
++}
+
+ unsafe impl GlobalAlloc for OneShotFailingAlloc {
+ unsafe fn alloc(&self, layout: Layout) -> *mut u8 {
+- if layout.size() >= 8 && ARMED.swap(false, Ordering::SeqCst) {
++ if layout.size() >= 8 && ARMED.replace(false) {
+ return core::ptr::null_mut();
+ }
+ unsafe { System.alloc(layout) }
+@@ -39,7 +41,7 @@ unsafe fn dealloc(&self, ptr: *mut u8, layout: Layout) {
+ }
+
+ unsafe fn realloc(&self, ptr: *mut u8, layout: Layout, new_size: usize) -> *mut u8 {
+- if new_size >= 8 && ARMED.swap(false, Ordering::SeqCst) {
++ if new_size >= 8 && ARMED.replace(false) {
+ return core::ptr::null_mut();
+ }
+ unsafe { System.realloc(ptr, layout, new_size) }
+@@ -59,11 +61,11 @@ fn clone_into_alloc_failure_leaves_target_valid() {
+ let src = CString::new("a fairly long value").unwrap();
+ let mut target = CString::new("x").unwrap();
+
+- ARMED.store(true, Ordering::SeqCst);
++ ARMED.set(true);
+ // Under Miri the failing allocator is honored, so this reallocation unwinds; in a
+ // normal build the allocator can't intercept it and `clone_into` just succeeds.
+ let res = catch_unwind(AssertUnwindSafe(|| src.as_c_str().clone_into(&mut target)));
+- ARMED.store(false, Ordering::SeqCst);
++ ARMED.set(false);
+
+ if cfg!(miri) {
+ assert!(res.is_err(), "clone_into should have unwound on the alloc failure");
+--
+2.49.0
+
diff --git a/recipes-devtools/rust/rust-source.inc b/recipes-devtools/rust/rust-source.inc
index ed779f3..94a20a5 100644
--- a/recipes-devtools/rust/rust-source.inc
+++ b/recipes-devtools/rust/rust-source.inc
@@ -8,6 +8,7 @@ SRC_URI += "https://static.rust-lang.org/dist/rustc-${RUST_VERSION}-src.tar.xz;n
file://0003-cargo-omit-host-triple-from-unit-metadata-hash.patch;patchdir=${RUSTSRC} \
file://0004-Re-bless-tests-adjust-for-new-Cargo-lints.patch;patchdir=${RUSTSRC} \
file://0005-rustc_llvm-drop-native-sysroot-L-when-cross-building.patch;patchdir=${RUSTSRC} \
+ file://0006-alloctests-use-thread-local-in-c_str_alloc_error.patch;patchdir=${RUSTSRC} \
"
SRC_URI[rust.sha256sum] = "90dab90b8084eb57c35ae2b1d0b70c8e5138ace6023b22c60a5a400f586f63b2"
--
2.56.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [meta-lts-mixins][wrynose/rust][PATCH 07/10] rust-target-config.bbclass: pass on all RISC-V extensions to LLVM
2026-11-30 0:52 [meta-lts-mixins][wrynose/rust][PATCH 00/10] Update to 1.100.0 Scott Murray
` (5 preceding siblings ...)
2026-11-30 0:52 ` [meta-lts-mixins][wrynose/rust][PATCH 06/10] rust: Fix intermittent test failure Scott Murray
@ 2026-11-30 0:52 ` Scott Murray
2026-11-30 0:52 ` [meta-lts-mixins][wrynose/rust][PATCH 08/10] ptest-cargo.bbclass: run do_install_ptest_cargo as a postfunc Scott Murray
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: Scott Murray @ 2026-11-30 0:52 UTC (permalink / raw)
To: yocto-patches
From: Trevor Gamblin <tgamblin@baylibre.com>
llvm_features_from_tune() doesn't pass on all RISC-V extensions listed
in TUNE_FEATURES, but rather has a fixed subset listed, and ignores
others. This means that with new profiles and custom tunes, Rust code
still gets compiled for riscv64gc plus a handful of extras.
LLVM's RISC-V extension names match those we use for TUNE_FEATURES, so
we can instead pass on each extension in the same order.
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(adapted from oe-core commit 3b78f64f23d9ad1e0c94943f4a180189a57474eb)
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
---
classes-recipe/rust-target-config.bbclass | 34 ++++++-----------------
1 file changed, 8 insertions(+), 26 deletions(-)
diff --git a/classes-recipe/rust-target-config.bbclass b/classes-recipe/rust-target-config.bbclass
index 2faecd5..89fbd19 100644
--- a/classes-recipe/rust-target-config.bbclass
+++ b/classes-recipe/rust-target-config.bbclass
@@ -83,32 +83,14 @@ def llvm_features_from_tune(d):
if 'cortexa57' in feat:
f.append("+v8a")
if 'rv' in feat:
- if 'm' in feat:
- f.append("+m")
- if 'a' in feat:
- f.append("+a")
- if 'f' in feat:
- f.append("+f")
- if 'd' in feat:
- f.append("+d")
- if 'c' in feat:
- f.append("+c")
- if 'v' in feat:
- f.append("+v")
- if 'zicbom' in feat:
- f.append("+zicbom")
- if 'zicsr' in feat:
- f.append("+zicsr")
- if 'zifencei' in feat:
- f.append("+zifencei")
- if 'zba' in feat:
- f.append("+zba")
- if 'zbb' in feat:
- f.append("+zbb")
- if 'zbc' in feat:
- f.append("+zbc")
- if 'zbs' in feat:
- f.append("+zbs")
+ # LLVM uses the same names as TUNE_FEATURES for RISC-V extensions, so
+ # pass on every single-letter (except the base i) and z, s or x
+ # extension, in TUNE_FEATURES order to keep the result stable. Other
+ # tune flags (e.g. "rv", "64" or core names) aren't extensions.
+ for e in dict.fromkeys(d.getVar('TUNE_FEATURES').split()):
+ if (len(e) == 1 and e.isalpha() and e != 'i') or \
+ (len(e) > 1 and e[0] in 'zsx' and e.isalnum()):
+ f.append("+" + e)
return f
llvm_features_from_tune[vardepvalue] = "${@llvm_features_from_tune(d)}"
--
2.56.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [meta-lts-mixins][wrynose/rust][PATCH 08/10] ptest-cargo.bbclass: run do_install_ptest_cargo as a postfunc
2026-11-30 0:52 [meta-lts-mixins][wrynose/rust][PATCH 00/10] Update to 1.100.0 Scott Murray
` (6 preceding siblings ...)
2026-11-30 0:52 ` [meta-lts-mixins][wrynose/rust][PATCH 07/10] rust-target-config.bbclass: pass on all RISC-V extensions to LLVM Scott Murray
@ 2026-11-30 0:52 ` Scott Murray
2026-11-30 0:52 ` [meta-lts-mixins][wrynose/rust][PATCH 09/10] librsvg: make ptest symlink creation idempotent Scott Murray
2026-11-30 0:52 ` [meta-lts-mixins][wrynose/rust][PATCH 10/10] ptest-cargo.bbclass: don't follow symlinks when chowning Scott Murray
9 siblings, 0 replies; 11+ messages in thread
From: Scott Murray @ 2026-11-30 0:52 UTC (permalink / raw)
To: yocto-patches
From: Trevor Gamblin <tgamblin@baylibre.com>
do_install_ptest_cargo appends to run-ptest, but run-ptest is only reset
by do_install_ptest_base's cleandirs. This means that changes to its
signature (e.g. by setting 'RUST_TEST_ARGS:pn-hyperfine = "--test-threads=1"'
in local.conf) just append another block to run-ptest with an 'exit $rc'
in between, so changed test arguments aren't actually used. Run
do_install_ptest_cargo as a postfunc for do_install_ptest_base instead
so that changes are always reflected.
do_install_ptest_cargo is removed as a task.
Tested by setting RUST_TEST_ARGS in local.conf as described above. Here
is a snippet of what the double-appended run-ptest script would look
like without this fix:
|if ! /usr/lib/hyperfine/ptest/hyperfine-e8776e44d98845b7
|then
| rc=1
| echo "FAIL: /usr/lib/hyperfine/ptest/hyperfine-e8776e44d98845b7"
|else
| echo "PASS: /usr/lib/hyperfine/ptest/hyperfine-e8776e44d98845b7"
|fi
|exit $rc
|
|echo ""
|echo "## starting to run rust tests ##"
|if [ -z "$rc" ]; then rc=0; fi
|if ! /usr/lib/hyperfine/ptest/execution_order_tests-0fccc0f22d97e11e --test-threads=1
|then
| rc=1
| echo "FAIL: /usr/lib/hyperfine/ptest/execution_order_tests-0fccc0f22d97e11e"
|else
AI-Generated: Uses Claude Opus 5.5
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
(adapted from oe-core commit 24a1b261834bbbe1b131dd31e5e2454f130250b3)
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
---
classes-recipe/ptest-cargo.bbclass | 16 +++++++---------
1 file changed, 7 insertions(+), 9 deletions(-)
diff --git a/classes-recipe/ptest-cargo.bbclass b/classes-recipe/ptest-cargo.bbclass
index 5cdd1c4..0173a2e 100644
--- a/classes-recipe/ptest-cargo.bbclass
+++ b/classes-recipe/ptest-cargo.bbclass
@@ -123,21 +123,19 @@ python do_install_ptest_cargo() {
shutil.chown(os.path.join(root, f), "root", "root")
}
-do_install_ptest_cargo[dirs] = "${B}"
-do_install_ptest_cargo[doc] = "Create or update the run-ptest script with rust test binaries generated"
do_compile_ptest_cargo[dirs] = "${B}"
do_compile_ptest_cargo[doc] = "Generate rust test binaries through cargo"
addtask compile_ptest_cargo after do_compile before do_compile_ptest_base
-addtask install_ptest_cargo after do_install_ptest_base before do_package
-python () {
- if not bb.data.inherits_class('native', d) and not bb.data.inherits_class('cross', d):
- d.setVarFlag('do_install_ptest_cargo', 'fakeroot', '1')
- d.setVarFlag('do_install_ptest_cargo', 'umask', '022')
+# Run as part of do_install_ptest_base so its cleandirs always provides a fresh
+# run-ptest to append to. As a separate task, a signature change (e.g.
+# RUST_TEST_ARGS) re-ran only this step, appending a second block after the
+# first "exit $rc".
+do_install_ptest_base[postfuncs] += "do_install_ptest_cargo"
+python () {
# Remove all '*ptest_cargo' tasks when ptest is not enabled
if not(d.getVar('PTEST_ENABLED') == "1"):
- for i in ['do_compile_ptest_cargo', 'do_install_ptest_cargo']:
- bb.build.deltask(i, d)
+ bb.build.deltask('do_compile_ptest_cargo', d)
}
--
2.56.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [meta-lts-mixins][wrynose/rust][PATCH 09/10] librsvg: make ptest symlink creation idempotent
2026-11-30 0:52 [meta-lts-mixins][wrynose/rust][PATCH 00/10] Update to 1.100.0 Scott Murray
` (7 preceding siblings ...)
2026-11-30 0:52 ` [meta-lts-mixins][wrynose/rust][PATCH 08/10] ptest-cargo.bbclass: run do_install_ptest_cargo as a postfunc Scott Murray
@ 2026-11-30 0:52 ` Scott Murray
2026-11-30 0:52 ` [meta-lts-mixins][wrynose/rust][PATCH 10/10] ptest-cargo.bbclass: don't follow symlinks when chowning Scott Murray
9 siblings, 0 replies; 11+ messages in thread
From: Scott Murray @ 2026-11-30 0:52 UTC (permalink / raw)
To: yocto-patches
From: Trevor Gamblin <tgamblin@baylibre.com>
do_install_ptest:append() for librsvg was creating a link for 'ptest'
outside of PTEST_PATH, so it wasn't being removed during cleanup and
would remain present on rebuild. This created a self-referencing link,
leading to errors like:
| 1509: follow_symlinks=follow_symlinks)
| 1510:
| 1511:def get_terminal_size(fallback=(80, 24)):
| 1512: """Get the size of the terminal window.
|Exception: OSError: [Errno 40] Too many levels of symbolic links: '/home/tgamblin/workspace/ypbuilds/riscv-maint/build/tmp/work/x86-64-v3-oe-linux/librsvg/2.63.4/image/usr/lib/librsvg/ptest/ptest'
|
|ERROR: Logfile of failure stored in: /home/tgamblin/workspace/ypbuilds/riscv-maint/build/tmp/work/x86-64-v3-oe-linux/librsvg/2.63.4/temp/log.do_install_ptest_base.2703564
|ERROR: Task (/home/tgamblin/workspace/ypbuilds/riscv-maint/layers/openembedded-core/recipes-gnome/librsvg/librsvg_2.63.4.bb:do_install_ptest_base) failed with exit code '1'
Treat the link name as a normal file if it's a directory ('-n'; i.e.
don't follow the link) and force-overwrite it ('-f') so that the link
gets recreated on subsequent runs.
AI-Generated: Uses Claude Opus 5.5
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
(adapted from oe-core commit ae48606b96535839faa919765721b0de3a22a7d9)
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
---
recipes-gnome/librsvg/librsvg_2.63.4.bb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/recipes-gnome/librsvg/librsvg_2.63.4.bb b/recipes-gnome/librsvg/librsvg_2.63.4.bb
index 6e88270..a6fd4ce 100644
--- a/recipes-gnome/librsvg/librsvg_2.63.4.bb
+++ b/recipes-gnome/librsvg/librsvg_2.63.4.bb
@@ -87,7 +87,7 @@ do_install_ptest:append() {
# the api tests look for the required files in rsvg folder, so simulate it
# with a symlink that points to the current folder
ln -s . ${D}${PTEST_PATH}/rsvg
- ln -s ptest ${D}${PTEST_PATH}/../rsvg
+ ln -snf ptest ${D}${PTEST_PATH}/../rsvg
}
PACKAGES =+ "librsvg-gtk rsvg"
--
2.56.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [meta-lts-mixins][wrynose/rust][PATCH 10/10] ptest-cargo.bbclass: don't follow symlinks when chowning
2026-11-30 0:52 [meta-lts-mixins][wrynose/rust][PATCH 00/10] Update to 1.100.0 Scott Murray
` (8 preceding siblings ...)
2026-11-30 0:52 ` [meta-lts-mixins][wrynose/rust][PATCH 09/10] librsvg: make ptest symlink creation idempotent Scott Murray
@ 2026-11-30 0:52 ` Scott Murray
9 siblings, 0 replies; 11+ messages in thread
From: Scott Murray @ 2026-11-30 0:52 UTC (permalink / raw)
To: yocto-patches
From: Trevor Gamblin <tgamblin@baylibre.com>
Use os.lchown() instead of shutil.chown(), as the former follows
symlinks. os.lchown changes the owner of the link itself.
shutil.chown() didn't add the follow_symlinks option until Python
3.13[1], so we can't just add that argument.
[1]: https://docs.python.org/3/library/shutil.html#shutil.chown
AI-Generated: Uses Claude Opus 5.5
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
(adapted from oe-core commit c88df9d0ef9b1418d96fea347475c331e54d5dd0)
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
---
classes-recipe/ptest-cargo.bbclass | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/classes-recipe/ptest-cargo.bbclass b/classes-recipe/ptest-cargo.bbclass
index 0173a2e..340fccf 100644
--- a/classes-recipe/ptest-cargo.bbclass
+++ b/classes-recipe/ptest-cargo.bbclass
@@ -115,12 +115,11 @@ python do_install_ptest_cargo() {
if not script_exists:
os.chmod(ptest_script, 0o755)
- # this is chown -R root:root ${D}${PTEST_PATH}
+ # Equivalent to 'chown -R root:root ${D}${PTEST_PATH}, which doesn't follow
+ # symlinks
for root, dirs, files in os.walk(ptest_dir):
- for d in dirs:
- shutil.chown(os.path.join(root, d), "root", "root")
- for f in files:
- shutil.chown(os.path.join(root, f), "root", "root")
+ for name in dirs + files:
+ os.lchown(os.path.join(root, name), 0, 0)
}
do_compile_ptest_cargo[dirs] = "${B}"
--
2.56.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
end of thread, other threads:[~2026-11-30 0:52 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30 0:52 [meta-lts-mixins][wrynose/rust][PATCH 00/10] Update to 1.100.0 Scott Murray
2026-11-30 0:52 ` [meta-lts-mixins][wrynose/rust][PATCH 01/10] rust-target-config.bbclass: Add i128:128 to mips64 data layouts Scott Murray
2026-11-30 0:52 ` [meta-lts-mixins][wrynose/rust][PATCH 02/10] rust-target-config.bbclass: Set llvm-abiname for mips64 targets Scott Murray
2026-11-30 0:52 ` [meta-lts-mixins][wrynose/rust][PATCH 03/10] rust: add rust-analyzer to the SDK behind a PACKAGECONFIG Scott Murray
2026-11-30 0:52 ` [meta-lts-mixins][wrynose/rust][PATCH 04/10] rust: Upgrade 1.99.1 -> 1.100.0 Scott Murray
2026-11-30 0:52 ` [meta-lts-mixins][wrynose/rust][PATCH 05/10] rust: drop native libLLVM path for non-host architectures Scott Murray
2026-11-30 0:52 ` [meta-lts-mixins][wrynose/rust][PATCH 06/10] rust: Fix intermittent test failure Scott Murray
2026-11-30 0:52 ` [meta-lts-mixins][wrynose/rust][PATCH 07/10] rust-target-config.bbclass: pass on all RISC-V extensions to LLVM Scott Murray
2026-11-30 0:52 ` [meta-lts-mixins][wrynose/rust][PATCH 08/10] ptest-cargo.bbclass: run do_install_ptest_cargo as a postfunc Scott Murray
2026-11-30 0:52 ` [meta-lts-mixins][wrynose/rust][PATCH 09/10] librsvg: make ptest symlink creation idempotent Scott Murray
2026-11-30 0:52 ` [meta-lts-mixins][wrynose/rust][PATCH 10/10] ptest-cargo.bbclass: don't follow symlinks when chowning Scott Murray
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.