|Subject:||Bad NAME on TimeDate module|
|Date:||Tue, 5 Feb 2013 11:37:12 -0800|
|To:||bug-TimeDate [...] rt.cpan.org, gbarr [...] pobox.com|
|From:||Tatsuhiko Miyagawa <miyagawa [...] gmail.com>|
TimeDate-modules distribution on CPAN has a NAME field "TimeDate" in its META.yml and Makefile.PL, which isn't a valid field because TimeDate.pm doesn't exist in the distribution. This ends up with a bad MYMETA files containing non-existing package, which causes issues in certain tools that uses MYMETA to generate dependency tree such as Carton. For example LWP distribution uses libwww-perl as a distribution name, but its NAME has "LWP" which does exist as a module. Show quoted textCould you do either a) update the NAME field to correspond to the "primary" module of the distribution, such as Date::Format, or b) actually create an empty TimeDate.pm module with the name, that acts as an index module of the distribution. Here's a document from ExtUtils::MakeMaker's definition of NAME field.
>>>NAME The package representing the distribution. For example, Test::More or ExtUtils::MakeMaker. It will be used to derive information about the distribution such as the DISTNAME, installation locations within the Perl library and where XS files will be looked for by default (see XS). NAME must be a valid Perl package name and it must have an associated .pm file. For example, Foo::Bar is a valid NAME and there must exist Foo/Bar.pm. Any XS code should be in Bar.xs unless stated otherwise. <<< Thanks! -- Tatsuhiko Miyagawa