On Mon, Jul 17, 2023 at 09:38:28PM +0100, Stuart Henderson wrote: > here's how things currently look for one of the many Perl modules > where we're far enough behind that the distfile is no longer on CPAN: > > ===> Checking files for p5-Alien-Base-2.78 > >> Fetch https://www.cpan.org/modules/by-module/Alien/Alien-Build-2.78.tar.gz > ftp: Error retrieving > https://www.cpan.org/modules/by-module/Alien/Alien-Build-2.78.tar.gz: 404 Not > Found > >> Fetch > >> http://mirror.sov.uk.goscomb.net/CPAN/modules/by-module/Alien/Alien-Build-2.78.tar.gz > ftp: Error retrieving > http://mirror.sov.uk.goscomb.net/CPAN/modules/by-module/Alien/Alien-Build-2.78.tar.gz: > 404 Not Found > >> Fetch > >> http://ftp.cpan.org/pub/CPAN/modules/by-module/Alien/Alien-Build-2.78.tar.gz > ftp: Error retrieving > http://ftp.cpan.org/pub/CPAN/modules/by-module/Alien/Alien-Build-2.78.tar.gz: > 404 Not Found > >> Fetch > >> http://backpan.perl.org/modules/by-module/Alien/Alien-Build-2.78.tar.gz > ftp: Error retrieving > http://backpan.perl.org/modules/by-module/Alien/Alien-Build-2.78.tar.gz: 404 > Not Found > >> Fetch > >> ftp://ftp.cpan.org/pub/CPAN/modules/by-module/Alien/Alien-Build-2.78.tar.gz > Failed to open file. > >> Fetch > >> ftp://ftp.funet.fi/pub/languages/perl/CPAN/modules/by-module/Alien/Alien-Build-2.78.tar.gz > Can't open Alien-Build-2.78.tar.gz: No such file or directory > >> Fetch > >> http://www.dnsbalance.ring.gr.jp/archives/lang/perl/CPAN/modules/by-module/Alien/Alien-Build-2.78.tar.gz > ftp: Error retrieving > http://www.dnsbalance.ring.gr.jp/archives/lang/perl/CPAN/modules/by-module/Alien/Alien-Build-2.78.tar.gz: > 404 Not Found > >> Fetch https://ftp.openbsd.org/pub/OpenBSD/distfiles/Alien-Build-2.78.tar.gz > Alien-Build-2.78.tar.gz 100% |************************| 533 KB 00:03 > >> (SHA256) Alien-Build-2.78.tar.gz: OK > > Since the first site www.cpan.org is behind a CDN, attempting fetches > from all of these seems a bit unfriendly to the CPAN mirrors. I _would_ > like to keep one ftp:// site as a fallback because it works with "make > peek-ftp", which I find particularly useful with Perl ports, but think > we could probably drop others.
My understanding is that Fastly has stepped up to back NetActuate in hosting the CPAN and so using any other sites is generically not helpful. https://www.cpan.org/SITES.html > I'm unsure of the status of backpan.perl.org ("A Complete History of > CPAN") but it often (always?) misses these files too, I've left it > in with this diff, but if anyone knows more, please say. I _believe_ the backpan is supposed to keep all the things, however their "by-module" seems to be weird. For example, this link works: https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/Alien-Build-2.78.tar.gz But yours doesn't. The by-module/Alien directory doesn't even exist, although I'm not entirely sure why. http://backpan.perl.org/modules/by-module/ I will say that "it seems like" cpan.metacpan.org does some magic to go to the right place, because this also works, so it might be a good addition after the backpan: https://cpan.metacpan.org/modules/by-module/Alien/Alien-Build-2.78.tar.gz > Any objections/OKs? OK afresh1@ > > Index: network.conf > =================================================================== > RCS file: /cvs/ports/infrastructure/db/network.conf,v > retrieving revision 1.19 > diff -u -p -r1.19 network.conf > --- network.conf 21 Dec 2021 08:20:26 -0000 1.19 > +++ network.conf 17 Jul 2023 20:38:19 -0000 > @@ -85,12 +85,8 @@ MASTER_SITE_GNOME+= \ > # mirmon: http://mirrors.cpan.org/ > MASTER_SITE_PERL_CPAN+= \ > https://www.cpan.org/modules/by-module/ \ > - http://mirror.sov.uk.goscomb.net/CPAN/modules/by-module/ \ > - http://ftp.cpan.org/pub/CPAN/modules/by-module/ \ > http://backpan.perl.org/modules/by-module/ \ > - ftp://ftp.cpan.org/pub/CPAN/modules/by-module/ \ > - ftp://ftp.funet.fi/pub/languages/perl/CPAN/modules/by-module/ \ > - > http://www.dnsbalance.ring.gr.jp/archives/lang/perl/CPAN/modules/by-module/ > + ftp://ftp.cpan.org/pub/CPAN/modules/by-module/ > > MASTER_SITE_TEX_CTAN+= \ > http://mirror.ctan.org/ \ > -- andrew The 3 great virtues of a programmer: Laziness, Impatience, and Hubris. --Larry Wall
