Subject: | DDS.pm VERSION declaration not static-safe |
Static analysis of DDS.pm without Data::Dump::Streamer in @INC causes Module::Metadata to fail.
$VERSION declarations are better off being static in some way, or at least, having a *fake* VERSION declaration that EUMM/Module::Metadata can detect if you need the numbers to be runtime-dynamic.
Error evaling version line ' my $dummy = q# Hide from _packages_inside()
#; package Module::Metadata::_version::p1;
use version;
sub {
local $VERSION;
use Data::Dump::Streamer (); BEGIN{ *DDS:: = \%Data::Dump::Streamer:: } $VERSION=$DDS::VERSION;;
return $VERSION if defined $VERSION;
return $Module::Metadata::_version::p1::VERSION;
};
' in /usr/lib64/perl5/vendor_perl/5.24.1/x86_64-linux/DDS.pm: Can't locate Data/Dump/Streamer.pm in @INC (you may need to install the Data::Dump::Streamer module) (@INC contains: /home/kent/perl5/perlbrew/perls/5.25.6-nossp-sdbm-nopmc/lib/site_perl/5.25.6/x86_64-linux /home/kent/perl5/perlbrew/perls/5.25.6-nossp-sdbm-nopmc/lib/site_perl/5.25.6 /home/kent/perl5/perlbrew/perls/5.25.6-nossp-sdbm-nopmc/lib/5.25.6/x86_64-linux /home/kent/perl5/perlbrew/perls/5.25.6-nossp-sdbm-nopmc/lib/5.25.6 .) at (eval 5) line 6, <$handle> line 2.
BEGIN failed--compilation aborted at (eval 5) line 6, <$handle> line 2.
--
- CPAN kentnl@cpan.org
- Gentoo Perl Maintainer kentnl@gentoo.org ( perl@gentoo.org )