Skip Menu |

This queue is for tickets about the DateTime-Format-SQLite CPAN distribution.

Report information
The Basics
Id: 120422
Status: rejected
Priority: 0/
Queue: DateTime-Format-SQLite

People
Owner: CFAERBER [...] cpan.org
Requestors: bkb [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 0.11
Fixed in: (no value)



Subject: Dependency on Class::Factory::Util not given in Makefile.PL
I have installed both of the modules in PREREQ_PM: $ cpanm DateTime::Format::Builder DateTime::Format::Builder is up to date. (0.81) $ cpanm DateTime DateTime is up to date. (1.42) When I run Makefile.PL, no warnings are printed: $ perl Makefile.PL Generating a Unix-style Makefile Writing Makefile for DateTime::Format::SQLite Writing MYMETA.yml and MYMETA.json $ make Skip blib/lib/DateTime/Format/SQLite.pm (unchanged) Manifying 1 pod document When I run make test, it complains about Class::Factory::Util, which doesn't seem to be listed in the dependencies: $ make test PERL_DL_NONLAZY=1 "/usr/home/ben/software/install/bin/perl5.18.2" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00load.t ....... 1/1 # Failed test 'use DateTime::Format::SQLite;' # at t/00load.t line 8. # Tried to use 'DateTime::Format::SQLite'. # Error: Can't locate Class/Factory/Util.pm in @INC (you may need to install the Class::Factory::Util module) (@INC contains: /usr/home/ben/DateTime-Format-SQLite-0.11/blib/lib /usr/home/ben/DateTime-Format-SQLite-0.11/blib/arch /home/ben/software/install/lib/perl5/site_perl/5.18.2/i386-freebsd /home/ben/software/install/lib/perl5/site_perl/5.18.2 /home/ben/software/install/lib/perl5/5.18.2/i386-freebsd /home/ben/software/install/lib/perl5/5.18.2 /home/ben/software/install/lib/perl5/site_perl .) at /home/ben/software/install/lib/perl5/site_perl/5.18.2/DateTime/Format/Builder/Parser.pm line 375, <DATA> line 1. # BEGIN failed--compilation aborted at /home/ben/software/install/lib/perl5/site_perl/5.18.2/DateTime/Format/Builder/Parser.pm line 375, <DATA> line 1. # Compilation failed in require at /home/ben/software/install/lib/perl5/site_perl/5.18.2/DateTime/Format/Builder.pm line 220, <DATA> line 1. # Compilation failed in require at /usr/home/ben/DateTime-Format-SQLite-0.11/blib/lib/DateTime/Format/SQLite.pm line 70, <DATA> line 1. # BEGIN failed--compilation aborted at /usr/home/ben/DateTime-Format-SQLite-0.11/blib/lib/DateTime/Format/SQLite.pm line 72, <DATA> line 1. # Compilation failed in require at t/00load.t line 8, <DATA> line 1. # BEGIN failed--compilation aborted at t/00load.t line 8, <DATA> line 1. # Looks like you failed 1 test of 1. t/00load.t ....... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/1 subtests t/10pod.t ........ ok t/11pod_cover.t .. 1/1 # Failed test 'all modules are covered by POD' # at /home/ben/software/install/lib/perl5/site_perl/5.18.2/Test/Pod/Coverage.pm line 133. # DateTime::Format::SQLite: requiring 'DateTime::Format::SQLite' failed # Looks like you failed 1 test of 1. t/11pod_cover.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/1 subtests t/format.t ....... Can't locate Class/Factory/Util.pm in @INC (you may need to install the Class::Factory::Util module) (@INC contains: /usr/home/ben/DateTime-Format-SQLite-0.11/blib/lib /usr/home/ben/DateTime-Format-SQLite-0.11/blib/arch /home/ben/software/install/lib/perl5/site_perl/5.18.2/i386-freebsd /home/ben/software/install/lib/perl5/site_perl/5.18.2 /home/ben/software/install/lib/perl5/5.18.2/i386-freebsd /home/ben/software/install/lib/perl5/5.18.2 /home/ben/software/install/lib/perl5/site_perl .) at /home/ben/software/install/lib/perl5/site_perl/5.18.2/DateTime/Format/Builder/Parser.pm line 375, <DATA> line 1. BEGIN failed--compilation aborted at /home/ben/software/install/lib/perl5/site_perl/5.18.2/DateTime/Format/Builder/Parser.pm line 375, <DATA> line 1. Compilation failed in require at /home/ben/software/install/lib/perl5/site_perl/5.18.2/DateTime/Format/Builder.pm line 220, <DATA> line 1. Compilation failed in require at /usr/home/ben/DateTime-Format-SQLite-0.11/blib/lib/DateTime/Format/SQLite.pm line 70, <DATA> line 1. BEGIN failed--compilation aborted at /usr/home/ben/DateTime-Format-SQLite-0.11/blib/lib/DateTime/Format/SQLite.pm line 72, <DATA> line 1. Compilation failed in require at t/format.t line 8, <DATA> line 1. BEGIN failed--compilation aborted at t/format.t line 8, <DATA> line 1. # Looks like your test exited with 2 before it could output anything. t/format.t ....... Dubious, test returned 2 (wstat 512, 0x200) Failed 20/20 subtests t/parse.t ........ Can't locate Class/Factory/Util.pm in @INC (you may need to install the Class::Factory::Util module) (@INC contains: /usr/home/ben/DateTime-Format-SQLite-0.11/blib/lib /usr/home/ben/DateTime-Format-SQLite-0.11/blib/arch /home/ben/software/install/lib/perl5/site_perl/5.18.2/i386-freebsd /home/ben/software/install/lib/perl5/site_perl/5.18.2 /home/ben/software/install/lib/perl5/5.18.2/i386-freebsd /home/ben/software/install/lib/perl5/5.18.2 /home/ben/software/install/lib/perl5/site_perl .) at /home/ben/software/install/lib/perl5/site_perl/5.18.2/DateTime/Format/Builder/Parser.pm line 375, <DATA> line 1. BEGIN failed--compilation aborted at /home/ben/software/install/lib/perl5/site_perl/5.18.2/DateTime/Format/Builder/Parser.pm line 375, <DATA> line 1. Compilation failed in require at /home/ben/software/install/lib/perl5/site_perl/5.18.2/DateTime/Format/Builder.pm line 220, <DATA> line 1. Compilation failed in require at /usr/home/ben/DateTime-Format-SQLite-0.11/blib/lib/DateTime/Format/SQLite.pm line 70, <DATA> line 1. BEGIN failed--compilation aborted at /usr/home/ben/DateTime-Format-SQLite-0.11/blib/lib/DateTime/Format/SQLite.pm line 72, <DATA> line 1. Compilation failed in require at t/parse.t line 8, <DATA> line 1. BEGIN failed--compilation aborted at t/parse.t line 8, <DATA> line 1. # Looks like your test exited with 2 before it could output anything. t/parse.t ........ Dubious, test returned 2 (wstat 512, 0x200) Failed 30/30 subtests t/withsqlite.t ... Can't locate Class/Factory/Util.pm in @INC (you may need to install the Class::Factory::Util module) (@INC contains: /usr/home/ben/DateTime-Format-SQLite-0.11/blib/lib /usr/home/ben/DateTime-Format-SQLite-0.11/blib/arch /home/ben/software/install/lib/perl5/site_perl/5.18.2/i386-freebsd /home/ben/software/install/lib/perl5/site_perl/5.18.2 /home/ben/software/install/lib/perl5/5.18.2/i386-freebsd /home/ben/software/install/lib/perl5/5.18.2 /home/ben/software/install/lib/perl5/site_perl .) at /home/ben/software/install/lib/perl5/site_perl/5.18.2/DateTime/Format/Builder/Parser.pm line 375, <DATA> line 1. BEGIN failed--compilation aborted at /home/ben/software/install/lib/perl5/site_perl/5.18.2/DateTime/Format/Builder/Parser.pm line 375, <DATA> line 1. Compilation failed in require at /home/ben/software/install/lib/perl5/site_perl/5.18.2/DateTime/Format/Builder.pm line 220, <DATA> line 1. Compilation failed in require at /usr/home/ben/DateTime-Format-SQLite-0.11/blib/lib/DateTime/Format/SQLite.pm line 70, <DATA> line 1. BEGIN failed--compilation aborted at /usr/home/ben/DateTime-Format-SQLite-0.11/blib/lib/DateTime/Format/SQLite.pm line 72, <DATA> line 1. Compilation failed in require at t/withsqlite.t line 9, <DATA> line 1. BEGIN failed--compilation aborted at t/withsqlite.t line 9, <DATA> line 1. t/withsqlite.t ... Dubious, test returned 2 (wstat 512, 0x200) No subtests run Test Summary Report ------------------- t/00load.t (Wstat: 256 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 1 t/11pod_cover.t (Wstat: 256 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 1 t/format.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: Bad plan. You planned 20 tests but ran 0. t/parse.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: Bad plan. You planned 30 tests but ran 0. t/withsqlite.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output Files=6, Tests=3, 1 wallclock secs ( 0.03 usr 0.01 sys + 1.28 cusr 0.14 csys = 1.46 CPU) Result: FAIL Failed 5/6 test programs. 2/3 subtests failed. *** Error code 2 Stop. make: stopped in /usr/home/ben/DateTime-Format-SQLite-0.11 If I install Class::Factory::Util, the installation works again: $ cpanm Class::Factory::Util --> Working on Class::Factory::Util Fetching http://www.cpan.org/authors/id/D/DR/DROLSKY/Class-Factory-Util-1.7.tar.gz ... OK Configuring Class-Factory-Util-1.7 ... OK Building and testing Class-Factory-Util-1.7 ... OK Successfully installed Class-Factory-Util-1.7 1 distribution installed $ make test PERL_DL_NONLAZY=1 "/usr/home/ben/software/install/bin/perl5.18.2" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00load.t ....... ok t/10pod.t ........ ok t/11pod_cover.t .. ok t/format.t ....... ok t/parse.t ........ ok t/withsqlite.t ... ok All tests successful. Files=6, Tests=69, 2 wallclock secs ( 0.02 usr 0.02 sys + 1.44 cusr 0.16 csys = 1.64 CPU) Result: PASS Perhaps the dependence should be in PREREQ_PM.
DateTime::Format::SQLite does not use Class::Factory::Util directly. That moduel is actually used by and a dependency of DateTime::Format::Builder. As DateTime::Format::Builder correctly declares its dependency on Class::Factory::Util, there is probably something wrong with your perl installation.
CC: BKB <bkb [...] cpan.org>
Subject: Re: [rt.cpan.org #120422] Dependency on Class::Factory::Util not given in Makefile.PL
Date: Tue, 28 Feb 2017 09:38:11 +0900
To: bug-DateTime-Format-SQLite [...] rt.cpan.org
From: Ben Bullock <benkasminbullock [...] gmail.com>
Looking at the testers results for this module and the DateTime::Format::Builder, I agree that this is most probably an issue with my perl installation. On 28 February 2017 at 05:16, Claus Faerber via RT <bug-DateTime-Format-SQLite@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=120422 > > > DateTime::Format::SQLite does not use Class::Factory::Util directly. That moduel is actually used by and a dependency of DateTime::Format::Builder. > > As DateTime::Format::Builder correctly declares its dependency on Class::Factory::Util, there is probably something wrong with your perl installation.