Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id CB8C1C2BBCA for ; Tue, 25 Jun 2024 06:46:03 +0000 (UTC) Subject: Re: Issue with Dynamic Linker and Python Dependency in Yocto SDK Setup To: poky@lists.yoctoproject.org From: "Nicolas Wirth" X-Originating-Location: Baechli, Nidwalden, CH (146.4.107.86) X-Originating-Platform: Windows Chrome 126 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Mon, 24 Jun 2024 23:46:03 -0700 References: In-Reply-To: Message-ID: <6942.1719297963074354692@lists.yoctoproject.org> Content-Type: multipart/alternative; boundary="oixJx3DF2r4TlYuWNdET" List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 25 Jun 2024 06:46:03 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/poky/message/13389 --oixJx3DF2r4TlYuWNdET Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable >=20 > relocating tools is a necessary part of SDK self-installer, so it can > edit the binaries to use correct libs as SDK expects. You may explore > using buildtools-tarball which can provide python perhaps > https://downloads.yoctoproject.org/releases/yocto/yocto-5.0/buildtools/ We found a workaround using patchelf to change the dynamic linker of the SD= K to the current directory. Then, we create a symlink to the toolchain's dy= namic linker. By setting LD_LIBRARY_PATH , we can use the toolchain as inte= nded without using the installation script or Python. This is our current solution. Do you see any potential issues or a better w= ay to achieve this? --oixJx3DF2r4TlYuWNdET Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
relocating tools is a necessary part of SDK self-inst= aller, so it can
edit the bi= naries to use correct libs as SDK expects. You may explore
using buildtools-tarball which can provide = python perhaps
https://downloads.yoctoproject.= org/releases/yocto/yocto-5.0/buildtools/

We found a workaround using patchelf to change the dynamic = linker of the SDK to the current directory. Then, we create a symlink to th= e toolchain's dynamic linker. By setting LD_LIBRARY_PATH, we c= an use the toolchain as intended without using the installation script or P= ython.

This is our current solution. Do you see any potential issues or a bette= r way to achieve this?

--oixJx3DF2r4TlYuWNdET--