On Fri, Dec 15, 2023 at 4:37 AM Johannes Pointner <[email protected]> wrote: > > On Wed, Dec 13, 2023 at 12:01 PM Ross Burton <[email protected]> wrote: > > > > On 6 Dec 2023, at 07:40, Johannes Pointner via lists.openembedded.org > > <[email protected]> wrote: > > > > > > From: Johannes Pointner <[email protected]> > > > > > > If DISTRO_FEATURE usrmerge is enabled, SLIBDIR is just a symlink to > > > LIBDIR. > > > ldconfig-native uses hardcoded paths for SLIBDIR and LIBDIR that are fine > > > for > > > the not usrmerge case. But if usrmerge is enabled ldconfig-native > > > generates a > > > ld.so.cache, which is done in rootfs.py, that looks like this: > > > 236 libs found in cache `/etc/ld.so.cache' > > > libzstd.so.1 (libc6) => /lib/libzstd.so.1 > > > libz.so.1 (libc6) => /lib/libz.so.1 > > > libxtables.so.12 (libc6) => /lib/libxtables.so.12 > > > libxslt.so.1 (libc6) => /lib/libxslt.so.1 > > > libxml2.so.2 (libc6) => /lib/libxml2.so.2 > > > > > > This breaks for example the Qt QLibraryInfo paths if Qt is configured > > > 'relocatable' and leads to the issue that the QtWebEngine can find the > > > QtWebEngineProcess, Qt WebEngine resources,... > > > > > > Therefore don't let ldconfig-native parse SLIBDIR if it is a symlink. > > > > This still doesn’t explain *why* ldconfig is broken, why the workaround is > > a yocto-specific fix in ldconfig and not a general fix that other distros > > have, and why this isn’t a problem with Qt. > As I wrote above ldconfig-native is broken for the usrmerge case > because it uses hardcoded paths which are correct for the "not > usrmerge case" but not for the "usrmerge case". > Other distros as also the yocto ldconfig for the target system is > configured at build time with the correct paths and works fine. > This is an issue for Qt because it tries to determine the library > locations using dladdr and this leads to incorrect paths that in my > case broke QtWebEngine.
This is good explanation in general. It would be good to explain a bit on how QT uses the native version of QT to manipulate paths for QTWebengine. > > > > Ross > > > > > > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#192539): https://lists.openembedded.org/g/openembedded-core/message/192539 Mute This Topic: https://lists.openembedded.org/mt/103009101/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
