Re: [poky] Issue with Dynamic Linker and Python Dependency in Yocto SDK Setup

Richard Purdie <[email protected]>
Newsgroups org.yoctoproject.lists.poky
Message-ID <05e7aa305fe8079714a10d46de3c0be5bc73ca11.camel@linuxfoundation.org>
On Mon, 2024-06-24 at 23:46 -0700, Nicolas Wirth via
lists.yoctoproject.org wrote:
> > 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 SDK to the current directory. Then, we create a symlink to the
> toolchain's dynamic linker. By setting LD_LIBRARY_PATH, we can use
> the toolchain as intended without using the installation script or
> Python.
> This is our current solution. Do you see any potential issues or a
> better way to achieve this?

Personally I'd probably have tried to find/create a statically linked
minimal python binary and used that to run the relocation script. Our
own build could probably generate one with a little bit of work or
there may be some around online.

I'd be a bit concerned that you've probably not caught all the
relocation issues with the approach you're using as the relocation
script changes a number of things and I don't think you've listed
everything. I don't have the time to try and look into what you're
doing though, we taught that existing script all these things for a
reason!

Cheers,

Richard
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.