Parse::Yapp::KeyValue build loses generated Parser.pm
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 52/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- perl
调研方向
首先复现干净的 Parse::Yapp::KeyValue 构建,并检查 MakeParser.PL、生成的 Makefile target 以及 PerlOnJava 对构建和文件系统的处理。比较 interpreter 和 JVM 的结果,然后使用 t/1pod.t 和 t/2keyvalue.t 作为重点回归测试套件。完成的标准是嵌套 Parser.pm 的生成成功,或者构建立即失败,并且两个测试在两个 backend 上都通过。
由索引模型根据 Issue 内容生成。
描述
Summary
Parse::Yapp::KeyValue 0.1 passes its complete upstream test suite under system Perl, but PerlOnJava fails because the distribution's build-time MakeParser.PL step does not create the generated Parser.pm file.
Reproduction
CPAN random tester run: 20260918-141920-96054
Distribution: Parse::Yapp::KeyValue 0.1 (reported module version is 0.10)
The exact prerequisite distributions were installed into an isolated library for the system-Perl comparison:
Parse::Template3.08Parse::Lex2.21Parse::Yapp1.21
System Perl 5.42.2:
All tests successful.
Files=2, Tests=17
Result: PASS
PerlOnJava:
Files=2, Tests=2
Result: FAIL
Failed 1/2 test programs. 1/2 subtests failed.
Failure details
The distribution's MakeParser.PL contains:
my $path = 'blib/lib/Parse/Yapp/KeyValue';
my $file = "$path/Parser.pm";
my $parser = new Parse::Yapp(inputfile => 'grammar.yp');
mkdir $path || die "could not create directory $path: $!";
open(FILE, ">$file") || die "unable to open $file: $!";
On PerlOnJava, make invokes this generator and reports:
unable to open blib/lib/Parse/Yapp/KeyValue/Parser.pm: No such file or directory at MakeParser.PL line 10.
make: [pl_files] Error 2 (ignored)
The generated file is absent afterward. The make target nevertheless reports a successful build because the generator error is ignored. The subsequent test failure is:
Can't locate Parse/Yapp/KeyValue/Parser.pm in @INC
and t/2keyvalue.t cannot load Parse::Yapp::KeyValue.
The other test file, t/1pod.t, passes.
Scope and diagnosis
This is reproducible on the current PerlOnJava build with a clean extracted distribution. It is not caused by Parse::Yapp's grammar generation: running the same MakeParser.PL with the interpreter backend succeeds when the destination parent directory is pre-created and produces Parser.pm correctly.
The failure is therefore in PerlOnJava's build/filesystem handling for the nested generated-file destination, or in the interaction between that handling and the generated Makefile target. The ignored generator error also allows an incomplete build to proceed to testing.
Expected behavior
make should generate blib/lib/Parse/Yapp/KeyValue/Parser.pm successfully, or fail the build immediately if generation fails. After generation, both t/1pod.t and t/2keyvalue.t should pass on the JVM and interpreter backends.
Please add a focused regression test for nested directory creation/generated-file output and verify the full Parse::Yapp::KeyValue suite after the fix.
- 主要语言
- Perl
- 星标
- 64
- 派生
- 6
- 平均合并
- 5 小时 38 分钟
- 30 天内合并 PR
- 170
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
fglock/PerlOnJava 的其他 Issue
-
area:cpan-port area:unicode bug
难度 2/5 1-3 小时 新手友好度 88/100
fglock/PerlOnJava#1341 ·
-
area:backend area:runtime bug
难度 4/5 3-5 天 新手友好度 45/100
fglock/PerlOnJava#1511 ·
-
area:backend area:cpan-port bug
难度 4/5 3-5 天 新手友好度 45/100
fglock/PerlOnJava#1508 · 1 条评论 ·
-
area:cpan-port area:platform enhancement
难度 5/5 一周以上 新手友好度 30/100
fglock/PerlOnJava#1507 ·
-
bug
难度 4/5 3-5 天 新手友好度 45/100
fglock/PerlOnJava#1506 ·
查看 fglock/PerlOnJava 的全部 Issue
相似的 Issue
-
documentation Needs Triage
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 75/100
trizen/youtube-viewer#456 ·
-
难度 2/5 1-3 小时 新手友好度 70/100
-
connectivity 未关闭
难度 1/5 1 小时以内 新手友好度 80/100
-
Common US ingredient names are not recognized, so about 12.4k US products miss an allergen warning 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
openfoodfacts/openfoodfacts-server#14657 · 4 条评论 ·