Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

PerlOnJava MakeMaker does not create the pm_to_blib build marker

Aperta
#1,372 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
78/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
perl
Ambito
build-system

Direzione di ricerca

Inizia esaminando l’implementazione di PerlOnJava MakeMaker e il target pm_to_blib del Makefile generato. Esegui File-Find-Closures t/find_by_zero_size.t per riprodurre il marker mancante, quindi aggiungi una copertura di regressione mirata. Il lavoro è completato quando una build riuscita crea il file pm_to_blib e il test di regressione ha esito positivo.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area:cpan-port area:release bug

Summary

The PerlOnJava-generated Makefile defines a pm_to_blib target but does not create the pm_to_blib marker file that standard ExtUtils::MakeMaker leaves in the distribution root. Distributions whose tests inspect the MakeMaker build tree therefore fail despite their module behavior being correct.

Reproduction

Distribution: File-Find-Closures v1.118
CPAN run: 20260913-205737-64746
Failing test: t/find_by_zero_size.t

PerlOnJava builds the pure-Perl module and runs 15 test files. The result is:

Files=15, Tests=152
Failed 1/15 test programs. 2/152 subtests failed.

The two failures are both assertions that search the zero-size files found in the distribution for pm_to_blib:

# Failed test Found pm_to_blib
# at t/find_by_zero_size.t line 42.
#     undef does not match /pm_to_blib/

# Failed test Found pm_to_blib
# at t/find_by_zero_size.t line 47.
#     undef does not match /pm_to_blib/

The generated Makefile has a pm_to_blib target and stages the module into blib/lib, but its target recipe does not touch or otherwise create the pm_to_blib file. Consequently File::Find cannot find the expected zero-byte marker.

Oracle

The same distribution passes completely under system Perl in the same CPAN run:

t/find_by_zero_size.t ........... ok
All tests successful.
Files=15, Tests=180
Result: PASS

The functional tests for File::Find::Closures all pass under PerlOnJava. This is a build-tree compatibility issue, not a failure in the module implementation.

Expected behavior

The PerlOnJava MakeMaker compatibility layer should create the pm_to_blib marker when the pm_to_blib target completes, matching standard ExtUtils::MakeMaker behavior closely enough for tests and build tooling that inspect the distribution tree.

Requested fix

Update the generated Makefile recipe or MakeMaker implementation so pm_to_blib is created as part of a successful build. Add focused regression coverage for the marker and rerun File-Find-Closures t/find_by_zero_size.t.

Lingua principale
Perl
Stelle
64
Fork
7
Merge medio
4h 29m
PR unite (30g)
176

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di fglock/PerlOnJava

Tutte le issue di fglock/PerlOnJava

Issue simili

Altre issue su Perl

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.