Skip Menu |

This queue is for tickets about the Getopt-Long CPAN distribution.

Report information
The Basics
Id: 109805
Status: resolved
Priority: 0/
Queue: Getopt-Long

People
Owner: jv [...] cpan.org
Requestors: CHORNY [...] cpan.org
Cc: ppisar [...] redhat.com
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: 2.49



From: CHORNY [...] cpan.org
Subject: META.yml/json should be present
CPAN distributions should contain files META.yml and META.json. They are generated by your build tool when creating distribution. Build tool for JV/Getopt-Long-2.48.tar.gz was detected as ExtUtils::MakeMaker. Please upgrade it to latest version. You can create your distribution with these files using `make dist` (dmake on Windows). If you use VCS, you can show link to it on Metacpan and search.cpan.org. See http://perlmaven.com/how-to-add-link-to-version-control-system-of-a-cpan-distributions P.S. If this report is for an old version, please delete old indexed versions mentioned here: http://cpanold.chorny.net/?a=JV and contact me. P.P.S. This report was generated automatically.
RT-Send-CC: makemaker [...] perl.org
This kit was generated on a freshly installed Fedora 22 system. The most recent version of ExtUtils::MakeMaker available (7.04) was installed. However, this setup does not generate META.* files. It turns out that EU::MM requires CPAN::Meta to generate these files. If CPAN::Meta is not installed, EU::MM silently(!) skips generating these files. However, EM::MM documents CPAN::Meta as optional, and therefore the Fedora package maintainer sees no reason to add it as a requirement for the EU::MM package. From here on it's a standoff that I am not part of. If the current CPAN policy wants kits to have META.* files, then the EU::MM maintainer should stop documenting CPAN::Meta as optional and add it as a requirement.
On Thu Dec 03 07:11:38 2015, JV wrote: Show quoted text
> This kit was generated on a freshly installed Fedora 22 system. The > most recent version of ExtUtils::MakeMaker available (7.04) was > installed. However, this setup does not generate META.* files. > > It turns out that EU::MM requires CPAN::Meta to generate these files. > If CPAN::Meta is not installed, EU::MM silently(!) skips generating > these files. > > However, EM::MM documents CPAN::Meta as optional, and therefore the > Fedora package maintainer sees no reason to add it as a requirement > for the EU::MM package.
In most cases, CPAN::Meta is not needed for EU::MM to install modules, AFAIK it is only needed for module authors. And currently CPAN::Meta is a core module. Also, EU::MM bundles CPAN::Meta - EU::MM cannot have many prerequisites as they need EU::MM themselves. If you look at https://metacpan.org/source/BINGOS/ExtUtils-MakeMaker-7.10/README.packaging and https://metacpan.org/source/BINGOS/ExtUtils-MakeMaker-7.10/Makefile.PL#L49 - when "building as package" environment variable is set, CPAN::Meta is mandatory. Show quoted text
> > From here on it's a standoff that I am not part of. If the current > CPAN policy wants kits to have META.* files, then the EU::MM > maintainer should stop documenting CPAN::Meta as optional and add it > as a requirement.
-- Alexandr Ciornii, http://chorny.net
RT-Send-CC: makemaker [...] perl.org
On 2015-12-03 17:58:06, CHORNY wrote: Show quoted text
> On Thu Dec 03 07:11:38 2015, JV wrote:
> > This kit was generated on a freshly installed Fedora 22 system. The > > most recent version of ExtUtils::MakeMaker available (7.04) was > > installed. However, this setup does not generate META.* files. > > > > It turns out that EU::MM requires CPAN::Meta to generate these files. > > If CPAN::Meta is not installed, EU::MM silently(!) skips generating > > these files. > > > > However, EM::MM documents CPAN::Meta as optional, and therefore the > > Fedora package maintainer sees no reason to add it as a requirement > > for the EU::MM package.
> > In most cases, CPAN::Meta is not needed for EU::MM to install modules, > AFAIK it is only needed for module authors.
So fail only if the module author runs "make dist"? (which shouldn't affect normal users just installing modules)
Yes, fail only if "make dist" is executed while CPAN::Meta is not installed. EU::MM does not require CPAN::Meta (nor does it warn of some sort) when "make dist" is executed w/o CPAN::Meta. So the bottom line is that EU::MM allows dists to be created that do not match the current CPAN requirements. Although I can (and probably will) work around this, I persist in my opinion that it is EU::MM that needs fixing.