Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 43872 - Add cpan to /usr/portage/profiles/thirdpartymirrors
Summary: Add cpan to /usr/portage/profiles/thirdpartymirrors
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Perl team
URL: http://www.cpan.org/SITES.html
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-06 06:04 UTC by Will McQueen
Modified: 2004-09-23 02:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Will McQueen 2004-03-06 06:04:28 UTC
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:
Comment 1 Michael Cummings (RETIRED) gentoo-dev 2004-09-22 06:45:49 UTC
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
Comment 2 Will McQueen 2004-09-22 08:18:02 UTC
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.  ;)
Comment 3 Sergiy Borodych 2004-09-22 10:23:11 UTC
I request this future in gentoo-dev list some time ago
but not received any answers :(
plz I ask for this too
Comment 4 Michael Cummings (RETIRED) gentoo-dev 2004-09-22 13:21:33 UTC
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)
Comment 5 Will McQueen 2004-09-22 13:23:48 UTC
I understand, baby steps.  Thank you for the first step!
Comment 6 Michael Cummings (RETIRED) gentoo-dev 2004-09-22 13:43:31 UTC
FWIW - you can now download IP-Country and Geography-Countries from your favorite cpan mirrors. Yes. Baby steps is probably putting it mildly :)
Comment 7 Sergiy Borodych 2004-09-23 01:34:12 UTC
thanks Michael

bug may be close ? ;)
Comment 8 Michael Cummings (RETIRED) gentoo-dev 2004-09-23 02:15:01 UTC
Closing out