linux-automation / meta-lxatac

Build your own LXA TAC images and bundles
MIT License
5 stars 15 forks source link

Update to Yocto 5.0 - Scarthgap #137

Closed hnez closed 1 month ago

hnez commented 1 month ago

This updates meta-lxatac to the yocto scarthgap release.

As part of the update we got rid of a few workarounds we needed for successful nanbield build but gained a few new workarounds needed to build for scarthgap.

The zeroconf/avahi change introduced in poky commit https://github.com/yoctoproject/poky/commit/c152a1e25c may fix the avahi daemon issues we see in #128, but I would like to test that for a bit before closing the issue.

hnez commented 1 month ago

I am currently tracking down another issue that needs fixing before this can be merged.

For some reason most of the python3-twisted-* packages in build/tmp/work/cortexa7t2hf-neon-vfpv4-oe-linux-gnueabi/python3-twisted/24.3.0/packages-split/ end up being empty (the files all end up mushed into packages-split/python3-twisted), resulting in no packages being generated for e.g. python3-twisted-conch resulting in dependency errors later on:

$ bitbake lxatac-core-bundle-base
…
 * Solver encountered 1 problem(s):
 * Problem 1/1:
 *   - package python3-labgrid-git-r0.cortexa7t2hf-neon-vfpv4 requires python3-autobahn, but none of the providers can be installed
 *   - package python3-autobahn-23.6.2-r0.cortexa7t2hf-neon-vfpv4 requires python3-twisted, but none of the providers can be installed
 *   - conflicting requests
 *   - nothing provides python3-twisted-conch needed by python3-twisted-24.3.0-r0.cortexa7t2hf-neon-vfpv4
 *
 * Solution 1:
 *   - do not ask to install a package providing python3-labgrid
…
hnez commented 1 month ago

Sorry, pressed the wrong button ("Close with comment" looks an awful lot like "discard this comment").

I think I've found the change that has cause the issue (FILES:${PN} no longer being overridden due to https://github.com/openembedded/meta-openembedded/commit/a57eea75cd93122f3dc097c55c92d8a78f19fd68#diff-6a7860eeab2c96b001eac5f36c73705cbdf45e857db2ff77e39ce8b932b5e393L78-L79 ) and a fix that is already in meta-oe master but not yet in the scarthgap branch https://github.com/openembedded/meta-openembedded/commit/bd1b5cde348dbc20e3d332de69617a8a95fe5ff3 .

I think I'll backport the fix like I did for the npm caching issue.

hnez commented 1 month ago

I have added 79ccd1dfca7868d5f381470e088f54ffaa124666 now, which is not the most elegant solution, but one that at least makes the build work until the openembedded/meta-openembedded scathgap branch is updated again (which is when we can drop it again).

hnez commented 1 month ago

I've updated meta-oe to the most recent scarthgap branch, which adds a single commit https://github.com/openembedded/meta-openembedded/commit/6de0ab744341ad61b0661aa28d78dc6767ce0786 (nodejs-oe-cache: fix offline install of dependencies ), which means I was able to remove the nodejs workaround I had before. (The python3-twisted workaround is however still required. I guess it has lower priority).

I've also noticed that the current version of bottom did not build on the new rust compiler in scarthgap. This will be fixed by an update in #139 but to make sure that our main branch stays buildable I've disabled bottom for now.

With that I think we are ready to merge this. What do you think @ejoerns / @jluebbe?

hnez commented 1 month ago

The largefile DISTRO_FEATURE is the default in nanbield, so it can be removed.

Oh, neat. I've added a commit to remove it.