Skip Menu |

This queue is for tickets about the Perinci-CmdLine-Lite CPAN distribution.

Report information
The Basics
Id: 119860
Status: open
Priority: 0/
Queue: Perinci-CmdLine-Lite

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.71
Fixed in: (no value)



Subject: Can't locate Config/IOD/Reader.pm
On a freshly installed system I see the following error while running the test suite: ... # Failed test 'exit_code' # at /opt/perl-5.22.2/lib/site_perl/5.22.2/Test/Perinci/CmdLine.pm line 380. # got: '200' # expected: '0' # Script's stdout: <prog: ERROR 500: Died: Can't locate Config/IOD/Reader.pm in @INC (you may need to install the Config::IOD::Reader module) (@INC contains: /home/cpansand/.cpan/build/2017011500/Perinci-CmdLine-Lite-1.71-rirHd2/blib/lib /home/cpansand/.cpan/build/2017011500/Perinci-CmdLine-Lite-1.71-rirHd2/blib/arch /opt/perl-5.22.2/lib/site_perl/5.22.2/x86_64-linux /opt/perl-5.22.2/lib/site_perl/5.22.2 /opt/perl-5.22.2/lib/5.22.2/x86_64-linux /opt/perl-5.22.2/lib/5.22.2 .) at /opt/perl-5.22.2/lib/site_perl/5.22.2/Perinci/CmdLine/Util/Config.pm line 57. # > # Script's stderr: <> # Failed test 'stdout_like' # at /opt/perl-5.22.2/lib/site_perl/5.22.2/Test/Perinci/CmdLine.pm line 393. # 'prog: ERROR 500: Died: Can't locate Config/IOD/Reader.pm in @INC (you may need to install the Config::IOD::Reader module) (@INC contains: /home/cpansand/.cpan/build/2017011500/Perinci-CmdLine-Lite-1.71-rirHd2/blib/lib /home/cpansand/.cpan/build/2017011500/Perinci-CmdLine-Lite-1.71-rirHd2/blib/arch /opt/perl-5.22.2/lib/site_perl/5.22.2/x86_64-linux /opt/perl-5.22.2/lib/site_perl/5.22.2 /opt/perl-5.22.2/lib/5.22.2/x86_64-linux /opt/perl-5.22.2/lib/5.22.2 .) at /opt/perl-5.22.2/lib/site_perl/5.22.2/Perinci/CmdLine/Util/Config.pm line 57. # ' # doesn't match '(?^:^a=101\nb=201\nc=\nd=\ne=$)' # Looks like you failed 2 tests of 2. ... # Failed test 'config file' # at /opt/perl-5.22.2/lib/site_perl/5.22.2/Test/Perinci/CmdLine.pm line 493. # there are failing tests, not deleting tempdir /var/tmp/cpansmoker-1002/2017011421/YyiEkRUMDm # Looks like you failed 1 test of 18. t/suite.t ................ Dubious, test returned 1 (wstat 256, 0x100) Failed 1/18 subtests ... A missing dependency declaration maybe?
Perinci::CmdLine::Lite already depends on Perinci::CmdLine::Util::Config, and Perinci::CmdLine::Util::Config depends on Config::IOD::Reader. Perhaps something weird is going on? Could you perhaps locate where Config/IOD/Reader.pm and whether that is included in @INC? The test suite creates CLI scripts and run them as separate processes, perhaps the generated scripts's @INC somehow differs from the test script's? On Sun, 15 Jan 2017 08:56:36 GMT, SREZIC wrote: Show quoted text
> On a freshly installed system I see the following error while running > the test suite: > > ... > # Failed test 'exit_code' > # at /opt/perl- > 5.22.2/lib/site_perl/5.22.2/Test/Perinci/CmdLine.pm line 380. > # got: '200' > # expected: '0' > # Script's stdout: <prog: ERROR 500: Died: Can't locate > Config/IOD/Reader.pm in @INC (you may need to install the > Config::IOD::Reader module) (@INC contains: > /home/cpansand/.cpan/build/2017011500/Perinci-CmdLine-Lite-1.71- > rirHd2/blib/lib /home/cpansand/.cpan/build/2017011500/Perinci-CmdLine- > Lite-1.71-rirHd2/blib/arch /opt/perl- > 5.22.2/lib/site_perl/5.22.2/x86_64-linux /opt/perl- > 5.22.2/lib/site_perl/5.22.2 /opt/perl-5.22.2/lib/5.22.2/x86_64-linux > /opt/perl-5.22.2/lib/5.22.2 .) at /opt/perl- > 5.22.2/lib/site_perl/5.22.2/Perinci/CmdLine/Util/Config.pm line 57. > # > > # Script's stderr: <> > > # Failed test 'stdout_like' > # at /opt/perl-5.22.2/lib/site_perl/5.22.2/Test/Perinci/CmdLine.pm > line 393. > # 'prog: ERROR 500: Died: Can't locate > Config/IOD/Reader.pm in @INC (you may need to install the > Config::IOD::Reader module) (@INC contains: > /home/cpansand/.cpan/build/2017011500/Perinci-CmdLine-Lite-1.71- > rirHd2/blib/lib /home/cpansand/.cpan/build/2017011500/Perinci-CmdLine- > Lite-1.71-rirHd2/blib/arch /opt/perl- > 5.22.2/lib/site_perl/5.22.2/x86_64-linux /opt/perl- > 5.22.2/lib/site_perl/5.22.2 /opt/perl-5.22.2/lib/5.22.2/x86_64-linux > /opt/perl-5.22.2/lib/5.22.2 .) at /opt/perl- > 5.22.2/lib/site_perl/5.22.2/Perinci/CmdLine/Util/Config.pm line 57. > # ' > # doesn't match '(?^:^a=101\nb=201\nc=\nd=\ne=$)' > # Looks like you failed 2 tests of 2. > ... > # Failed test 'config file' > # at /opt/perl-5.22.2/lib/site_perl/5.22.2/Test/Perinci/CmdLine.pm > line 493. > # there are failing tests, not deleting tempdir /var/tmp/cpansmoker- > 1002/2017011421/YyiEkRUMDm > # Looks like you failed 1 test of 18. > t/suite.t ................ > Dubious, test returned 1 (wstat 256, 0x100) > Failed 1/18 subtests > ... > > A missing dependency declaration maybe?
The current version 1.80 has another strange dependency error: http://www.cpantesters.org/cpan/report/88743382 Here are excerpts of the full log: ... Configuring P/PE/PERLANCAR/Perinci-Examples-0.79.tar.gz with Makefile.PL Checking if your kit is complete... Looks good Warning: prerequisite Perinci::Sub::Property::arg::cmdline 0 not found. ... Show quoted text
---- Unsatisfied dependencies detected during ---- ---- PERLANCAR/Perinci-Sub-Property-arg-cmdline-0.02.tar.gz ---- Perinci::Sub::Normalize [requires] ... PERLANCAR/Perinci-Sub-Normalize-0.19.tar.gz Has already been tested within this command ... Warning: Prerequisite 'Perinci::Sub::Normalize => 0.17' for 'PERLANCAR/Perinci-Sub-Property-arg-cmdline-0.02.tar.gz' failed when processing 'PERLANCAR/Perinci-Sub-Normalize-0.19.tar.gz' with 'make_test => NO one dependency not OK (Perinci::Sub::Property::result::table)'. Continuing, but chances to succeed are limited. ... Result: PASS ... Tests succeeded but one dependency not OK (Perinci::Sub::Normalize) ... Running make for P/PE/PERLANCAR/Perinci-Examples-0.79.tar.gz Warning: Prerequisite 'Perinci::Sub::Property::arg::cmdline => 0' for 'PERLANCAR/Perinci-Examples-0.79.tar.gz' failed when processing 'PERLANCAR/Perinci-Sub-Property-arg-cmdline-0.02.tar.gz' with 'make_test => NO one dependency not OK (Perinci::Sub::Normalize)'. Continuing, but chances to succeed are limited. ... Result: PASS ... Installing /opt/perl-5.22.3/lib/site_perl/5.22.3/Perinci/Examples.pm ... So despite of a test failure in a dependency, Perinci-Examples got installed, and Perinci-Sub-Property-arg-cmdline is not. Usually CPAN.pm should refuse installation if a dependency does not test OK. But somehow it got confused, and there are a lot of "modern" dependency specifications involved here (build_requires, optional...). I also cannot tell what CPAN.pm version was active at this time (the above log happened about 5 months ago). Regards, Slaven On 2017-01-16 05:39:13, PERLANCAR wrote:
> Perinci::CmdLine::Lite already depends on > Perinci::CmdLine::Util::Config, and Perinci::CmdLine::Util::Config > depends on Config::IOD::Reader. Perhaps something weird is going on? > Could you perhaps locate where Config/IOD/Reader.pm and whether that > is included in @INC? > > The test suite creates CLI scripts and run them as separate processes, > perhaps the generated scripts's @INC somehow differs from the test > script's? > > On Sun, 15 Jan 2017 08:56:36 GMT, SREZIC wrote:
> > On a freshly installed system I see the following error while running > > the test suite: > > > > ... > > # Failed test 'exit_code' > > # at /opt/perl- > > 5.22.2/lib/site_perl/5.22.2/Test/Perinci/CmdLine.pm line 380. > > # got: '200' > > # expected: '0' > > # Script's stdout: <prog: ERROR 500: Died: Can't locate > > Config/IOD/Reader.pm in @INC (you may need to install the > > Config::IOD::Reader module) (@INC contains: > > /home/cpansand/.cpan/build/2017011500/Perinci-CmdLine-Lite-1.71- > > rirHd2/blib/lib /home/cpansand/.cpan/build/2017011500/Perinci- > > CmdLine- > > Lite-1.71-rirHd2/blib/arch /opt/perl- > > 5.22.2/lib/site_perl/5.22.2/x86_64-linux /opt/perl- > > 5.22.2/lib/site_perl/5.22.2 /opt/perl-5.22.2/lib/5.22.2/x86_64-linux > > /opt/perl-5.22.2/lib/5.22.2 .) at /opt/perl- > > 5.22.2/lib/site_perl/5.22.2/Perinci/CmdLine/Util/Config.pm line 57. > > # > > > # Script's stderr: <> > > > > # Failed test 'stdout_like' > > # at /opt/perl-5.22.2/lib/site_perl/5.22.2/Test/Perinci/CmdLine.pm > > line 393. > > # 'prog: ERROR 500: Died: Can't locate > > Config/IOD/Reader.pm in @INC (you may need to install the > > Config::IOD::Reader module) (@INC contains: > > /home/cpansand/.cpan/build/2017011500/Perinci-CmdLine-Lite-1.71- > > rirHd2/blib/lib /home/cpansand/.cpan/build/2017011500/Perinci- > > CmdLine- > > Lite-1.71-rirHd2/blib/arch /opt/perl- > > 5.22.2/lib/site_perl/5.22.2/x86_64-linux /opt/perl- > > 5.22.2/lib/site_perl/5.22.2 /opt/perl-5.22.2/lib/5.22.2/x86_64-linux > > /opt/perl-5.22.2/lib/5.22.2 .) at /opt/perl- > > 5.22.2/lib/site_perl/5.22.2/Perinci/CmdLine/Util/Config.pm line 57. > > # ' > > # doesn't match '(?^:^a=101\nb=201\nc=\nd=\ne=$)' > > # Looks like you failed 2 tests of 2. > > ... > > # Failed test 'config file' > > # at /opt/perl-5.22.2/lib/site_perl/5.22.2/Test/Perinci/CmdLine.pm > > line 493. > > # there are failing tests, not deleting tempdir /var/tmp/cpansmoker- > > 1002/2017011421/YyiEkRUMDm > > # Looks like you failed 1 test of 18. > > t/suite.t ................ > > Dubious, test returned 1 (wstat 256, 0x100) > > Failed 1/18 subtests > > ... > > > > A missing dependency declaration maybe?