Skip to content

Require perl 5.008 minimum, remove pre-5.008 compat code#195

Merged
toddr merged 1 commit intocpan-authors:mainfrom
toddr-bot:koan.toddr.bot/require-perl-5.008
Mar 22, 2026
Merged

Require perl 5.008 minimum, remove pre-5.008 compat code#195
toddr merged 1 commit intocpan-authors:mainfrom
toddr-bot:koan.toddr.bot/require-perl-5.008

Conversation

@toddr-bot
Copy link
Collaborator

@toddr-bot toddr-bot commented Mar 22, 2026

What

Sets the minimum perl version to 5.008 and removes all XS/Perl code that only existed to support older perls.

Why

The CI matrix already starts at 5.8 — the code was carrying dead compatibility shims for perls that haven't been tested in years. The oldest CPAN Testers results for this dist are all 5.8+. Time to match the declared minimum to reality.

How

  • Makefile.PL: MIN_PERL_VERSION bumped from 5.00405 to 5.008. Removed the $] >= 5.006001 guard on ExtUtils::Liblist (always true now).
  • Expat.xs: Removed PL_sv_undef/PL_sv_no/PL_sv_yes/PL_na polyfills (pre-5.005), #ifdef SvUTF8_on guard and fallback macros (pre-5.006), LEAKTEST safexmalloc/safexrealloc branches (removed from perl in 5.005), USE_THREADS && PATCHLEVEL==6 dTHX shim (5.6 only), #include "patchlevel.h" (no longer needed).
  • Expat.pm: Removed dead $] < 5.008 tied-handle branch in parse().
  • CI (since-perl: 5.8) unchanged — already correct.

Testing

Full test suite passes: 47 files, 363 tests. Built and tested locally on perl 5.42.

🤖 Generated with Claude Code


Quality Report

Changes: 3 files changed, 5 insertions(+), 43 deletions(-)

Code scan: clean

Tests: passed (OK)

Branch hygiene: clean

Generated by Kōan post-mission quality pipeline

- Makefile.PL: bump MIN_PERL_VERSION to 5.008, drop $] >= 5.006001 guard
  on ExtUtils::Liblist (always true now)
- Expat.xs: remove PL_sv_* polyfills (pre-5.005), SvUTF8_on #ifdef guard
  (pre-5.006), LEAKTEST safexmalloc/safexrealloc (removed in 5.005),
  USE_THREADS+PATCHLEVEL==6 dTHX shim (5.6 only), patchlevel.h include
- Expat.pm: remove dead $] < 5.008 tied-handle branch

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@toddr toddr marked this pull request as ready for review March 22, 2026 19:45
@toddr toddr merged commit 398bafd into cpan-authors:main Mar 22, 2026
29 checks passed
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