Package: libmodule-starter-perl Version: 1.580+dfsg-1 Severity: normal Tags: upstream patch
When starting a fresh module with MakeMaker e.g. with module-starter --module Test -eumm --author "John Doe" --email "j...@example.com" The Makefile.PL contains a test: ($ExtUtils::MakeMaker::VERSION >= 6.3002 ? ('LICENSE'=> 'perl') : ()), However, the $ExtUtils::MakeMaker::VERSION is a string '6.57_05'. When running perl Makefile.PL it prints an error: Argument "6.57_05" isn't numeric in numeric ge (>=) at Makefile.PL line 6. The solution is to use Revision instead of VERSION. I'll attach a patch. It doesn't seem to affect the generated Makefile on my system. -- System Information: Debian Release: 7.2 APT prefers stable APT policy: (990, 'stable'), (500, 'stable-updates'), (500, 'unstable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.10-2-amd64 (SMP w/4 CPU cores) Locale: LANG=nl_NL.UTF-8, LC_CTYPE=nl_NL.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages libmodule-starter-perl depends on: ii libpath-class-perl 0.26-1 ii perl 5.14.2-21+deb7u1 libmodule-starter-perl recommends no packages. libmodule-starter-perl suggests no packages. -- no debconf information
--- a/lib/Module/Starter/Simple.pm +++ b/lib/Module/Starter/Simple.pm @@ -524,7 +524,7 @@ AUTHOR => q{$author}, VERSION_FROM => '$main_pm_file', ABSTRACT_FROM => '$main_pm_file', - (\$ExtUtils::MakeMaker::VERSION >= 6.3002 + (\$ExtUtils::MakeMaker::Revision >= 63002 ? ('LICENSE'=> '$self->{license}') : ()), PL_FILES => {},