Gentoo Archives: gentoo-dev

From: Corentin Chary <corentin.chary@×××××.com>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: Gentoo Janitor scripts
Date: Wed, 22 Feb 2012 12:37:20
Message-Id: CAHR064jNGOmRpwAU6ZnexKnknCPR2jN1nYj0qrn9ud=AtJTdhg@mail.gmail.com
In Reply to: Re: [gentoo-dev] Re: Gentoo Janitor scripts by Mart Raudsepp
1 On Wed, Feb 22, 2012 at 1:20 PM, Mart Raudsepp <leio@g.o> wrote:
2 > On K, 2012-02-22 at 09:48 +0100, Corentin Chary wrote:
3 >> I did a quick script to count most used prefixes in SRC_URI yesterday
4 >> (https://github.com/iksaif/portage-janitor/blob/master/mirrors.py)
5 >>
6 >> Here is the (filtered) result:
7 >>
8 >> $ eix --only-names | python mirrors.py --count
9 >> 960     http://dev.gentoo.org
10 >> 372     http://xorg.freedesktop.org
11 >> 372     http://xorg.freedesktop.org/releases
12 >> 372     http://xorg.freedesktop.org/releases/individual
13 >> 306     http://pear.php.net
14 >> 306     http://pear.php.net/get
15 >> 256     http://oss.tresys.com
16 >> 255     http://oss.tresys.com/files
17 >> 255     http://oss.tresys.com/files/refpolicy
18 >> 225     http://hackage.haskell.org/packages
19 >> 225     http://hackage.haskell.org/packages/archive
20 >> 225     http://hackage.haskell.org
21 >> 206     http://ftp.xemacs.org
22 >> 201     https://github.com
23 >> 196     http://ftp.xemacs.org/pub
24 >> 196     http://ftp.xemacs.org/pub/xemacs
25 >> 193     http://ftp.xemacs.org/pub/xemacs/packages
26 >> 181     http://gstreamer.freedesktop.org
27 >> 181     http://gstreamer.freedesktop.org/src
28 >> 175     http://launchpad.net
29 >> 175     http://linuxgazette.net
30 >> 143     http://github.com
31 >> 130     http://pear.horde.org
32 >> 130     http://pear.horde.org/get
33 >> 101     http://savannah.nongnu.org/download
34 >> 101     http://savannah.nongnu.org
35 >> 100     http://get.qt.nokia.com
36 >> 97      ftp://sources.redhat.com/pub
37 >> 97      ftp://sources.redhat.com
38 >> 96      http://get.qt.nokia.com/qt
39 >> 95      http://get.qt.nokia.com/qt/source
40 >> 90      http://download.gna.org
41 >> 75      http://pecl.php.net
42 >> 75      http://pecl.php.net/get
43 >> 72      http://components.ez.no/get
44 >> 72      http://components.ez.no
45 >> 69      https://fedorahosted.org
46 >> 67      http://www.phrack.org/archives
47 >> 67      http://www.phrack.org/archives/tgz
48 >> 67      http://www.phrack.org
49 >>
50 >>
51 >> From that output we can easilly find out new entries to
52 >> thirdpartymirrors, for example:
53 >> gentoo-dev    http://dev.gentoo.org
54 >> xorg             http://xorg.freedesktop.org
55 >> gna              http://download.gna.org
56 >> pecl             http://pecl.php.net
57 >> pear             http://pear.php.net
58 >> github          https://github.com http://github.com
59 >> xemacs       http://ftp.xemacs.org/pub/ ftp://ftp.sa.xemacs.org/pub/
60 >> launchpad    http://launchpad.net
61 >> redhat         ftp://sources.redhat.com/pub/ (and probably others !)
62 >> etc...
63 >>
64 >> The good part is that once you've modified thirdpartymirrors with new
65 >> mirrors, running mirrors.py --all will generate a big patch for all
66 >> your ebuilds to use those new mirrors !
67 >
68 > If you want this, then you should better figure out actual upstream
69 > mirroring systems and their list of mirrors they would want us to use.
70 > Until such, this seems to be just for shortening SRC_URI addresses when
71 > an upstream tarball domain name or path repeats, and that's definitely
72 > not what thirdpartymirrors is for.
73
74 Yes, of course, that was just a quick example, not something definitive.
75
76 But lets some examples:
77 - http://xorg.freedesktop.org, it's easy to find mirror for that one,
78 http://ftp.x.org/pub/ for example
79 - github: packages seems to use http and https, this script can help
80 to standardize the url used
81 - "960     http://dev.gentoo.org": that's a lot of package hosted
82 here, is that really right ?
83
84 And still, thirdpartymirrors have some entries with only one "mirror"
85 and I believe factorizing SRC_URIs is a good thing (if something
86 changes, you just patch thirdpartymirros, not hundreds of ebuilds).
87
88 --
89 Corentin Chary
90 http://xf.iksaif.net

Replies

Subject Author
Re: [gentoo-dev] Re: Gentoo Janitor scripts Ben <yngwin@×××××.com>