All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH V3] rust-cross-canadian: Fix file conflicts for arm and aarch64
@ 2023-12-16  8:56 Deepthi.Hemraj
  2023-12-22 14:40 ` [OE-core] " Ross Burton
  2024-10-28 14:00 ` Richard Purdie
  0 siblings, 2 replies; 15+ messages in thread
From: Deepthi.Hemraj @ 2023-12-16  8:56 UTC (permalink / raw)
  To: openembedded-core
  Cc: Randy.MacLeod, Naveen.Gowda, Shivaprasad.Moodalappa,
	Sundeep.Kokkonda

From: Deepthi Hemraj <Deepthi.Hemraj@windriver.com>

Rust multilib sdks broken because of the conflicts between attempted installs of rust-cross-canadian for arm and aarch64.

Arm and aarch64 target architectures are trying to install cargo.sh and rust.sh in the same path which resulted in the issue.

The current patch modifies CARGO_ENV_SETUP_SH and RUST_ENV_SETUP_SH macros that uses MLPREFIX based on the multilib architecture.
Hence, creates different file names for the environment setup scripts and resolves the issue.

Signed-off-by: Deepthi Hemraj <Deepthi.Hemraj@windriver.com>
---
 meta/recipes-devtools/rust/rust-cross-canadian.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-devtools/rust/rust-cross-canadian.inc b/meta/recipes-devtools/rust/rust-cross-canadian.inc
index 7bfef6d175..9996d3d4a3 100644
--- a/meta/recipes-devtools/rust/rust-cross-canadian.inc
+++ b/meta/recipes-devtools/rust/rust-cross-canadian.inc
@@ -52,7 +52,7 @@ do_install () {
 
     ENV_SETUP_DIR=${D}${base_prefix}/environment-setup.d
     mkdir "${ENV_SETUP_DIR}"
-    RUST_ENV_SETUP_SH="${ENV_SETUP_DIR}/rust.sh"
+    RUST_ENV_SETUP_SH="${ENV_SETUP_DIR}/${MLPREFIX}rust.sh"
 
     RUST_TARGET_TRIPLE=`echo ${RUST_TARGET_SYS} | tr '[:lower:]' '[:upper:]' | sed 's/-/_/g'`
     RUST_HOST_TRIPLE=`echo ${RUST_HOST_SYS} | tr '[:lower:]' '[:upper:]' | sed 's/-/_/g'`
@@ -66,7 +66,7 @@ do_install () {
 
     chown -R root.root ${D}
 
-    CARGO_ENV_SETUP_SH="${ENV_SETUP_DIR}/cargo.sh"
+    CARGO_ENV_SETUP_SH="${ENV_SETUP_DIR}/${MLPREFIX}cargo.sh"
     cat <<- EOF > "${CARGO_ENV_SETUP_SH}"
 	export CARGO_HOME="\$OECORE_TARGET_SYSROOT/home/cargo"
 	mkdir -p "\$CARGO_HOME"
-- 
2.42.0



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

end of thread, other threads:[~2024-10-28 14:01 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-16  8:56 [PATCH V3] rust-cross-canadian: Fix file conflicts for arm and aarch64 Deepthi.Hemraj
2023-12-22 14:40 ` [OE-core] " Ross Burton
2023-12-28  9:28   ` Hemraj, Deepthi
2024-01-12  5:41     ` Hemraj, Deepthi
2024-01-12  6:59       ` Hemraj, Deepthi
2024-02-02 20:16   ` [OE-core] " Randy MacLeod
2024-02-10  4:39     ` Hemraj, Deepthi
2024-04-29 10:51       ` Hemraj, Deepthi
2024-04-29  7:43       ` Hemraj, Deepthi
2024-04-29 11:04         ` Hemraj, Deepthi
2024-04-29 10:52         ` Hemraj, Deepthi
2024-04-29 10:49         ` Hemraj, Deepthi
2024-10-28 12:04       ` Hemraj, Deepthi
2024-10-28 14:00         ` [OE-core] " Richard Purdie
2024-10-28 14:00 ` Richard Purdie

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.