From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga02.intel.com ([134.134.136.20]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1TMk3f-0001QZ-3S for openembedded-core@lists.openembedded.org; Fri, 12 Oct 2012 20:34:03 +0200 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 12 Oct 2012 11:20:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.80,577,1344236400"; d="scan'208";a="226212602" Received: from unknown (HELO helios.localnet) ([10.252.122.39]) by orsmga002.jf.intel.com with ESMTP; 12 Oct 2012 11:20:49 -0700 From: Paul Eggleton To: Saul Wold Date: Fri, 12 Oct 2012 19:20:48 +0100 Message-ID: <4822639.IxouvdiMRb@helios> Organization: Intel Corporation User-Agent: KMail/4.9.2 (Linux/3.2.0-31-generic-pae; KDE/4.9.2; i686; ; ) In-Reply-To: <50785C63.5060303@linux.intel.com> References: <1349962030-9309-1-git-send-email-paul.eggleton@linux.intel.com> <50785C63.5060303@linux.intel.com> MIME-Version: 1.0 Cc: openembedded-core@lists.openembedded.org Subject: Re: [PATCH] local.conf.sample: add PATH to SSTATE_MIRRORS comments X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Oct 2012 18:34:03 -0000 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" On Friday 12 October 2012 11:07:31 Saul Wold wrote: > On 10/11/2012 06:27 AM, Paul Eggleton wrote: > > The shared state cache as pointed to by SSTATE_DIR by default now has > > two-character subdirectories to prevent there being an issue with too > > many files in the same directory; also, native sstate packages will go > > into a subdirectory named using the distro ID string. If you copy the > > newly structured sstate cache to a mirror location (either local or > > remote) and then point to it in SSTATE_MIRRORS, you need to append > > "PATH" to the end of the mirror URL so that the path used by bitbake > > before the mirror substitution is appended to the path used to access > > the mirror. > > > > Signed-off-by: Paul Eggleton > > --- > > > > meta/conf/local.conf.sample | 7 +++++-- > > 1 file changed, 5 insertions(+), 2 deletions(-) > > > > diff --git a/meta/conf/local.conf.sample b/meta/conf/local.conf.sample > > index 04d947f..d181e75 100644 > > --- a/meta/conf/local.conf.sample > > +++ b/meta/conf/local.conf.sample > > @@ -194,9 +194,12 @@ PATCHRESOLVE = "noop" > > > > # would contain the sstate-cache results from previous builds (possibly > > from other # machines). This variable works like fetcher > > MIRRORS/PREMIRRORS and points to the # cache locations to check for the > > shared objects. > > > > +# NOTE: if the mirror uses the same structure as SSTATE_DIR, you need to > > add PATH +# at the end as shown in the examples below. This will be > > substituted with the +# correct path within the directory structure. > > > > #SSTATE_MIRRORS ?= "\ > > > > -#file://.* http://someserver.tld/share/sstate/ \n \ > > -#file://.* file:///some/local/dir/sstate/" > > +#file://.* http://someserver.tld/share/sstate/PATH \n \ > > +#file://.* file:///some/local/dir/sstate/PATH" > > > > # CONF_VERSION is increased each time build/conf/ changes incompatibly > > and is used to # track the version of this file when it was generated. > > This can safely be ignored if > > I think this is really a Poky File, so should go to the > poky@yoctoproject.org! There is a version of the file in both repositories, I sent a patch for each one. Cheers, Paul -- Paul Eggleton Intel Open Source Technology Centre