diff mbox series

[meta-lts-mixins,scarthgap/rust,21/37] rust: clean up dependencies

Message ID 192e2251c2653163ff7fc6c9e93470f6f86f562f.1789156653.git.scott.murray@konsulko.com
State New
Headers show
Series Update to 1.98.1 | expand

Commit Message

Scott Murray Sept. 11, 2026, 8:13 p.m. UTC
From: Ross Burton <ross.burton@arm.com>

The rust recipe inherits cargo_common which now depends on rust-native
and cargo-native, so we can just remove those dependencies in the native
case instead of having to handle target/nativesdk.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(adapted from oe-core commit 32c44d640af9b7dce1571986d5d37204517c2b9f)
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
---
 recipes-devtools/rust/rust_1.96.1.bb | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)
diff mbox series

Patch

diff --git a/recipes-devtools/rust/rust_1.96.1.bb b/recipes-devtools/rust/rust_1.96.1.bb
index a7101d5..581523a 100644
--- a/recipes-devtools/rust/rust_1.96.1.bb
+++ b/recipes-devtools/rust/rust_1.96.1.bb
@@ -12,18 +12,16 @@  inherit rust
 inherit cargo_common
 
 DEPENDS += "rust-llvm"
+
 # native rust uses cargo/rustc from binary snapshots to bootstrap
 # but everything else should use our native builds
-DEPENDS:append:class-target = " cargo-native rust-native"
-DEPENDS:append:class-nativesdk = " cargo-native rust-native"
-
-RDEPENDS:${PN}:append:class-target = " gcc g++ binutils"
-
-# Otherwise we'll depend on what we provide
+DEPENDS:remove:class-native = "cargo-native"
 INHIBIT_DEFAULT_RUST_DEPS:class-native = "1"
-# We don't need to depend on gcc-native because yocto assumes it exists
+
 PROVIDES:class-native = "virtual/${TARGET_PREFIX}rust"
 
+RDEPENDS:${PN}:append:class-target = " gcc g++ binutils"
+
 S = "${RUSTSRC}"
 # Separate build directory from the shared source tree so that multiple
 # variants (target, native, nativesdk) don't conflict in the source dir.