Skip to content

Fix MakeMaker handling of Module::Install install_share #2068

Closed

Description

@fglock

Summary

CPAN distribution Lingua-EN-VarCon version 1.00 fails its data-file tests under PerlOnJava because Module::Install::Share's install_share step does not stage the distribution's share/ files into the build tree.

Failure evidence

Archived CPAN tester run 20261116-130945-12232 reports:

  • t/01_compile.t: passes.
  • t/02_main.t: all 20 assertions fail.
  • t/99_author.t: passes.

The five methods abbc_file, also_file, infl_file, wroot_file, and voc_file all call File::ShareDir::module_file. Each raises an error that its expected data directory is missing. The test then fails the value, exception, existence, and readability assertions for each file.

Root cause

The distribution's Makefile.PL calls install_share, provided by its bundled inc/Module/Install/Share.pm. That implementation adds a config target which runs $(MOD_INSTALL) "share" $(INST_AUTODIR) to copy the data files.

PerlOnJava's generated Makefile defines MOD_INSTALL as a no-op ($(PERLRUN) -e "1"). Consequently, the config target silently does not copy the share files. The build log says only one file was built, and the resulting blib has blib/lib/Lingua/EN/VarCon.pm but no staged share files. File::ShareDir::module_file then looks under the absent blib/lib/auto/Lingua/EN/VarCon directory, matching the failure paths in the log.

Relevant implementation: src/main/perl/lib/ExtUtils/MakeMaker.pm, where MOD_INSTALL is defined for generated Makefiles and the Makefile rules are emitted.

Reproduction

Run the archived CPAN test for ADAMK/Lingua-EN-VarCon-1.00.tar.gz through the PerlOnJava CPAN tester. The failure is in t/02_main.t; the archived run identifier above and stable test names are sufficient to locate the report.

Standard Perl comparison

A direct system-Perl make test comparison could not be completed from the pristine archived source: perl Makefile.PL stopped because inc::Module::Install was unavailable in that environment. Running system prove against the PerlOnJava-generated build also failed on the missing staged files, so that run is not an independent upstream comparison. The build-rule evidence above independently attributes the missing data files to PerlOnJava's no-op MOD_INSTALL handling.

Scope

This is a pure-Perl distribution with packaged data files; no XS/native dependency or reverse-dependency count applies. The compatibility fix should preserve support for Module::Install::Share's install_share config rule and stage the declared share directory into the expected auto directory during build/test, with installation copying those staged files as appropriate.

Activity

  1. added
    bug
    area:cpan-port
    on Nov 16, 2026
  2. fglock commented on Nov 17, 2026

    @fglock
    OwnerAuthor

    State: active
    Agent/session: Codex / cpan-compat-2068-2038-2021-2000-20261117
    Scope: #2068 MakeMaker install_share; #2038 Object::InsideOut JVM dynamic exception method; #2021 Mock-Quick parser/runtime/backend gaps; #2000 List::Util::PP scalar pairgrep and B::SVf_IVisUV only, excluding ownership paths active under #2043.
    Work: branch fix/cpan-compat-2068-2038-2021-2000, source c832739ecc; single combined PR requested.
    Checkpoint: 2026-11-17 UTC. Checkout was clean and branch created. Read latest issue reports; #2000's BigInt fix is already merged in #2004 and its callback/refcount items overlap active ownership PR #1938/#2043. No overlapping claim found for the other three issues.
    Evidence: Current issue reports identify four separate behavior classes. Existing #2000 suite evidence is CPAN run 20261109-091152-39587; remaining independent targets are scalar pairgrep context and missing B::SVf_IVisUV. Current ownership handoff is #2043, PR #1938.
    Blocked by: none; any lifecycle-related #2000 findings will be reported and held from implementation until ownership work is coordinated.
    Next: refresh focused reproducers on current master, add system-Perl-validated tests, implement independent causes, then run both backends, distribution acceptances and full required gates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:cpan-portbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions