(SOLVED) meta-demo-ci problems with sstate mirroring #348
robwoolley
started this conversation in
General
Replies: 1 comment 1 reply
-
|
Thanks, @robwoolley ! I have a note about using |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have been working on getting meta-demo-ci to work to store my downloads and sstate-cache in S3 buckets. I noticed that the downloads were being mirrored but the sstate-cache was not.
I managed to resolve the problem, but I am sharing the details here to help anyone else that runs into this issue.
This is the configuration that I was adding to local.conf based on the documentation:
Instrumentation showed the "if" block in mirror_updates.bbclass (https://github.com/OE4T/tegra-demo-distro/blob/master/layers/meta-demo-ci/classes/mirror_updates.bbclass#L173) wasn't running because "sstate_task_postfunc" wasn't present in the task's postfuncs varflag.
This is because the sstate.bbclass had not yet run its code to add the varflag (https://github.com/openembedded/openembedded-core/blob/scarthgap/meta/classes-global/sstate.bbclass#L161)
I tracked this back to the use of INHERIT += "mirror_updates" in local.conf. This caused mirror_updates to be appended to the end of an empty INHERIT variable followed by sstate being appended afterwards by defaultsetup.conf.
This resulted in an INHERIT variable that looked like this: INHERIT=" own-mirrors mirror_updates report-error rm_work package_ipk debian devshell sstate license remove-libtool sanity"
One possible solution would be to move the INHERIT line to auto.conf or layer.conf which I believe is parsed afterwards. My solution was to use the following which instead appended the string at the end of parsing:
INHERIT:append = " mirror_updates"Beta Was this translation helpful? Give feedback.
All reactions