1 |
Hi, everybody. |
2 |
|
3 |
It is my pleasure to announce that yesterday (EU) evening we've switched |
4 |
to a new distfile mirror layout. Users will be switching to the new |
5 |
layout either as they upgrade Portage to 2.3.77 or -- if they upgraded |
6 |
already -- as their caches expire (24hrs). |
7 |
|
8 |
The new layout is mostly a bow towards mirror admins, for some of whom |
9 |
having a 60000+ files in a single directory have been a problem. |
10 |
However, I suppose some of you also found e.g. the directory index |
11 |
hardly usable due to its size. |
12 |
|
13 |
Throughout a transitional period (whose exact length hasn't been decided |
14 |
yet), both layouts will be available. Afterwards, the old layout will |
15 |
be removed from mirrors. This has a few implications: |
16 |
|
17 |
1. Users who don't upgrade their package managers in time will lose |
18 |
the ability of fetching from Gentoo mirrors. This shouldn't be that |
19 |
much of a problem given that the core software needed to upgrade Portage |
20 |
should all have reliable upstream SRC_URIs. |
21 |
|
22 |
2. mirror://gentoo/file URIs will stop working. While technically you |
23 |
could use mirror://gentoo/XX/file, I'd rather recommend finally |
24 |
discarding its usage and moving distfiles to devspace. |
25 |
|
26 |
3. Directly fetching files from distfiles.gentoo.org will become |
27 |
a little harder. To fetch a distfile named 'foo-1.tar.gz', you'd have |
28 |
to use something like: |
29 |
|
30 |
$ printf '%s' foo-1.tar.gz | b2sum | cut -c1-2 |
31 |
1b |
32 |
$ wget http://distfiles.gentoo.org/distfiles/1b/foo-1.tar.gz |
33 |
... |
34 |
|
35 |
|
36 |
Alternatively, you can: |
37 |
|
38 |
$ wget http://distfiles.gentoo.org/distfiles/INDEX |
39 |
|
40 |
and grep for the right path there. This INDEX is also a more |
41 |
lightweight alternative to HTML indexes generated by the servers. |
42 |
|
43 |
|
44 |
If you're interested in more background details and some plots, see [1]. |
45 |
|
46 |
[1] https://dev.gentoo.org/~mgorny/articles/improving-distfile-mirror-structure.html |
47 |
|
48 |
-- |
49 |
Best regards, |
50 |
Michał Górny |