Skip to content

Fix CPAN random module compatibility gaps#856

Merged
fglock merged 1 commit into
masterfrom
fix/cpan-random-modules
Jun 11, 2026
Merged

Fix CPAN random module compatibility gaps#856
fglock merged 1 commit into
masterfrom
fix/cpan-random-modules

Conversation

@fglock

@fglock fglock commented Jun 11, 2026

Copy link
Copy Markdown
Owner

Summary

  • fix several CPAN random tester compatibility gaps across bytecode, parser diagnostics, bundled Perl shims, JSON handling, encoding, and CPAN distroprefs
  • add bundled shims for Class::Load::XS and Hash::FieldHash, with a tied identity Hash::Util::FieldHash implementation for Object::ID/UNIVERSAL::AUTHORITY
  • add a Pod-Parser CPAN patch so Pod::Find reports PerlOnJava core probe paths instead of jar:PERL5LIB paths
  • update CPAN compatibility reports for the retested modules

Verification

  • make
  • timeout 1800 perl dev/tools/cpan_random_tester.pl --modules UNIVERSAL::AUTHORITY,Class::Load::XS,Pod::PlainText,XML::Directory,JSON::Any,Env::Path --timeout 900 --activity-grace 180 --max-runtime 1800 --jobs 1
  • timeout 1500 perl dev/tools/cpan_random_tester.pl --modules ExtUtils::MakeMaker --timeout 1000 --activity-grace 180 --max-runtime 1500 --jobs 1
  • git diff --check

Notes

  • ExtUtils::MakeMaker still fails its full upstream self-test suite: 15/69 test programs, 139/1257 subtests. The original blockers seen here were fixed, but broader EUMM path/manpage/version/argument parsing compatibility remains.
  • Class::Load::XS is bundled and skips normal upstream XS tests; forced bundled tests were run during development.

Fix several PerlOnJava compatibility gaps found by cpan_random_tester:
- add pure-Perl shims for Class::Load::XS and Hash::FieldHash
- support dynamic defined(&{...}) checks in bytecode
- align Cpanel::JSON::XS defaults and byte string encoding behavior
- add core path probes and a Pod-Parser CPAN patch for Pod::Find
- add locale encoding handling for Encode and PerlIO layers
- improve missing-brace EOF diagnostics and thread stub methods

Generated with Codex (https://openai.com/codex)

Co-Authored-By: Codex <codex@openai.com>
@fglock fglock merged commit bd91320 into master Jun 11, 2026
2 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.

1 participant