Perl-Toolchain-Gang / cpan-static

Static install specification for CPAN distributions
13 stars 3 forks source link

What does it mean to copy from META.json to Makefile.PL? #10

Closed mauke closed 1 year ago

mauke commented 1 year ago

The EXTERNAL REQUIREMENTS section states:

[...] a valid Build.PL (per CPAN::API::BuildPL) or Makefile.PL must be present as a fallback. It may be copied verbatim to from META.json. The same may be done for MYMETA.yml/META.yml.

So a cpan client may copy META.json verbatim to Makefile.PL, and copy MYMETA.yml verbatim to Makefile.PL, and copy META.yml verbatim to Makefile.PL.

This makes no sense.

miyagawa commented 1 year ago

This seems to be a copy-paste failure and maybe supposed to be put in the Configuration section later. "It" refers to MYMETA.json i.e. a CPAN client can choose to take META.json and generate MYMETA.json verbatim by simply copying it.

Leont commented 1 year ago

Yeah that ended up in the wrong place, moved it so that it now makes sense.

mauke commented 1 year ago

Fixed in https://github.com/Perl-Toolchain-Gang/cpan-static/commit/f9055db1b9e253c883748f20921583e08089fe2f.