Gentoo Archives: gentoo-dev

From: Corentin Chary <corentin.chary@×××××.com>
To: Zac Medico <zmedico@g.o>
Cc: gentoo-dev@l.g.o, "Michał Górny" <mgorny@g.o>, robbat2@g.o
Subject: Re: [gentoo-dev] [RFC] New third party mirrors
Date: Thu, 26 Apr 2012 08:22:31
Message-Id: CAHR064hrBiwC6X4WbWLzyYFgf_mgWEdJGkE7mszZ3ke1DQPANg@mail.gmail.com
In Reply to: Re: [gentoo-dev] [RFC] New third party mirrors by Zac Medico
1 On Thu, Apr 26, 2012 at 10:07 AM, Zac Medico <zmedico@g.o> wrote:
2 > On 04/26/2012 01:03 AM, Corentin Chary wrote:
3 >> On Thu, Apr 26, 2012 at 9:57 AM, Zac Medico <zmedico@g.o> wrote:
4 >>> On 04/26/2012 12:30 AM, Corentin Chary wrote:
5 >>>> On Wed, Apr 25, 2012 at 6:41 PM, Michał Górny <mgorny@g.o> wrote:
6 >>>>> On Wed, 25 Apr 2012 09:16:05 +0200
7 >>>>> Corentin Chary <corentin.chary@×××××.com> wrote:
8 >>>>>
9 >>>>>> On Tue, Apr 24, 2012 at 6:38 PM, Michał Górny <mgorny@g.o>
10 >>>>>> wrote:
11 >>>>>>> On Tue, 24 Apr 2012 16:19:11 +0000
12 >>>>>>> "Robin H. Johnson" <robbat2@g.o> wrote:
13 >>>>>>>
14 >>>>>>>> On Tue, Apr 24, 2012 at 04:50:49PM +0200, Corentin Chary wrote:
15 >>>>>>>>>>> $ ./mirrors.py --all --count
16 >>>>>>>>>>> 297 ?? ?? http://pear.php.net
17 >>>>>>>>>>> 297 ?? ?? http://pear.php.net/get
18 >>>>>>>>>>> 88 ?? ?? ??http://pecl.php.net
19 >>>>>>>>>>> 88 ?? ?? ??http://pecl.php.net/get
20 >>>>>>>>>> These are already mirror bouncers. If you visit the above,
21 >>>>>>>>>> you'll get the closest mirror for downloading.
22 >>>>>>>>> And since there is already ~10 "mirrors" with only one actual
23 >>>>>>>>> backend, should they go to thirdpartymirrors or not ? If not,
24 >>>>>>>>> what about this pseudo-mirrors already present in
25 >>>>>>>>> thirdpartymirrors ?
26 >>>>>>>> I think we should add the pseudo-mirrors, but explicitly mark them
27 >>>>>>>> as such in the file, so that they don't get duplicate entries
28 >>>>>>>> added (eg adding us.pear, de.pear and the pear bouncer is bad.
29 >>>>>>>> Should have just the bouncer).
30 >>>>>>>
31 >>>>>>> It'd be great if we could add some kind of additional mirror
32 >>>>>>> entries, which would be used by repoman to signal missing mirror://
33 >>>>>>> entries but won't be used for downloads.
34 >>>>>>
35 >>>>>> Yep, we could put that in it too:
36 >>>>>> github                http://github.com/downloads/
37 >>>>>> https://github.com/downloads/
38 >>>>>
39 >>>>> Per spec, portage can choose a random mirror of the list. If we put
40 >>>>> entries like that, these two will be equally possible as the preferred
41 >>>>> cloud. URL -- while they redirect one to another.
42 >>>>>
43 >>>>> We might decide on some common syntax like preceding all extra entries
44 >>>>> with '-' but I don't want to be the one deciding here.
45 >>>>
46 >>>> I checked, and current portage code already handle entries starting
47 >>>> with a - gracefully thanks to stack_dictlist (removing them from the
48 >>>> list of mirrors).
49 >>>
50 >>> That means repoman will ignore them too. If you want existing versions
51 >>> of repoman to check for those paths in SRC_URI, you can add a line like
52 >>> this to thirdpartymirrors:
53 >>>
54 >>> github-bad-urls http://github.com/downloads/ https://github.com/downloads/
55 >>
56 >> Hum, I checked repoman source code, and I didn't find where it checks
57 >> if SRC_URI matches something in thirdpartymirror. Any hint ?
58 >
59 > Search for SRC_URI.mirror in /usr/bin/repoman.
60
61 Arg.. ok, I only looked in pym/repoman/.
62
63 So two solutions here:
64
65 First one:
66 github http://cloud.github.com/downloads -http://github.com/downloads/
67 -https://github.com/downloads/
68 + a small patch that would allow repoman to do something like
69 settings.thirdpartymirrors(keep_bad_uris=True) in order to keep uris
70 starting with a - in the list.
71
72 Second solution:
73 github http://cloud.github.com/downloads
74 github-bad-uris -http://github.com/downloads/ -https://github.com/downloads/
75
76 The good thing with the first one is that it would allow repoman to
77 outputs something like "you should use 'mirror://github'".
78
79
80 --
81 Corentin Chary
82 http://xf.iksaif.net

Replies

Subject Author
Re: [gentoo-dev] [RFC] New third party mirrors "Michał Górny" <mgorny@g.o>