[OE-core] Using SSTATE_MIRRORS with sstate subdirectories

Mike Crowe mac at mcrowe.com
Fri Oct 19 21:01:25 UTC 2012


On Fri, Oct 19, 2012 at 12:03:09PM -0700, Chris Larson wrote:
> On Fri, Oct 19, 2012 at 11:33 AM, Mike Crowe <mac at mcrowe.com> wrote:
> > Thanks for your reply.
> >
> > After correcting ${LSBNATIVESTRING} to ${NATIVELSBSTRING} that worked!
> >
> > I'm still somewhat baffled as to why that one doesn't require PATH but
> > the general one does but that no longer matters to me.
> 
> The file://.* in the other one dose a replacement of the full url
> contents, so you have to add back the directory component. The other
> one I showed you just does a search/replace on the leading component,
> leaving the rest alone.

Thanks again Chris. That makes sense now. I would now expect:

 file:// file:///private/sstate-cache

to work just as well as:

 file://.* file:///private/sstate-cache/PATH

I'll try that later.

Anyway, I ended up with:

 SSTATE_MIRRORS = "\
 file://Debian-[^/]* file:///private/sstate-cache/Debian-6 \n \
 file://Ubuntu-[^/]* file:///private/sstate-cache/Debian-6 \n \
 file://.* file:///private/sstate-cache/PATH \n \

along with a tweaked version of your lsb_distro_adjust hook from
http://git.yoctoproject.org/cgit/cgit.cgi/meta-mentor/tree/conf/distro/include/sstate.inc
to collapse Debian minor versions.

This seems to do exactly what I want.

Thanks to everyone who responded.

Mike.




More information about the Openembedded-core mailing list