Skip to content

fix: declare MIN_PERL_VERSION and remove dead Perl 5.6 code - #289

Merged
toddr merged 1 commit into
cpan-authors:mainfrom
toddr-bot:koan.toddr.bot/add-min-perl-version
Apr 23, 2026
Merged

fix: declare MIN_PERL_VERSION and remove dead Perl 5.6 code#289
toddr merged 1 commit into
cpan-authors:mainfrom
toddr-bot:koan.toddr.bot/add-min-perl-version

Conversation

@toddr-bot

Copy link
Copy Markdown
Contributor

What

Declare MIN_PERL_VERSION in Makefile.PL and remove dead Perl 5.6 workaround code from Run.pm.

Why

The xt/99_perl_minimum_version.t author test was silently skipping in all environments — locally ("META.yml could not be found") and in CI ("no minimum perl version could be determined"). Without MIN_PERL_VERSION, the generated META.yml/META.json lack the requires.perl field, so CPAN clients can't enforce version requirements.

The $] < 5.008 code paths (conditional require Symbol and Symbol::gensym() workaround for a Perl 5.6.0 eval bug) never execute since the minimum supported version is 5.008001.

How

  • Added MIN_PERL_VERSION => '5.008001' with the standard EUMM version guard (>= 6.48)
  • Removed the dead BEGIN { if ($] < 5.008) { require Symbol } } block
  • Removed the dead gensym workaround in _do_kid_and_exit

Testing

  • make test: 863/863 pass (pty.t skips due to IO::Pty version, pre-existing)
  • prove -Ilib xt/99_perl_minimum_version.t: now runs 57 checks (was 0) and passes
  • Verified MYMETA.yml contains perl: '5.008001' in requires

🤖 Generated with Claude Code

Add MIN_PERL_VERSION => '5.008001' to Makefile.PL so CPAN clients
can properly filter by Perl version and the xt/99_perl_minimum_version.t
author test actually runs (it was silently skipping due to missing
metadata).

Remove the dead `$] < 5.008` code paths in Run.pm: the conditional
`require Symbol` and the Symbol::gensym() workaround for a Perl 5.6.0
eval bug. These never executed since the minimum supported version is
5.008001.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@toddr
toddr marked this pull request as ready for review April 23, 2026 12:39
@toddr
toddr merged commit a2977e1 into cpan-authors:main Apr 23, 2026
25 checks passed
@toddr-bot
toddr-bot deleted the koan.toddr.bot/add-min-perl-version branch April 23, 2026 13:34
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

Successfully merging this pull request may close these issues.

2 participants