Now that portage supports user-specified mirrors in /etc/portage/mirrors, it'd be nice if I could specify my favorite CPAN mirror for downloading dev-perl/* ebuilds. See http://www.cpan.org/SITES.html for a list of sites. Mind you, this also means that most of the dev-perl/* ebuilds will need to be modified to pull from mirror://cpan/ Thanks. Reproducible: Always Steps to Reproduce:
My only hesistation with this is - this is what search.cpan.org already does (not to mention editing 400 ebuilds plus their versions). Any SRC that points to search.cpan org is handled by cpan's multiplexer and redirected to the nearest determined location. See below for an example from my location. To boot, multiplexer maintains the list of currently valid mirrors. Resolving search.cpan.org... 198.246.0.28 Connecting to search.cpan.org[198.246.0.28]:80... connected. HTTP request sent, awaiting response... 302 Found Location: http://csociety-ftp.ecn.purdue.edu/pub/CPAN
Unfortunately, search.cpan.org doesn't choose the nearest location. It chooses, seemingly at random, a regional site. So if you ran that query again, you probably wouldn't get purdue.edu again, but some other site in Indiana or a neighboring state. I can live with using search.cpan.org's multiplexer, but the response I get from datapipe.net and pair.com (both sites mirror gentoo and cpan) is phenomenal. I always max out my cable connection at 500KB/s, and would love to also specify those sites as my preferred cpan mirror. And, in fact, when I manually install CPAN modules via perl -MCPAN -e 'shell', I do have those sites as my preferred cpan mirror. You won't have to upgrade every ebuild all at once, this is something that can be slowly rolled out. And you won't have to maintain a list of CPAN mirrors, since you point out that http://search.cpan.org can maintain that on its own. The row in /usr/portage/profiles/thirdpartymirrors would look like: cpan http://search.cpan.org/CPAN If a cpan mirror isn't specified in /etc/portage/mirrors (or the site specified there becomes invalid,) it would just fallback to the default multiplexer. Sounds pretty sweet to me. ;)
I request this future in gentoo-dev list some time ago but not received any answers :( plz I ask for this too
Will, Compelling :) And done. In order for this to work, though, the ebuilds will have to be updated. As it stands, ebuilds will be updated as they are updated/added, with a final clean up being done later down the road (gotta give me time - 400+ modules, many ebuild versions per)
I understand, baby steps. Thank you for the first step!
FWIW - you can now download IP-Country and Geography-Countries from your favorite cpan mirrors. Yes. Baby steps is probably putting it mildly :)
thanks Michael bug may be close ? ;)
Closing out