[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openembedded-core
Subject:    Re: [OE-Core][PATCH 3/4] cargo: Move vendor directory to registry/src
From:       "Richard Purdie" <richard.purdie () linuxfoundation ! org>
Date:       2023-12-30 23:46:03
Message-ID: 89ac05ec59331d8856842685bd673a75a2d812c2.camel () linuxfoundation ! org
[Download RAW message or body]

On Sat, 2023-12-30 at 15:49 +0000, Alex Kiernan wrote:
> rust 1.75 has an assumption from 85c0ce24cc74 ("remap cargo dependencies
> to /rust/deps") that unpacked crates (vendored or otherwise)
> are found in .../registry/src (usually in ~/.cargo). Moving our vendor
> directory to match is the easiest workaround to avoid the upstream
> assumption causing issues.
> Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
> ---
> This requires the concomitant change in bitbake to use
> CARGO_VENDORING_DIRECTORY for unpacking crates into.
> 
>  meta/classes-recipe/cargo_common.bbclass | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta/classes-recipe/cargo_common.bbclass b/meta/classes-recipe/cargo_common.bbclass
> index e932ada862bd..3cb21cfddcb6 100644
> --- a/meta/classes-recipe/cargo_common.bbclass
> +++ b/meta/classes-recipe/cargo_common.bbclass
> @@ -31,7 +31,7 @@ export PKG_CONFIG_ALLOW_CROSS = "1"
>  CARGO_DISABLE_BITBAKE_VENDORING ??= "0"
>  
>  # Used by libstd-rs to point to the vendor dir included in rustc src
> -CARGO_VENDORING_DIRECTORY ??= "${CARGO_HOME}/bitbake"
> +CARGO_VENDORING_DIRECTORY ??= "${CARGO_HOME}/registry/src"
>  
>  # The directory of the Cargo.toml relative to the root directory, per default
>  # assume there's a Cargo.toml directly in the root directory

I think the patchdir in SRC_URI of the librsvg recipe needs updating to
match that else you see:

https://autobuilder.yoctoproject.org/typhoon/#/builders/57/builds/8232/steps/11/logs/stdio

Cheers,

Richard


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193085): https://lists.openembedded.org/g/openembedded-core/message/193085
Mute This Topic: https://lists.openembedded.org/mt/103433091/4454766
Group Owner: openembedded-core+owner@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [openembedded-core@marc.info]
-=-=-=-=-=-=-=-=-=-=-=-



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic