Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

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

已關閉
#1,919 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

已經有一個關聯 PR 被合併了。

  • #1920 來自 @fglock —— 已合併

評估

難度
5/5
預估耗時
一週以上
新手友好度
35/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
perl

研究方向

Start with PerlOnJava's MakeMaker handling and the archived run 20261028-144340-47138; compare its build output with the successful system Perl make test run. Trace why custom postamble targets and generated PM mappings do not place Pinyin.store and Cantonese.store in blib/lib, then investigate parsing the $] guard in both UTF-8 tests. Done means both generated stores load and all five test programs pass.

由索引模型根據 Issue 內容生成。

描述

area:cpan-port area:parser bug

CPAN failure

Lingua-ZH-Romanize-Pinyin 0.23 fails its test suite under PerlOnJava. A fresh extraction passes all 77 tests under system Perl.

Archived run 20261028-144340-47138 reported:

  • The two dictionary tests could not load Pinyin.store and Cantonese.store from blib/lib.
  • Both UTF-8 tests failed to parse the guard unless ( $] >= 5.008001 ).

Confirmed behavior

The distribution's Makefile.PL adds custom MakeMaker postamble rules that generate the two .store files, and maps those files into blib/lib. With system Perl, make test runs both generation recipes, copies both files, and passes all five test programs (77 tests). In the archived PerlOnJava run, MakeMaker reported a successful build but the stores were absent from blib/lib when tests started. This points to PerlOnJava's MakeMaker/build handling of custom postamble targets or generated PM mappings.

The parser failure is independently reproducible from the archived log at the $] comparison in the two UTF-8 test files; system Perl accepts these expressions.

Expected result

PerlOnJava's MakeMaker build should execute custom postamble generation targets and copy their generated files into blib/lib, and its parser should accept the Perl version comparison used by these tests.

Evidence

  • CPAN run: 20261028-144340-47138, distribution Lingua-ZH-Romanize-Pinyin-0.23
  • System Perl fresh extraction: make test, PASS, 5 files / 77 tests
  • PerlOnJava: archived run FAIL, 4/5 test programs
主要語言
Perl
星號
65
分支
8
平均合併
6 小時 28 分鐘
30 天內合併 PR
181

環境準備

  • 提供 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

fglock/PerlOnJava 的其他 Issue

查看 fglock/PerlOnJava 的全部 Issue

相似的 Issue

更多 Perl Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。