Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perlbrew install searches for .bz2 tarballs no longer on CPAN #793

Open
jkeenan opened this issue Oct 12, 2023 · 3 comments
Open

perlbrew install searches for .bz2 tarballs no longer on CPAN #793

jkeenan opened this issue Oct 12, 2023 · 3 comments
Labels

Comments

@jkeenan
Copy link

jkeenan commented Oct 12, 2023

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
Copy link
Author

jkeenan commented Oct 12, 2023

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.

@gugod gugod added the BUG label Mar 3, 2024
@sidney
Copy link

sidney commented Apr 20, 2024

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.

@jkeenan
Copy link
Author

jkeenan commented Apr 20, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants