On 2015-08-28 20:54:47, PERLANCAR wrote:
Show quoted text> On Fri Aug 28 18:45:29 2015, SREZIC wrote:
> > It seems that just IPC::System::Locale 0.02 is required in META.yml
> > and/or Makefile.PL, but actually version 1 is needed:
> >
> > # Failed test 'Git/Bunch.pm loaded ok'
> > # at t/00-compile.t line 39.
> > # got: '65280'
> > # expected: '0'
> > IPC::System::Locale version 1 required--this is only version 0.02 at
> > /opt/perl-5.18.4/lib/site_perl/5.18.4/Exporter/Heavy.pm line 125.
> > BEGIN failed--compilation aborted at /tmpfs/.cpan-
> > build/2015082821/Git-Bunch-0.47-7g26jN/blib/lib/Git/Bunch.pm line 11.
> > Compilation failed in require at -e line 1.
> > # Looks like you failed 1 test of 2.
> > t/00-compile.t ............
>
>
> I can't replicate this even on my perlbrew's 5.18.4. It might seem
> that there is a confusion over this statement (lib/Git/Bunch.pm line
> 11):
>
> use IPC::System::Locale 'system', 'backtick', -log=>1;
>
> but I don't know what gets confused or how.
Easy explanation: IPC::System::Locale 0.02 does not know anything about handling "-log", which is apparently ignored in the first pass, and then the Exporter comes to "1" which is apparently treated as a minimum version number:
$ perl5.10.1 -MIPC::System::Locale=system,backtick,-log,1 -e1
IPC::System::Locale version 1 required--this is only version 0.02 at /opt/perl-5.10.1/lib/5.10.1/Exporter/Heavy.pm line 125.
BEGIN failed--compilation aborted.
$ perl5.10.1 -MIPC::System::Locale=system,backtick,-log,0 -e1
"-log" is not exported by the IPC::System::Locale module
Can't continue after import errors at -e line 0.
BEGIN failed--compilation aborted.
Probably you should just increase the minimum prerequisite version for IPC::System::Locale in Git-Bunch's Makefile.PL to 0.03 or so.