public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
From: Maanya Goenka <maanyagoenka@linux.microsoft.com>
To: openembedded-core@lists.openembedded.org
Cc: alhe@linux.microsoft.com, Maanya Goenka <maanyagoenka@microsoft.com>
Subject: [PATCH] toolchain-shar-relocate: allow 'find' access to libraries in symlinked directories
Date: Thu,  1 Feb 2024 02:56:24 +0000	[thread overview]
Message-ID: <20240201025621.1632547-3-maanyagoenka@linux.microsoft.com> (raw)
In-Reply-To: <20240201025621.1632547-1-maanyagoenka@linux.microsoft.com>

From: Maanya Goenka <maanyagoenka@microsoft.com>

If the '/' is not added to the end of the dynamic loader path, only directories
that are not symlinks will be looked into for libraries such as ld-linux*,
so the slash is added to allow the 'find' command to have symlinked directory access too.

Signed-off-by: Maanya Goenka <maanyagoenka@microsoft.com>
Signed-off-by : Alejandro Hernandez Samaniego <alhe@linux.microsoft.com>
---
 meta/files/toolchain-shar-relocate.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/files/toolchain-shar-relocate.sh b/meta/files/toolchain-shar-relocate.sh
index cee9adbf39..e8ab357717 100644
--- a/meta/files/toolchain-shar-relocate.sh
+++ b/meta/files/toolchain-shar-relocate.sh
@@ -4,8 +4,9 @@ if ! xargs --version > /dev/null 2>&1; then
 fi
 
 # fix dynamic loader paths in all ELF SDK binaries
+# allow symlinks to be accessed via the find command too
 native_sysroot=$($SUDO_EXEC cat $env_setup_script |grep 'OECORE_NATIVE_SYSROOT='|cut -d'=' -f2|tr -d '"')
-dl_path=$($SUDO_EXEC find $native_sysroot/lib -maxdepth 1 -name "ld-linux*")
+dl_path=$($SUDO_EXEC find $native_sysroot/lib/ -maxdepth 1 -name "ld-linux*")
 if [ "$dl_path" = "" ] ; then
 	echo "SDK could not be set up. Relocate script unable to find ld-linux.so. Abort!"
 	exit 1
-- 
2.25.1



      parent reply	other threads:[~2024-02-01  2:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-01  2:56 [PATCH] bash: nativesdk-sdk-provides-dummy RPROVIDES bash for nativesdk already so usrmerge should not Maanya Goenka
2024-02-01  2:56 ` [PATCH] usrmerge: add the distro feature to nativesdk builds when added to target and enable symlink creation for both Maanya Goenka
2024-02-06 10:03   ` [OE-core] " Alexandre Belloni
2024-02-06 10:27   ` Richard Purdie
2024-02-15 19:10     ` Alejandro Enedino Hernandez Samaniego
2024-02-15 21:08       ` Richard Purdie
2024-02-01  2:56 ` Maanya Goenka [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240201025621.1632547-3-maanyagoenka@linux.microsoft.com \
    --to=maanyagoenka@linux.microsoft.com \
    --cc=alhe@linux.microsoft.com \
    --cc=maanyagoenka@microsoft.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox