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

Support Perl 5.6.1, 5.6.2, and 5.8.x (where x < 5) #450

Closed
tobyink opened this issue Nov 13, 2020 · 2 comments
Closed

Support Perl 5.6.1, 5.6.2, and 5.8.x (where x < 5) #450

tobyink opened this issue Nov 13, 2020 · 2 comments
Milestone

Comments

@tobyink
Copy link
Sponsor

tobyink commented Nov 13, 2020

Would be really nice to have support for those.

Yes, I know cpanm doesn't work on Perl older than 5.8.1, so the classic CPAN client would need to be used there.

@tobyink
Copy link
Sponsor Author

tobyink commented Nov 23, 2020

Actually cpanm is really easy to get working on Perl 5.6.

Here's an example of a working cpanm for Perl 5.6. (Tested on 5.6.1 and 5.6.2.)

https://gist.github.com/tobyink/c7a1001f39d90c3ff76400b13183b268

A summary of changes:

  • print$fh JSON::PP::encode_json($local) needs to be changed to print {$fh} JSON::PP::encode_json($local) — this is just one place in the fatpacked App::cpanminus::script.
  • use 5.008001 needs to be changed to use 5.006 in fatpacked CPAN::Meta::YAML.
  • In fatpacked App::cpanminus::script, where it calls GetOptions, the q|quiet! option should be changed to q|quiet, n|notest! changed to n|notest and S|sudo! changed to S|sudo. This means that --no-prefixed versions of those options stop working, but they're already false by default.

So if actions-setup-perl could install a patched version of cpanm with the above fixes, this would make testing on Perl 5.6 work beautifully.

@shogo82148 shogo82148 added this to the 1.9.0 milestone Nov 25, 2020
@shogo82148
Copy link
Owner

fixed by #481 and #453

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

No branches or pull requests

2 participants