Subject: | Overly generic "NAME" in Makefile.PL blocks install |
Date: | Thu, 18 Aug 2016 11:44:13 -0400 |
To: | bug-MailFolder [...] rt.cpan.org |
From: | "Daniel Macks" <dmacks [...] netspace.org> |
in MailFolder-0.07 Makefile.PL, there is a line
NAME => 'Mail',
But this module is "Mail::Folder" not "Mail" itself. The MakeMaker docs say:
"NAME" must be a valid Perl package name and it must have an
associated ".pm" file.
This package is not even a suite of many different Mail::* modules, where a single generic entry might make conceptual sense (even if not "by the docs")--the MailTools dist does that. And that's a conflict...two different distros cannot both have the same NAME because this attribute is used to generate a the filename of the .packlist file that gets installed, and package-manager systems rightly refuse to let one package overwrite a file that is supplied by another. See the hackery needed for example at:
http://svnweb.freebsd.org/ports/head/mail/p5-Mail-Folder/Makefile?r1=107125&r2=110505&pathrev=364535
where FULLEXT is one of the values derived from Makefile.PL's NAME attribute. Instead, Makefile.PL should just have:
NAME => 'Mail::Folder',
dan
--
Daniel Macks
dmacks@netspace.org