Skip to content

fix: stage MakeMaker post-initialize generated files - #1920

Merged
fglock merged 1 commit into
masterfrom
feature/issue-1919-fix
Oct 29, 2026
Merged

fglock merged 1 commit into
masterfrom
feature/issue-1919-fix

Conversation

@fglock

@fglock fglock commented Oct 29, 2026

Copy link
Copy Markdown
Owner

Fixes #1919.

PerlOnJava's MakeMaker compatibility layer did not run MY::post_initialize, so distributions that add generated data files to the PM mapping omitted them from pm_to_blib. The hook now receives the initialized PM map, can add generated sources, and its returned Makefile text is preserved.

Also fix brace disambiguation for parenthesized statement modifiers after fat-comma calls, allowing the upstream $] version guard in the distribution's UTF-8 tests to parse. The parser now treats ] as the Perl version punctuation variable.

Validation:

  • prove passed both new regression tests under system Perl.
  • nice -n 19 make passed.
  • Both new tests passed with jperl on JVM and interpreter backends.
  • Fresh Lingua-ZH-Romanize-Pinyin 0.23 build generated and staged both .store files through MakeMaker; make test passed all 77 tests.

Run MY::post_initialize before staging PM files, preserve its Makefile text, and handle statement modifiers after fat-comma calls with Perl version guards.

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

Co-Authored-By: Codex <codex@openai.com>
@fglock
fglock force-pushed the feature/issue-1919-fix branch from 3b67de4 to 83e199e Compare October 29, 2026 12:42
@fglock
fglock merged commit b6546ab into master Oct 29, 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.

CPAN: Lingua-ZH-Romanize-Pinyin build skips generated dictionaries and rejects $] test guard

1 participant