From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dan.rpsys.net (5751f4a1.skybroadband.com [87.81.244.161]) by mail.openembedded.org (Postfix) with ESMTP id DECC67890D for ; Fri, 9 Mar 2018 19:04:11 +0000 (UTC) Received: from hex ([192.168.3.34]) (authenticated bits=0) by dan.rpsys.net (8.15.2/8.15.2/Debian-3) with ESMTPSA id w29J47l2010173 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Fri, 9 Mar 2018 19:04:10 GMT Message-ID: <1520622246.10851.146.camel@linuxfoundation.org> From: Richard Purdie To: Manjukumar Harthikote Matha , Bhargava Sreekantappa Gayathri , "openembedded-core@lists.openembedded.org" Date: Fri, 09 Mar 2018 11:04:06 -0800 In-Reply-To: References: <1520560178-31053-1-git-send-email-bhargava.sreekantappa-gayathri@xilinx.com> <1520602008.10851.102.camel@linuxfoundation.org> X-Mailer: Evolution 3.18.5.2-0ubuntu3.2 Mime-Version: 1.0 X-Virus-Scanned: clamav-milter 0.99.3 at dan X-Virus-Status: Clean Subject: Re: [PATCH] own-mirrors.bbclass: Change prepend to append X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 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, 09 Mar 2018 19:04:12 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit On Fri, 2018-03-09 at 17:56 +0000, Manjukumar Harthikote Matha wrote: > > > > > -----Original Message----- > > From: Richard Purdie [mailto:richard.purdie@linuxfoundation.org] > > Sent: Friday, March 09, 2018 5:27 AM > > To: Bhargava Sreekantappa Gayathri ; > > openembedded- > > core@lists.openembedded.org; Manjukumar Harthikote Matha > > > > Subject: Re: [OE-core] [PATCH] own-mirrors.bbclass: Change prepend > > to append > > > > On Thu, 2018-03-08 at 17:49 -0800, Bhargava Sreekantappa Gayathri > > wrote: > > > > > > If BB_NO_NETWORK is set to 1, and local download directory is > > > added as > > > PREMIRRORS_prepend in conf file, PREMIRRORS variable will have > > > SOURCE_MIRROR_URL as the first url. This causes build to fail as > > > network access is diabled. PREMIRRORS should be appended here so > > > that > > > a prepend in other layers/conf files takes precedence. > > > > > > Signed-off-by: Bhargava Sreekantappa Gayathri > > > > > gayathri@xilinx.com> > > > Signed-off-by: Manjukumar Matha > > nx.c > > > om> > > > --- > > >  meta/classes/own-mirrors.bbclass | 2 +- > > >  1 file changed, 1 insertion(+), 1 deletion(-) > > I think this patch just moves the problem, you could easily have a > > file:/// url > > as SOURCE_MIRROR_URL and a network address in your other layer in > > which case > > your patch would break things... > > > > Agreed. > I think the better fix would be to go through the entire available > list in PREMIRRORS skipping http or https  (since BB_NO_NETWORK is > set) and then fail if we cannot get the required file. Agreed, we just need to ensure users see a mention that BB_NO_NETWORK is set in those failure modes. Cheers, Richard