* [PATCH] rust-cross-canadian: Use shell from SDK, not the host
@ 2022-08-09 15:00 Richard Purdie
0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2022-08-09 15:00 UTC (permalink / raw)
To: openembedded-core
rust sets LD_LIBRARY_PATH which causes a lot of problems with host
binaries conflicting with SDK libraries. By using sh/bash from the
SDK we avoid those issues.
[YOCTO #14878]
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
meta/recipes-devtools/rust/rust-cross-canadian.inc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-devtools/rust/rust-cross-canadian.inc b/meta/recipes-devtools/rust/rust-cross-canadian.inc
index 2b09661542d..77d45a37a31 100644
--- a/meta/recipes-devtools/rust/rust-cross-canadian.inc
+++ b/meta/recipes-devtools/rust/rust-cross-canadian.inc
@@ -7,12 +7,13 @@ LICENSE = "MIT"
MODIFYTOS = "0"
+# Need to use our SDK's sh here, see #14878
create_sdk_wrapper () {
file="$1"
shift
cat <<- EOF > "${file}"
- #!/bin/sh
+ #!${base_prefix}/bin/sh
\$$1 \$@
EOF
--
2.34.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-08-09 15:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-09 15:00 [PATCH] rust-cross-canadian: Use shell from SDK, not the host Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).