Skip Menu |

This queue is for tickets about the Class-Load CPAN distribution.

Report information
The Basics
Id: 121839
Status: resolved
Priority: 0/
Queue: Class-Load

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

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



Subject: Installation oddness on 5.26
This module can be installed on perl 5.26 only from the second attempt: % perlbrew use 5.26-rc2-2 % cpan Class::Load ... # *** WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING *** # # The following REQUIRED prerequisites were not satisfied: # # Data::OptList is not installed (any version required) # t/00-report-prereqs.t ........... ok t/000-load.t .................... 1/? # Failed test 'use Test::Class::Load;' # at t/000-load.t line 9. # Tried to use 'Test::Class::Load'. ... % cpan Class::Load ... ETHER/Class-Load-0.24.tar.gz /usr/bin/make install -- OK
On 2017-05-23 15:34:07, RANDIR wrote: Show quoted text
> This module can be installed on perl 5.26 only from the second attempt: > > % perlbrew use 5.26-rc2-2 > % cpan Class::Load > ... > # *** WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING ***
Those ... contain the relevant bits of the diagnosis. Was there any attempt by the cpan client to satisfy the necessary prereqs? There's nothing I can do here, as the distribution does have the prereqs declared properly: https://metacpan.org/source/ETHER/Class-Load-0.24/META.json#L6 https://metacpan.org/source/ETHER/Class-Load-0.24/META.json#L137 https://metacpan.org/source/ETHER/Class-Load-0.24/Makefile.PL#L21

Message body is not shown because it is too large.

Here's a full log from the second CPAN invocation: afl@dorothy% cpan Class::Load Loading internal null logger. Install Log::Log4perl for logging messages Reading '/home/afl/.cpan/Metadata' Database was generated on Wed, 24 May 2017 06:41:02 GMT Running install for module 'Class::Load' Checksum for /home/afl/.cpan/sources/authors/id/E/ET/ETHER/Class-Load-0.24.tar.gz ok 'YAML' not installed, will not store persistent state Configuring E/ET/ETHER/Class-Load-0.24.tar.gz with Makefile.PL Checking if your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile for Class::Load Writing MYMETA.yml and MYMETA.json ETHER/Class-Load-0.24.tar.gz /home/afl/perlbrew/perls/perl-5.26.0-rc2/bin/perl Makefile.PL -- OK Running make for E/ET/ETHER/Class-Load-0.24.tar.gz cp lib/Class/Load/PP.pm blib/lib/Class/Load/PP.pm cp lib/Class/Load.pm blib/lib/Class/Load.pm Manifying 1 pod document ETHER/Class-Load-0.24.tar.gz /usr/bin/make -- OK Running make test PERL_DL_NONLAZY=1 "/home/afl/perlbrew/perls/perl-5.26.0-rc2/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00-report-prereqs.t ........... # # Versions for all modules listed in MYMETA.json (including optional ones): # # === Configure Requires === # # Module Want Have # ------------------- ---- ---- # ExtUtils::MakeMaker any 7.24 # # === Configure Suggests === # # Module Want Have # -------- ------- ---------- # JSON::PP 2.27300 2.27400_02 # # === Build Requires === # # Module Want Have # ------------------- ---- ---- # ExtUtils::MakeMaker any 7.24 # # === Test Requires === # # Module Want Have # ------------------- ---- -------- # ExtUtils::MakeMaker any 7.24 # File::Spec any 3.67 # Test::Fatal any 0.014 # Test::More 0.88 1.302073 # Test::Needs any 0.002005 # constant any 1.33 # lib any 0.64 # version any 0.9917 # # === Test Recommends === # # Module Want Have # ---------- -------- -------- # CPAN::Meta 2.120900 2.150010 # # === Runtime Requires === # # Module Want Have # ---------------------- ----- ------- # Carp any 1.42 # Data::OptList any 0.110 # Exporter any 5.72 # Module::Implementation 0.04 0.09 # Module::Runtime 0.012 0.014 # Package::Stash 0.14 0.37 # Scalar::Util any 1.46_02 # Try::Tiny any 0.28 # base any 2.25 # strict any 1.11 # warnings any 1.37 # # === Runtime Recommends === # # Module Want Have # ------------- ----- ----- # Data::OptList 0.110 0.110 # # === Other Modules === # # Module Have # --------- ---------- # JSON::PP 2.27400_02 # Sub::Name missing # YAML missing # autodie 2.29 # t/00-report-prereqs.t ........... ok t/000-load.t .................... 1/? # Using PP implementation t/000-load.t .................... ok t/001-is-class-loaded.t ......... ok t/002-try-load-class.t .......... ok t/003-load-class.t .............. ok t/004-load-double.t ............. ok t/005-load-optional.t ........... ok t/006-returned-error.t .......... ok t/007-first-existing.t .......... ok t/008-gvstash-bug.t ............. ok t/009-invalid-module-name.t ..... ok t/010-isa-false-positive.t ...... ok t/011-without-xs.t .............. skipped: Need Test::Without::Module t/012-without-implementation.t .. skipped: Need Test::Without::Module t/013-errors.t .................. ok t/014-weird-constants.t ......... ok All tests successful. Files=16, Tests=125, 1 wallclock secs ( 0.05 usr 0.00 sys + 0.70 cusr 0.05 csys = 0.80 CPU) Result: PASS ETHER/Class-Load-0.24.tar.gz /usr/bin/make test -- OK Running make install Manifying 1 pod document Installing /home/afl/perlbrew/perls/perl-5.26.0-rc2/lib/site_perl/5.26.0/Class/Load.pm Installing /home/afl/perlbrew/perls/perl-5.26.0-rc2/lib/site_perl/5.26.0/Class/Load/PP.pm Installing /home/afl/perlbrew/perls/perl-5.26.0-rc2/man/man3/Class::Load.3 Appending installation info to /home/afl/perlbrew/perls/perl-5.26.0-rc2/lib/5.26.0/x86_64-linux/perllocal.pod ETHER/Class-Load-0.24.tar.gz /usr/bin/make install -- OK
On Tue May 23 21:00:59 2017, ETHER wrote: Show quoted text
Unfortunately, I do not understand what you imply here, can you clarify a bit? Installation fails due to the missing prereq Data::OptList, which is in turn installed _after_ the first attempt to install Class::Load (see the first log). And is installed successfully, so it's clearly not Data::OptList's fault. So, either this is this distribution's bug or a cpan client's bug. If you say it's the latter, I'll file an issue for it too.
On 2017-05-24 02:41:57, RANDIR wrote: Show quoted text
> On Tue May 23 21:00:59 2017, ETHER wrote: > > Unfortunately, I do not understand what you imply here, can you > clarify a bit? Installation fails due to the missing prereq > Data::OptList
..which is specified correctly; however the cpan client is failing to attempt to install it. Show quoted text
> So, either this is this distribution's bug or a cpan client's bug. If > you say it's the latter, I'll file an issue for it too.
Somewhere up in the cpan client's guts, yes. Perhaps it's getting confused because it's listed as both a required *and* optional prereq (albeit at different versions). When you file a ticket, please include the complete first log; it would also be helpful to link to this ticket here.
Now fixed in CPAN