mbox series

[meta-lts-mixins,kirkstone/rust,00/13] Update to Rust 1.87.0

Message ID cover.1753296167.git.scott.murray@konsulko.com
Headers show
Series Update to Rust 1.87.0 | expand

Message

Scott Murray July 23, 2025, 7:05 p.m. UTC
This patch series for the kirkstone/rust mixin layer backports the
recent Rust toolchain changes in oe-core master branch to pull in
the 1.85.1 -> 1.87.0 updates.  In addition to my usual smoke test
of building librsvg and python-cryptography, etc., I did some
experiments with the backported selftest this go around, and to my
surprise all tests but one (a simd one) pass in my test environment.
When I get some time, I plan to go through the selftest change history
to see if that test can be ignored with the older kirkstone toolchain
or not (I believe it was being ignored at one point, but need to
double-check).  If you happen to have a strong desire to see the
selftest working usefully with kirkstone/rust, assistance would be
appreciated.

With respect to the mozjs-* support via the dynamic-layers applied
bbappends, I have renamed the rust bbappend that's in there so it
won't break parsing, but from the looks of it the underlying issue
needs to be reinvestigated, as its use of RUST_BUILD_CCLD is now
incorrect AFAICT (results in a path into WORKDIR that is not usable).
As well, mozjs-91 builds fine for me without that bbappend, so I
suspect it likely will be better if it is replaced with a more
contained mozjs-78 tweak done with a bbappend to its recipe.
That will also make testing less painful as it will not affect
sstate the way a rust bbappend does...

I intend to push this series to scarthgap/rust within 24 hours
unless a serious showstopper is pointed out.

Changes:

Deepesh Varatharajan (1):
  rust: re-enable the unit tests that are previously ignored

Ines KCHELFI (1):
  ptest-cargo: fix tests output format for testimage

Khem Raj (2):
  rust: Use patchelf in place of chrpath to edit rpaths
  rust: Disable cross-unwinding support in llvm libunwind

Richard Purdie (1):
  oeqa/selftest/rust: Add exclusion to fix riscv64 builds

Ross Burton (3):
  rust: remove python3-native DEPENDS
  rust: consolidate rust-llvm dependencies
  rust: remove file-native DEPENDS

Scott Murray (1):
  Make dynamic layer rust bbappend version generic

Yash Shinde (4):
  rust: Upgrade 1.85.1->1.86.0
  rust: Drop obsolete rust-lld and extended tools dependencies
  rust: Upgrade 1.86.0 -> 1.87.0
  cargo-c-native: Update 0.10.5 -> 0.10.13

 classes/ptest-cargo.bbclass                   |  12 +-
 classes/rust-target-config.bbclass            |   2 +-
 conf/layer.conf                               |   2 +-
 .../{rust_1.85.1.bbappend => rust_%.bbappend} |   0
 lib/oeqa/selftest/cases/rust_mixin.py         |   3 +-
 recipes-devtools/rust/cargo-c-crates.inc      | 910 ++++++++++--------
 ...l-codes-on-riscv32gc-unknown-linux-g.patch |  38 -
 ...3.0.bb => cargo-c_0.10.13+cargo-0.88.0.bb} |   3 +-
 .../rust/{cargo_1.85.1.bb => cargo_1.87.0.bb} |   0
 ...l-codes-on-riscv32gc-unknown-linux-g.patch |  32 -
 ...bunwind-cross-architecture-unwinding.patch |  46 +
 ...teps-tool.rs-switch-off-lto-for-rust.patch |  64 +-
 .../Zdual-proc-macros-additional-check.patch  |  31 -
 ...crease-timeout-in-process-sigpipe-ru.patch |   4 +-
 ...d-statically-in-rustc_driver-feature.patch |  11 +-
 .../rust/files/rust-oe-selftest.patch         | 254 +++--
 recipes-devtools/rust/files/triagebot.patch   |  32 +
 ...ibstd-rs_1.85.1.bb => libstd-rs_1.87.0.bb} |   2 +-
 ....85.1.bb => rust-cross-canadian_1.87.0.bb} |   0
 ...ust-llvm_1.85.1.bb => rust-llvm_1.87.0.bb} |   2 +-
 recipes-devtools/rust/rust-snapshot.inc       |  78 +-
 recipes-devtools/rust/rust-source.inc         |   5 +-
 .../rust/{rust_1.85.1.bb => rust_1.87.0.bb}   |  29 +-
 23 files changed, 836 insertions(+), 724 deletions(-)
 rename dynamic-layers/meta-python/recipes-devtools/rust/{rust_1.85.1.bbappend => rust_%.bbappend} (100%)
 delete mode 100644 recipes-devtools/rust/cargo-c/0001-Define-more-ioctl-codes-on-riscv32gc-unknown-linux-g.patch
 rename recipes-devtools/rust/{cargo-c_0.10.5+cargo-0.83.0.bb => cargo-c_0.10.13+cargo-0.88.0.bb} (64%)
 rename recipes-devtools/rust/{cargo_1.85.1.bb => cargo_1.87.0.bb} (100%)
 create mode 100644 recipes-devtools/rust/files/0001-Disable-libunwind-cross-architecture-unwinding.patch
 delete mode 100644 recipes-devtools/rust/files/Zdual-proc-macros-additional-check.patch
 create mode 100644 recipes-devtools/rust/files/triagebot.patch
 rename recipes-devtools/rust/{libstd-rs_1.85.1.bb => libstd-rs_1.87.0.bb} (95%)
 rename recipes-devtools/rust/{rust-cross-canadian_1.85.1.bb => rust-cross-canadian_1.87.0.bb} (100%)
 rename recipes-devtools/rust/{rust-llvm_1.85.1.bb => rust-llvm_1.87.0.bb} (99%)
 rename recipes-devtools/rust/{rust_1.85.1.bb => rust_1.87.0.bb} (94%)