All of lore.kernel.org
 help / color / mirror / Atom feed
* cargo/rust from meta-rust-bin in eSDK of yocto 4.x
@ 2024-10-28 17:56 sandro.anders
  2024-10-29  8:21 ` [yocto] " Gyorgy Sarvari
  0 siblings, 1 reply; 5+ messages in thread
From: sandro.anders @ 2024-10-28 17:56 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 611 bytes --]

Hello everyone,
I am currently testing the eSDK and have encountered a problem with cargo/rust. To make some of our projects written in rust work I had to use the meta-rust-bin layer (meta-rust does not work with yocto 4.x). This also works fine with the images or the standard SDK. However, when I want to build the eSDK, I get the following error message.

do_sdk_depends: The file /usr/bin/cargo is installed by both cargo-native and cargo-bin-cross-aarch64, aborting

How can I prevent the outdated cargo/rust from being in the eSDK and use the one from meta-rust-bin instead? Many thanks in advance.

[-- Attachment #2: Type: text/html, Size: 735 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [yocto] cargo/rust from meta-rust-bin in eSDK of yocto 4.x
  2024-10-28 17:56 cargo/rust from meta-rust-bin in eSDK of yocto 4.x sandro.anders
@ 2024-10-29  8:21 ` Gyorgy Sarvari
  2024-10-30  7:52   ` sandro.anders
  0 siblings, 1 reply; 5+ messages in thread
From: Gyorgy Sarvari @ 2024-10-29  8:21 UTC (permalink / raw)
  To: yocto, sandro.anders

When working with non-standard Rust versions from whatever other layers, 
I found it makes my life easier when I add the not-used recipes to 
BBMASK from oe-core, something like

BBMASK += "poky/meta/recipes-devtools/rust"

If there is anything that depends on it explicitly, it should fail 
loudly during next build, so it can be fixed. Otherwise bitbake will 
ignore these recipes completely, so it shouldn't clash with the new ones.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [yocto] cargo/rust from meta-rust-bin in eSDK of yocto 4.x
  2024-10-29  8:21 ` [yocto] " Gyorgy Sarvari
@ 2024-10-30  7:52   ` sandro.anders
  2025-04-15 11:32     ` Yash Shinde
  0 siblings, 1 reply; 5+ messages in thread
From: sandro.anders @ 2024-10-30  7:52 UTC (permalink / raw)
  To: Gyorgy Sarvari, yocto

[-- Attachment #1: Type: text/plain, Size: 31 bytes --]

Many thanks, I'll try it out.

[-- Attachment #2: Type: text/html, Size: 48 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [yocto] cargo/rust from meta-rust-bin in eSDK of yocto 4.x
  2024-10-30  7:52   ` sandro.anders
@ 2025-04-15 11:32     ` Yash Shinde
  2025-04-15 11:48       ` sandro.anders
  0 siblings, 1 reply; 5+ messages in thread
From: Yash Shinde @ 2025-04-15 11:32 UTC (permalink / raw)
  To: sandro.anders, yocto

[-- Attachment #1: Type: text/plain, Size: 486 bytes --]

Hi Sandro,

Recently, I also faced the similar issue as follows:

> 
> ERROR: libstd-rs-1.86.0-r0 do_prepare_recipe_sysroot: The file
> /usr/bin/cargo is installed by both rust-native and cargo-native, aborting
> 
> 
> 

Could you please explain how you resolved this issue?
I tried adding BBMASK in the recipe but it didn't seem to work.
Also, I noticed that BBMASK isn't widely used in other recipes.

Is there any better solution than using BBMASK?

Regards,
Yash

[-- Attachment #2: Type: text/html, Size: 757 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [yocto] cargo/rust from meta-rust-bin in eSDK of yocto 4.x
  2025-04-15 11:32     ` Yash Shinde
@ 2025-04-15 11:48       ` sandro.anders
  0 siblings, 0 replies; 5+ messages in thread
From: sandro.anders @ 2025-04-15 11:48 UTC (permalink / raw)
  To: Yash Shinde, yocto

[-- Attachment #1: Type: text/plain, Size: 140 bytes --]

Hi Yash,

Unfortunately I could not solve the problem and went a different way. I now use ostree to provide the SDK.

Regards,
Sandro

[-- Attachment #2: Type: text/html, Size: 224 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-04-15 11:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-28 17:56 cargo/rust from meta-rust-bin in eSDK of yocto 4.x sandro.anders
2024-10-29  8:21 ` [yocto] " Gyorgy Sarvari
2024-10-30  7:52   ` sandro.anders
2025-04-15 11:32     ` Yash Shinde
2025-04-15 11:48       ` sandro.anders

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.