Subject: | CPAN should not try to install $module.pm.gz |
Reported for removal from the index but IMO it's also a bug that CPAN tried to install this. I would argue for not supporting tar files of this format?
https://github.com/andk/pause/issues/237
If I try to install Apache::AuthenIMAP, it installs to site_lib/AuthenIMAP.pm instead of site_lib/Apache/AuthenIMAP.pm
$>cpan Apache::AuthenIMAP
CPAN: Storable loaded ok (v2.56_01)
Reading '/root/.cpan/Metadata'
Database was generated on Thu, 11 May 2017 08:17:02 GMT
Running install for module 'Apache::AuthenIMAP'
CPAN: LWP::UserAgent loaded ok (v6.24)
Fetching with LWP:
http://www.cpan.org/authors/id/M/MI/MICB/AuthenIMAP.pm.gz
CPAN: YAML loaded ok (v1.23)
CPAN: Digest::SHA loaded ok (v5.95_01)
Fetching with LWP:
http://www.cpan.org/authors/id/M/MI/MICB/CHECKSUMS
CPAN: Compress::Zlib loaded ok (v2.069001)
Checksum for /root/.cpan/sources/authors/id/M/MI/MICB/AuthenIMAP.pm.gz ok
CPAN: File::Temp loaded ok (v0.2304)
CPAN: CPAN::Meta::Requirements loaded ok (v2.140)
CPAN: CPAN::Meta loaded ok (v2.150005)
Package seems to come without Makefile.PL.
(The test -f "/root/.cpan/build/MICB-aghgVW/Makefile.PL" returned false.)
Writing one on our own (setting NAME to ApacheAuthenIMAP)
Configuring M/MI/MICB/AuthenIMAP.pm.gz with Makefile.PL
Generating a Unix-style Makefile
Writing Makefile for ApacheAuthenIMAP
Writing MYMETA.yml and MYMETA.json
MICB/AuthenIMAP.pm.gz
/usr/local/cpanel/3rdparty/perl/524/bin/perl Makefile.PL -- OK
Running make for M/MI/MICB/AuthenIMAP.pm.gz
CPAN: Module::CoreList loaded ok (v5.20160819_24)
cp AuthenIMAP.pm blib/lib/AuthenIMAP.pm
MICB/AuthenIMAP.pm.gz
/usr/bin/make -- OK
Running make test
No tests defined for ApacheAuthenIMAP extension.
MICB/AuthenIMAP.pm.gz
/usr/bin/make test -- OK
Running make install
Installing /opt/cpanel/perl5/524/site_lib/AuthenIMAP.pm
Appending installation info to /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/5.24.1/x86_64-linux-64int/perllocal.pod
MICB/AuthenIMAP.pm.gz
/usr/bin/make install -- OK