On Fri, Nov 24, 2023 at 6:03 PM Khem Raj <[email protected]> wrote: > > > > On Fri, Nov 24, 2023 at 2:34 AM Johannes Pointner <[email protected]> > wrote: >> >> Hello, >> >> I did recently my first Nanbield build which required the distro >> feature usrmerge because of using systemd and as a result QtWebEngine >> didn't work anymore. >> I reported this to Qt(https://bugreports.qt.io/browse/QTBUG-119140), >> but looking deeper into this it turned out to be an issue related to >> the generated ld.so.cache in the rootfs.py. >> At the moment in the ldconfig-native which is used to generate this, >> are the paths to LIBDIR("/usr/lib") and SLIBDIR("/lib") hardcoded, but >> that isn't correct if usrmerge is enabled, at least I think so. >> The resulting ld.so.cache 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 >> ... >> >> Would it be OK to configure the paths LIBDIR SLIBDIR using base_libdir >> and libdir? > > > I think it should check for usrmerge feature and generate the correct values > during build This is already done in bitbake.conf: root_prefix = "${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', '${exec_prefix}', '${base_prefix}', d)}" Do you really think we should check again in ldconfig-native for usrmerge, can't we just do something like that: Add in ldconfig.c: +#ifndef LIBDIR #define LIBDIR "/usr/lib" +#endif +#ifndef SLIBDIR #define SLIBDIR "/lib" +#endif and build it like this: do_compile () { $CC ldconfig.c -std=gnu99 -DLIBDIR=\"${nonarch_libdir}\" -DSLIBDIR=\"${nonarch_base_libdir}\" chroot_canon.c xmalloc.c xstrdup.c cache.c readlib.c -I. dl-cache.c -o ldconfig } > >> >> >> Thanks, >> Hannes
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#191489): https://lists.openembedded.org/g/openembedded-core/message/191489 Mute This Topic: https://lists.openembedded.org/mt/102778802/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
