Subject: | Broken packaging |
The way MailTools is packaged causes problems for installers.
The problem stems from its entry in perllocal.pod after installation.
=head2 Fri Aug 19 11:40:08 2016: C<Module> L<Mail|Mail>
Anything that then parses that file will lead to problems because there is no package or module matching 'Mail'.
! Finding Mail on cpanmetadb failed.
! Finding Mail () on mirror http://www.cpan.org failed.
! Couldn't find module or a distribution Mail
I believe there is a rule that any package that declares NAME => X should include a module X.pm. [sorry -- can't find a link to such rule]
( DISTNAME => 'MailTools'
, VERSION => '2.18'
, NAME => 'Mail'
Possible fixes:
a. Include a file called Mail.pm, or
b. Nominate an existing module (eg Mail::Header) to represent the package.
Note that registering 'MailTools' as the installed module won't solve the problem because tools like cpanminus install module names not package names.
thanks,
Nic