Skip Menu |

This queue is for tickets about the Statistics-Covid CPAN distribution.

Report information
The Basics
Id: 132247
Status: open
Priority: 0/
Queue: Statistics-Covid

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

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



Subject: Undeclared dependency DBIx::Class::Schema
The test suite fails if DBIx::Class::Schema is not installed: ... PERL_DL_NONLAZY=1 "/usr/local/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t Bailout called. Further testing stopped: # Failed test 'use Statistics::Covid;' # at t/00-load.t line 10. # Tried to use 'Statistics::Covid'. # Error: Base class package "DBIx::Class::Schema" is empty. # (Perhaps you need to 'use' the module which defines that package first, # or make that module available in @INC (@INC contains: ... ). # at blib/lib/Statistics/Covid/Schema.pm line 5. # BEGIN failed--compilation aborted at blib/lib/Statistics/Covid/Schema.pm line 5. # Compilation failed in require at blib/lib/Statistics/Covid/Datum/IO.pm line 21. # BEGIN failed--compilation aborted at blib/lib/Statistics/Covid/Datum/IO.pm line 21. # Compilation failed in require at /usr/home/cpansand/.cpan/build/2020032705/Statistics-Covid-0.20-6/blib/lib/Statistics/Covid.pm line 12. # BEGIN failed--compilation aborted at /usr/home/cpansand/.cpan/build/2020032705/Statistics-Covid-0.20-6/blib/lib/Statistics/Covid.pm line 12. # Compilation failed in require at t/00-load.t line 10. # BEGIN failed--compilation aborted at t/00-load.t line 10. ... (etc) ...
On 2020-03-27 03:34:40, SREZIC wrote: Show quoted text
> The test suite fails if DBIx::Class::Schema is not installed: > > ... > PERL_DL_NONLAZY=1 "/usr/local/bin/perl" "-MExtUtils::Command::MM" "- > MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, > 'blib/lib', 'blib/arch')" t/*.t > Bailout called. Further testing stopped: > > # Failed test 'use Statistics::Covid;' > # at t/00-load.t line 10. > # Tried to use 'Statistics::Covid'. > # Error: Base class package "DBIx::Class::Schema" is empty. > # (Perhaps you need to 'use' the module which defines that package > first, > # or make that module available in @INC (@INC contains: ... ). > # at blib/lib/Statistics/Covid/Schema.pm line 5. > # BEGIN failed--compilation aborted at > blib/lib/Statistics/Covid/Schema.pm line 5. > # Compilation failed in require at > blib/lib/Statistics/Covid/Datum/IO.pm line 21. > # BEGIN failed--compilation aborted at > blib/lib/Statistics/Covid/Datum/IO.pm line 21. > # Compilation failed in require at > /usr/home/cpansand/.cpan/build/2020032705/Statistics-Covid-0.20- > 6/blib/lib/Statistics/Covid.pm line 12. > # BEGIN failed--compilation aborted at > /usr/home/cpansand/.cpan/build/2020032705/Statistics-Covid-0.20- > 6/blib/lib/Statistics/Covid.pm line 12. > # Compilation failed in require at t/00-load.t line 10. > # BEGIN failed--compilation aborted at t/00-load.t line 10. > ... (etc) ...
It also seems that SQL::Translator has to declared as a prereq: ... DBIx::Class::Storage::DBI::deployment_statements(): Can't deploy without a ddl_dir or SQL::Translator >= 0.11018 (see DBIx::Class::Optional::Dependencies for details) at /home/cpansand/.cpan/build/2020032707/Statistics-Covid-0.20-0/blib/lib/Statistics/Covid/IO/Base.pm line 282 # Tests were run but no plan was declared and done_testing() was not seen. # Looks like your test exited with 2 just after 4. t/40-Datum-IO-db-SQLite.t .... Dubious, test returned 2 (wstat 512, 0x200) All 4 subtests passed ...
Subject: Re: [rt.cpan.org #132247] Undeclared dependency DBIx::Class::Schema
Date: Fri, 27 Mar 2020 12:31:40 +0200
To: bug-Statistics-Covid [...] rt.cpan.org
From: andreashad2 <andreashad2 [...] googlemail.com>
thank you SREZIC for the alert ! fixed (for next version) On 27/03/2020 09:41, Slaven_Rezic via RT wrote: Show quoted text
> Queue: Statistics-Covid > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=132247 > > > On 2020-03-27 03:34:40, SREZIC wrote:
>> The test suite fails if DBIx::Class::Schema is not installed: >> >> ... >> PERL_DL_NONLAZY=1 "/usr/local/bin/perl" "-MExtUtils::Command::MM" "- >> MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, >> 'blib/lib', 'blib/arch')" t/*.t >> Bailout called. Further testing stopped: >> >> # Failed test 'use Statistics::Covid;' >> # at t/00-load.t line 10. >> # Tried to use 'Statistics::Covid'. >> # Error: Base class package "DBIx::Class::Schema" is empty. >> # (Perhaps you need to 'use' the module which defines that package >> first, >> # or make that module available in @INC (@INC contains: ... ). >> # at blib/lib/Statistics/Covid/Schema.pm line 5. >> # BEGIN failed--compilation aborted at >> blib/lib/Statistics/Covid/Schema.pm line 5. >> # Compilation failed in require at >> blib/lib/Statistics/Covid/Datum/IO.pm line 21. >> # BEGIN failed--compilation aborted at >> blib/lib/Statistics/Covid/Datum/IO.pm line 21. >> # Compilation failed in require at >> /usr/home/cpansand/.cpan/build/2020032705/Statistics-Covid-0.20- >> 6/blib/lib/Statistics/Covid.pm line 12. >> # BEGIN failed--compilation aborted at >> /usr/home/cpansand/.cpan/build/2020032705/Statistics-Covid-0.20- >> 6/blib/lib/Statistics/Covid.pm line 12. >> # Compilation failed in require at t/00-load.t line 10. >> # BEGIN failed--compilation aborted at t/00-load.t line 10. >> ... (etc) ...
> > It also seems that SQL::Translator has to declared as a prereq: > > ... > DBIx::Class::Storage::DBI::deployment_statements(): Can't deploy without a ddl_dir or SQL::Translator >= 0.11018 (see DBIx::Class::Optional::Dependencies for details) at /home/cpansand/.cpan/build/2020032707/Statistics-Covid-0.20-0/blib/lib/Statistics/Covid/IO/Base.pm line 282 > # Tests were run but no plan was declared and done_testing() was not seen. > # Looks like your test exited with 2 just after 4. > t/40-Datum-IO-db-SQLite.t .... > Dubious, test returned 2 (wstat 512, 0x200) > All 4 subtests passed > ... >