* [PATCH] sdk-files: Enforce RPATH usage during relocation
@ 2023-01-02 16:10 Jan Kiszka
2023-01-11 5:43 ` Uladzimir Bely
0 siblings, 1 reply; 2+ messages in thread
From: Jan Kiszka @ 2023-01-02 16:10 UTC (permalink / raw)
To: isar-users
From: Jan Kiszka <jan.kiszka@siemens.com>
This is needed to ensure that dlopen'ed libs are also taken from the SDK
and not the host system, see also
https://www.qt.io/blog/2011/10/28/rpath-and-runpath.
Probably became broken for bullseye SDKs, see the bug report in
https://github.com/siemens/meta-iot2050/issues/392.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
meta/recipes-devtools/sdk-files/files/relocate-sdk.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-devtools/sdk-files/files/relocate-sdk.sh b/meta/recipes-devtools/sdk-files/files/relocate-sdk.sh
index 0d1c6330..82f63b30 100755
--- a/meta/recipes-devtools/sdk-files/files/relocate-sdk.sh
+++ b/meta/recipes-devtools/sdk-files/files/relocate-sdk.sh
@@ -1,7 +1,7 @@
#!/bin/sh
#
# This software is a part of ISAR.
-# Copyright (c) Siemens AG, 2020
+# Copyright (c) Siemens AG, 2020-2023
#
# SPDX-License-Identifier: MIT
@@ -34,6 +34,7 @@ for binary in $(find ${sdkroot}/usr/bin ${sdkroot}/usr/sbin ${sdkroot}/usr/lib/g
if [ -n "${interpreter}" ]; then
patchelf --set-interpreter ${new_sdkroot}${interpreter} \
--set-rpath ${new_sdkroot}/usr/lib:${new_sdkroot}/usr/lib/${arch}-linux-gnu \
+ --force-rpath \
$binary 2>/dev/null
fi
done
--
2.35.3
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] sdk-files: Enforce RPATH usage during relocation
2023-01-02 16:10 [PATCH] sdk-files: Enforce RPATH usage during relocation Jan Kiszka
@ 2023-01-11 5:43 ` Uladzimir Bely
0 siblings, 0 replies; 2+ messages in thread
From: Uladzimir Bely @ 2023-01-11 5:43 UTC (permalink / raw)
To: isar-users; +Cc: Jan Kiszka
In the email from Monday, 2 January 2023 19:10:01 +03 user Jan Kiszka wrote:
> From: Jan Kiszka <jan.kiszka@siemens.com>
>
> This is needed to ensure that dlopen'ed libs are also taken from the SDK
> and not the host system, see also
> https://www.qt.io/blog/2011/10/28/rpath-and-runpath.
>
> Probably became broken for bullseye SDKs, see the bug report in
> https://github.com/siemens/meta-iot2050/issues/392.
>
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Applied to next, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-01-11 5:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-02 16:10 [PATCH] sdk-files: Enforce RPATH usage during relocation Jan Kiszka
2023-01-11 5:43 ` Uladzimir Bely
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox