Re: [yocto] SSTATE_MIRRORS not working as expected

Ross Burton <[email protected]>
Newsgroups org.yoctoproject.lists.yocto
Message-ID <[email protected]>
On 4 Nov 2025, at 04:05, Daniel via lists.yoctoproject.org <[email protected]> wrote:
> 
> Hi, all
> 
> 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.

Ross
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.