Re: [yocto] SSTATE_MIRRORS not working as expected
Alexander Kanavin <[email protected]>
| Newsgroups | org.yoctoproject.lists.yocto |
|---|---|
| Message-ID | <CANNYZj_AG200wWqJAdqafT-+ZYK1oBs4rq-ySKTam844q=ELdA@mail.gmail.com> |
On Tue, 4 Nov 2025 at 11:34, Ross Burton via lists.yoctoproject.org <[email protected]> wrote: > > I’ve set up my build environment to use RidgeRun's sstate-cache and downloads mirrors as follows: > > > > ``` > > # RidgeRun's SState-Cache Mirror > > SSTATE_MIRRORS ?= "\ > > file://.* https://yocto.ridgerun.ai/mirror/scarthgap/sstate-cache/PATH;downloadfilename=PATH \ > > " > > # RidgeRun's Downloads Mirror > > PREMIRRORS:prepend = "\ > > git://.*/.* https://yocto.ridgerun.ai/mirror/scarthgap/downloads/ \ > > " > > ``` > > > > However, I’m not seeing a significant improvement when using these mirrors. > > It seems that native packages are not being fetched from the cache or the downloads mirror —only a few packages appear to be reused. > > Has anyone else experienced this? > > Are there specific configurations or steps needed to ensure that native packages are properly retrieved from the mirrors? > > Their native sstate is using uninative (you can tell this by the top-level universal/ directory, if it wasn’t uninative then you’d have distro names instead) so you need to also be using uninative (poky does this, but your distro may not). Add this to your distro: > > require conf/distro/include/yocto-uninative.inc > INHERIT += “uninative" > > But for sstate sharing to work there needs to be a common distro, so are RidgeRun providing a distro configuration and you’re using it? If that’s the case, I suggest asking them first. I also suspect they might be using a hash equivalence server, and if so, they must provide access to its database, or using that sstate cache will just cause mostly mismatches. In other words, you need to ask the provider of the cache, not the community. Yocto has its own cache made from poky test builds, and a clearly defined to enable it, and we can support you with that. Alex