[OE-core] [oe] [PATCH] sstate: Add a two character subdirectory to the sstate directory layout

Richard Purdie richard.purdie at linuxfoundation.org
Thu Aug 2 16:15:27 UTC 2012


On Thu, 2012-08-02 at 08:59 -0700, Chris Larson wrote:
> On Thu, Aug 2, 2012 at 8:53 AM, Richard Purdie
> <richard.purdie at linuxfoundation.org> wrote:
> > On Thu, 2012-08-02 at 16:14 +0200, Martin Jansa wrote:
> >> 2 more ideas:
> >>
> >> 1) would be great to also download file.sigdata if it exists, to be able
> >>    to compare them when they change even on machine which downloaded
> >>    older sstate file from remote url
> >> 2) if the reason for this patch was number of files in shared
> >>    sstate-cache directory, then fetcher creating .done files makes
> >>    number double too (would be fine if fetcher stores all 3 files
> >>    (.tgz, .tgz.sigdata, .tgz.done) in right prefix, or moves them to
> >>    right prefix instead of symlinks.
> >
> > I'm aware of the problem. The main issue is that we probably need to
> > start enforcing complete paths for all downloads in DL_DIR, including
> > http:// urls. This would resolve conflicts like:
> >
> > SRC_URI = "http://server1.org/somefile.patch \
> >            http://server2.org/somefile.patch"
> >
> > where the two files are different. The trouble is it will pretty much
> > break all the source mirrors :(.
> 
> I think we need to stop the tendency to use DL_DIR as is as a mirror,
> and instead create a task or something to populate a mirror directory
> from the DL_DIR. This would avoid potential issues with licensing if
> it uses license filtering to control what gets populated, as well.

I agree, there are some issues in that area and we shoudl encourage
people to think about this.

Having said that, I'm worried we are going to hit conflicts over DL_DIR
regardless of that.

Perhaps making this change might be a way to remind people of that....

Cheers,

Richard





More information about the Openembedded-core mailing list