Skip to content

Fix MakeMaker autosplit staging for Class::MethodMaker#691

Merged
fglock merged 1 commit intomasterfrom
fix/class-methodmaker
May 8, 2026
Merged

Fix MakeMaker autosplit staging for Class::MethodMaker#691
fglock merged 1 commit intomasterfrom
fix/class-methodmaker

Conversation

@fglock
Copy link
Copy Markdown
Owner

@fglock fglock commented May 8, 2026

Summary

  • make PerlOnJava's MakeMaker shim stage .pm files through pm_to_blib dependencies and honor WriteMakefile depend rules
  • run AutoSplit when copying staged and installed .pm files so auto/*/autosplit.ix is produced
  • preserve single-quoted substitution replacement delimiters in the parser so Class::MethodMaker's generator can run under strict

Testing

  • timeout 1200 make > /tmp/make_class_methodmaker.log 2>&1; printf 'EXIT: %s\n' $? >> /tmp/make_class_methodmaker.log -> EXIT: 0
  • timeout 60 ./jperl src/test/resources/unit/regex/regex_single_quote_substitution.t > /tmp/regex_single_quote_substitution.log 2>&1; printf 'EXIT: %s\n' $? >> /tmp/regex_single_quote_substitution.log -> EXIT: 0
  • timeout 600 ./jcpan -t Class::MethodMaker > /tmp/class_methodmaker_after.log 2>&1; printf 'EXIT: %s\n' $? >> /tmp/class_methodmaker_after.log -> autosplit generation now succeeds; remaining failures are from the missing Java XS implementation for Class::MethodMaker::set_sub_name

Teach the PerlOnJava MakeMaker shim to stage .pm files like upstream
ExtUtils::MakeMaker by making pm_to_blib depend on source files,
emitting WriteMakefile depend rules, and running AutoSplit for staged
and installed modules.

Preserve single-quoted substitution replacement delimiters while parsing
s/// forms so Class::MethodMaker's generator can produce its component
.pm files under strict.

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

Co-Authored-By: OpenAI Codex <codex@openai.com>
@fglock fglock merged commit fdfee71 into master May 8, 2026
2 checks passed
@fglock fglock deleted the fix/class-methodmaker branch May 8, 2026 20:26
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