App-perlbrew icon indicating copy to clipboard operation
App-perlbrew copied to clipboard

`perlbrew install` searches for .bz2 tarballs no longer on CPAN

Open jkeenan opened this issue 1 year ago • 3 comments

perlbrew available tells me that I should be able to install 5.20.3 and 5.22.4 with this application:

$ perlbrew available
# perl
   perl-5.39.3   
i  perl-5.38.0   
   perl-5.36.1   
   perl-5.34.1   
i  perl-5.32.1   
i  perl-5.30.3   
i  perl-5.28.3   
   perl-5.26.3   
   perl-5.26.2   
   perl-5.24.4   
   perl-5.22.4   
   perl-5.22.3   
   perl-5.20.3   
   perl-5.20.0   
   perl-5.18.4   
   perl-5.16.3   
i  perl-5.14.4   
   perl-5.12.5   
   perl-5.10.1   
    perl-5.8.9   
    perl-5.6.2   
  perl5.005_03   
  perl5.004_05   


# cperl

However, when I call perlbrew install for each version, the command is searching for a tarball in .bz2 format which is no longer found in the relevant releasor's directory on CPAN.

$ perlbrew install perl-5.20.3
Fetching perl 5.20.3 as /home/jkeenan/perl5/perlbrew/dists/perl-5.20.3.tar.bz2
Download https://www.cpan.org/authors/id/S/SH/SHAY/perl-5.20.3.tar.bz2 to /home/jkeenan/perl5/perlbrew/dists/perl-5.20.3.tar.bz2
ERROR: Failed to download https://www.cpan.org/authors/id/S/SH/SHAY/perl-5.20.3.tar.bz2
ERROR: Failed to execute the command

	wget --quiet -O /home/jkeenan/perl5/perlbrew/dists/perl-5.20.3.tar.bz2 https://www.cpan.org/authors/id/S/SH/SHAY/perl-5.20.3.tar.bz2

Reason:

	2048
[perl] 2027 $ perlbrew install perl-5.22.4
Fetching perl 5.22.4 as /home/jkeenan/perl5/perlbrew/dists/perl-5.22.4.tar.bz2
Download https://www.cpan.org/authors/id/S/SH/SHAY/perl-5.22.4.tar.bz2 to /home/jkeenan/perl5/perlbrew/dists/perl-5.22.4.tar.bz2
ERROR: Failed to download https://www.cpan.org/authors/id/S/SH/SHAY/perl-5.22.4.tar.bz2
ERROR: Failed to execute the command

	wget --quiet -O /home/jkeenan/perl5/perlbrew/dists/perl-5.22.4.tar.bz2 https://www.cpan.org/authors/id/S/SH/SHAY/perl-5.22.4.tar.bz2

Reason:

	2048

Going to Steve Hay's directory on CPAN, I observe that he no longer keeps .bz2 tarballs in stock -- only .tar.gz and .tar.xz.

perl-5.20.3.meta
perl-5.20.3.readme
perl-5.20.3.tar.gz
...
perl-5.24.4.meta
perl-5.24.4.readme
perl-5.24.4.tar.gz
perl-5.24.4.tar.xz

I know that on an older laptop I was able to use perlbrew to install many perl versions from this timespan. I have not yet investigated which other versions might no longer be findable via perlbrew install.

Is there anyway I (an enduser of perlbrew) can get around this?

jkeenan avatar Oct 12 '23 17:10 jkeenan

Is there anyway I (an enduser of perlbrew) can get around this?

I got around it by manually downloading the .tar.gz files for several releases from CPAN, then using the documented syntax for installing from tarball.

Nonetheless, perlbrew should be fixed to not search for . bz2 tarballs. Perl is no longer being released in that format.

jkeenan avatar Oct 12 '23 21:10 jkeenan

perlbrew gets its list of available perls from metacpan at https://fastapi.metacpan.org/v1/release/versions/perl which has links from cpan.metacpan.org which still has the .bz2 files, while perlbrew tries to download from www.cpan.org which doesn't.

To fix this, perlbrew should be downloading from https://cpan.metacpan.org/authors/id/S/SH/SHAY/ not https://www.cpan.org/authors/id/S/SH/SHAY/

edited to update: I just installed 5.34.3 and it downloaded it from http://www.cpan.org/src/5.0/perl-5.34.3.tar.gz which is not what the link on the fastapi page says, so clearly I have not looked into this enough to comment on what the bug really is.

sidney avatar Apr 20 '24 03:04 sidney

perlbrew gets its list of available perls from metacpan at https://fastapi.metacpan.org/v1/release/versions/perl which has links from cpan.metacpan.org which still has the .bz2 files, while perlbrew tries to download from www.cpan.org which doesn't.

To fix this, perlbrew should be downloading from https://cpan.metacpan.org/authors/id/S/SH/SHAY/ not https://www.cpan.org/authors/id/S/SH/SHAY/

edited to update: I just installed 5.34.3 and it downloaded it from http://www.cpan.org/src/5.0/perl-5.34.3.tar.gz which is not what the link on the fastapi page says, so clearly I have not looked into this enough to comment on what the bug really is.

Thanks for that information. I wonder if this is something that can be addressed at the upcoming Perl QA summit?

jkeenan avatar Apr 20 '24 13:04 jkeenan