Subject: | PAR::Dist name/version probing too naive |
Greetings,
I've been playing with PAR::Dist for a while, and noticed the following issues.
I've just addressed them in text now, in the hope they are trivial for you to spot
and address.
in sub blib_to_par, a META.yml is inspected for version/name information.
If that fails, the Makefile/Build is not checked.
If there is no Makefile, name/version probing will fail. This will be the case when
the distribution uses Module::Build rather than EU::MM and lacks a meta.yml
No check that $version and $name are defined when they are used, resulting in
numerous warnings, and faulty named par files:
Use of uninitialized value in substitution (s///) at /opt/lib/perl5/site_perl/5.8.8/PAR/Dist.pm
line 212.
Use of uninitialized value in substitution (s///) at /opt/lib/perl5/site_perl/5.8.8/PAR/Dist.pm
line 213.
Use of uninitialized value in concatenation (.) or string at /opt/lib/perl5/site_perl/5.8.8/PAR/
Dist.pm line 215.
Use of uninitialized value in concatenation (.) or string at /opt/lib/perl5/site_perl/5.8.8/PAR/
Dist.pm line 215.
Use of uninitialized value in concatenation (.) or string at /opt/lib/perl5/site_perl/5.8.8/PAR/
Dist.pm line 218.
Use of uninitialized value in concatenation (.) or string at /opt/lib/perl5/site_perl/5.8.8/PAR/
Dist.pm line 218.
Successfully created binary distribution '/Users/kane/sources/svk/oss/cpanplus-dist-par/
t/--darwin-2level-5.8.8.par'.