From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30196 invoked by alias); 2 Aug 2011 21:26:15 -0000 Received: (qmail 30187 invoked by uid 22791); 2 Aug 2011 21:26:14 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,TW_SV,TW_TQ X-Spam-Check-By: sourceware.org Received: from p02c11o141.mxlogic.net (HELO p02c11o141.mxlogic.net) (208.65.144.74) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 02 Aug 2011 21:26:01 +0000 Received: from unknown [76.164.174.81] (EHLO p02c11o141.mxlogic.net) by p02c11o141.mxlogic.net(mxl_mta-6.10.0-2) with ESMTP id 96b683e4.65067940.54232.00-515.117532.p02c11o141.mxlogic.net (envelope-from ); Tue, 02 Aug 2011 15:26:01 -0600 (MDT) X-MXL-Hash: 4e386b69621d3561-085bfc10129b7f07a7c5cef6c9119aa665036fd6 Received: from unknown [76.164.174.81] (EHLO ex-hc1.corp.adtran.com) by p02c11o141.mxlogic.net(mxl_mta-6.10.0-2) over TLS secured channel with ESMTP id 0e3683e4.0.40071.00-390.88883.p02c11o141.mxlogic.net (envelope-from ); Tue, 02 Aug 2011 14:53:53 -0600 (MDT) X-MXL-Hash: 4e3863e1316e7817-33c6b2b1a0485ce00ab0f2daeb523b574daf2da5 Received: from ex-mb1.corp.adtran.com ([fe80::51a3:972d:5f16:9952]) by ex-hc1.corp.adtran.com ([fe80::a43f:7ea6:7688:37b%15]) with mapi id 14.01.0270.001; Tue, 2 Aug 2011 15:53:51 -0500 From: ANDY KENNEDY To: "Yann E. MORIN" , "crossgcc@sourceware.org" Subject: RE: CT_PREFER_MIRROR working? Date: Tue, 02 Aug 2011 21:26:00 -0000 Message-ID: References: <201108022042.42738.yann.morin.1998@anciens.enib.fr> <201108022239.12156.yann.morin.1998@anciens.enib.fr> In-Reply-To: <201108022239.12156.yann.morin.1998@anciens.enib.fr> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MAIL-FROM: X-AnalysisOut: [v=1.0 c=1 a=C3ZOIDTcl6cA:10 a=eFQxzqy-iU4A:10 a=qZHQZMT3ap] X-AnalysisOut: [YA:10 a=BLceEmwcHowA:10 a=kj9zAlcOel0A:10 a=xqWC_Br6kY4A:1] X-AnalysisOut: [0 a=0XgpNN2/4a34ymu16SVwsQ==:17 a=QZ74TkhfDzAOzVd3QbYA:9 a] X-AnalysisOut: [=CjuIK1q_8ugA:10] X-IsSubscribed: yes Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org X-SW-Source: 2011-08/txt/msg00015.txt.bz2 Yann, All, > Currently, either downloads are allowed, in which case CT_Get* > behave so: > - first, try from local tqarballs dir > - then try from the mirror (which svn, cvs and git do not honor so > far) > - then try from upstream locations > - finally fail if not found >=20 > The mirror option is labelled the "LAN mirror", but really nothing > prevents > it from being any where on the network, local or not. I already > provide a > mirror for a few tarballs (eg. uClibc snapshots, or a few mpfr > versions as > upstream is sometime unreachable). It is even suggested to use that > mirror > in the CT_USE_MIRROR option. >=20 > So how would one differentiate between: > - I don't want to call to the internet, but still use the mirror > and: > - I don't want to call to the internet at all > when there is no way to know whether the mirror is on the LAN or > not? >=20 > But anyway, here's what I was planning: > - if downloads are forbidden, and no mirror is set > - just look in local tarballs dir (if set) > - if downloads are forbidden, and a mirror has been set > - look in local tarballs dir (if set) > - then try the mirror > - if downloads are allowed > - look in local tarballs dir (if set) > - then try the mirror (if set) > - then try provided URLs >=20 > Selecting the mirror would be de-correlated from the > FORBID_DOWNLOAD option, > so it is always available. >=20 Great explanation, that helped. > Would that match your use-case? That's what I was intending to do. > ;-) Yes, that gets me. >=20 > I believe that's about all we should support. FORBID_DOWNLOAD is > just here > as a fast-path when roaming, and network is not available. But > nothing > prevents you to be connection-less and still attempt downloads; > it's just > that it will take some time before the failure occurs. > FORBID_DOWNLOAD > merely makes it happen sooner. Okay, BUT, there is one problem that I didn't see you mention: ./configure looks for svn, and fails if it is not there. That was what I meant by --mirror-dl-only. A switch for the configure script to NOT check to see that we have svn installed. Did you already account for that in the above? If so, sorry, I missed it. Andy -- For unsubscribe information see http://sourceware.org/lists.html#faq