[OE-core] [PATCH] glibc: Package AArch64 dynamic loader symlink correctly with usrmerge

Richard Purdie richard.purdie at linuxfoundation.org
Thu Nov 15 19:10:08 UTC 2018


On Thu, 2018-11-15 at 12:00 +0000, Mike Crowe wrote:
> When using usrmerge, the compatibility dynamic loader symlink created
> in do_install_append_aarch64 ends up in /usr/lib rather than /lib.
> This means that the path added to libc_baselibs needs to be altered
> to match.
> 
> It's also necessary to tweak do_poststash_install_cleanup to not fail
> when the symlink exists. I'm not entirely sure that the fix I've
> applied here is the best one, but it does appear to work.

I'm afraid I really don't like this. Its creating a twisted web of
logic which is going to be hard to maintain as the code is trying to do
too many different things.

In particular, hardcoding "lib64" is usually a bad sign, as is swapping
/lib for nonarch_base_libdir since whilst those happen to be similar,
they do mean different things here. Its pure luck that usrmerge happens
to end up doing the right thing and it will work until someone else
wants to do something interesting with the layout and we can complicate
this even more.

I'm hoping there is a better way to address this...

Cheers,

Richard



More information about the Openembedded-core mailing list