CC: | rjbs [...] cpan.org |
Subject: | B::Hooks::EndOfScope fails to report dependency on Variable::Magic |
When a CPAN distribution has a dependency on B-Hooks-EndOfScope, it also has a dependency on everything on which B-Hooks-EndOfScope depends. That means that it's essential that all of B-Hooks-EndOfScope's dependencies be locatable and reported.
I have encountered the following problem twice in the last year-and-a-half while trying to install Dist::Zilla. Dist::Zilla has a dependency on namespace::autoclean, which in turn has a dependency on B::Hooks::EndOfScope (http://deps.cpantesters.org/?module=Dist::Zilla). The Makefile in B-Hooks-EndOfScope (http://cpansearch.perl.org/src/BOBTFISH/B-Hooks-EndOfScope-0.12/Makefile.PL) reports a dependency on Variable::Magic thusly:
#########
my %OPT_RUN_DEPS = (can_xs() ? (
'Variable::Magic' => '0.48', # when changing, also change it in B::Hooks::EndOfScope::XS
# make sure we smoke the pure-perl version fallback
is_smoker() ? ( 'Devel::Hide' => '0.0007' ) : (),
) : () );
#########
There is no mention of Variable::Magic in B-Hooks-EndOfScope's dist.ini file (http://cpansearch.perl.org/src/BOBTFISH/B-Hooks-EndOfScope-0.12/dist.ini).
Consequences:
1. CPAN Dependencies fails to report Variable::Magic as a prerequisite for B::Hooks::EndOfScope -- and vice versa. (See: http://deps.cpantesters.org/?module=B::Hooks::EndOfScope;perl=5.18.0;os=any%20OS;pureperl=0 and http://deps.cpantesters.org/depended-on-by.pl?dist=Variable-Magic-0.53.)
2. Because this dependency is not detected, installation of Dist::Zilla fails with output as in the attachment.
This needs diagnosis and correction.
Thank you very much.
Jim Keenan
Subject: | variable-magic-missing.txt |
Can't locate Variable/Magic.pm in @INC (you may need to install the Variable::Magic module) (@INC contains: /Users/jimk/.cpan/build/Dist-Zilla-4.300039-K4QNYH/blib/arch /Users/jimk/.cpan/build/Dist-Zilla-4.300039-K4QNYH/blib/lib /Users/jimk/.cpan/build/Dist-Zilla-4.300039-K4QNYH/blib/lib /Users/jimk/.cpan/build/Dist-Zilla-4.300039-K4QNYH/blib/arch /usr/local/lib/perl5/site_perl/5.18.0/darwin-2level /usr/local/lib/perl5/site_perl/5.18.0 /usr/local/lib/perl5/5.18.0/darwin-2level /usr/local/lib/perl5/5.18.0 /usr/local/lib/perl5/site_perl/5.16.0 /usr/local/lib/perl5/site_perl/5.14.2 /usr/local/lib/perl5/site_perl/5.14.0 /usr/local/lib/perl5/site_perl/5.12.0 /usr/local/lib/perl5/site_perl/5.10.1 /usr/local/lib/perl5/site_perl/5.10.0 /usr/local/lib/perl5/site_perl/5.8.6 /usr/local/lib/perl5/site_perl .) at /usr/local/lib/perl5/site_perl/5.16.0/B/Hooks/EndOfScope.pm line 14.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.16.0/B/Hooks/EndOfScope.pm line 14.
Compilation failed in require at /usr/local/lib/perl5/site_perl/5.10.1/namespace/autoclean.pm line 10.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.10.1/namespace/autoclean.pm line 10.
Compilation failed in require at /usr/local/lib/perl5/site_perl/5.16.0/MooseX/OneArgNew.pm line 11.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.16.0/MooseX/OneArgNew.pm line 11.
Compilation failed in require at /usr/local/lib/perl5/site_perl/5.18.0/darwin-2level/Moose/Exporter.pm line 409.
...