On Mon, 1 Sept 2025 at 12:29, Gyorgy Sarvari via lists.openembedded.org <[email protected]> wrote: > I'm 97.89% confident that I figured out the problem, but I could use > some advice, how to solve it. > So the issue is indeed that pseudo-native has a runtime dependency on > sqlite3, but currently it isn't guaranteed to be available in the Yocto > folders. > > Until now pseudo was linked to unversioned sqlite libs, and if it > couldn't find it in the Yocto folders, it just grabbed the one from the > host. But now that it is linked to a versioned library, it needs exact > version. > Generally speaking the sysroots-components/$BUILD_ARCH/sqlite3-native > folder should be populated by the time pseudo-native is first used, > which doesn't happen always. > > So I tried to add the following to the pseudo recipe: > > python __anonymous () { > if d.getVar("PN").endswith("-native"): > d.appendVarFlag('do_populate_sysroot', 'depends', ' > sqlite3-native:do_populate_sysroot') > } > > I have also tried > do_populate_sysroot[depends] += 'sqlite3-native:do_populate_sysroot' > > However when building from sstate cache, these don't seem to be > deterministic - rarely it seems to work, but more often pseudo-native is > populated before sqlite3-native, and just fails still. > > I wonder, are these inter-task dependencies ignored when populating > sysroots from sstate cache? > Or should I rather add the dependency to base.bbclass next to pseudo- > (if fakeroot == pseudo, then add sqlite3-native:do_populate_sysroot as a > dep too)? > Or am I completely misguided here?
I'm afraid we have not yet gotten to the bottom of the problem. First, pseudo linking with libsqlite3.so.3.50.2 is wrong. It should continue to link with libsqlite3.so.0 like before. That said, non-deterministically falling through to the host libsqlite is wrong as well, it just wasn't previously exposed. We need to figure out this one first, and fix it properly, and only then address the pseudo linking issue above. Alex
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#222659): https://lists.openembedded.org/g/openembedded-core/message/222659 Mute This Topic: https://lists.openembedded.org/mt/114116736/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
