* [gentoo-dev-announce] New distfile mirror layout
@ 2019-10-18 13:41 Michał Górny
0 siblings, 0 replies; only message in thread
From: Michał Górny @ 2019-10-18 13:41 UTC (permalink / raw
To: gentoo-dev-announce; +Cc: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 1884 bytes --]
Hi, everybody.
It is my pleasure to announce that yesterday (EU) evening we've switched
to a new distfile mirror layout. Users will be switching to the new
layout either as they upgrade Portage to 2.3.77 or -- if they upgraded
already -- as their caches expire (24hrs).
The new layout is mostly a bow towards mirror admins, for some of whom
having a 60000+ files in a single directory have been a problem.
However, I suppose some of you also found e.g. the directory index
hardly usable due to its size.
Throughout a transitional period (whose exact length hasn't been decided
yet), both layouts will be available. Afterwards, the old layout will
be removed from mirrors. This has a few implications:
1. Users who don't upgrade their package managers in time will lose
the ability of fetching from Gentoo mirrors. This shouldn't be that
much of a problem given that the core software needed to upgrade Portage
should all have reliable upstream SRC_URIs.
2. mirror://gentoo/file URIs will stop working. While technically you
could use mirror://gentoo/XX/file, I'd rather recommend finally
discarding its usage and moving distfiles to devspace.
3. Directly fetching files from distfiles.gentoo.org will become
a little harder. To fetch a distfile named 'foo-1.tar.gz', you'd have
to use something like:
$ printf '%s' foo-1.tar.gz | b2sum | cut -c1-2
1b
$ wget http://distfiles.gentoo.org/distfiles/1b/foo-1.tar.gz
...
Alternatively, you can:
$ wget http://distfiles.gentoo.org/distfiles/INDEX
and grep for the right path there. This INDEX is also a more
lightweight alternative to HTML indexes generated by the servers.
If you're interested in more background details and some plots, see [1].
[1] https://dev.gentoo.org/~mgorny/articles/improving-distfile-mirror-structure.html
--
Best regards,
Michał Górny
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 618 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-10-18 13:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-18 13:41 [gentoo-dev-announce] New distfile mirror layout Michał Górny
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox