billr1 has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to track down some errors I am seeing when running several on the tests in cpan/ExtUtils-MakeMaker/t. This is using Perl 5.22.1, cross-compiled from x86_64 to x86_64, running in a qemu target. As an example, the t/basic.t test contains:
use ExtUtils::MakeMaker; : : use Config; use Test::More; use ExtUtils:MM; plan !MM->can_run(make()) && $ENV{PERL_CORE} && $Config{'usecrosscompi +le'} ? (skip_all => "cross-compiling and make not available") : (tests => 171); use File::Find; : :
I am finding that the call MM->can_run(make()) returns undef. make() is defined in ExtUtils::MM_Any.pm, but it appears to never be called. In addition, make() relies on the value of $self->MAKE, which is set in init_MAKE(), also defined in ExtUtils::MM_Any.pm and never called.
Now, I can get this code to work by changing it to look like this:
my $mm = ExtUtils::MM->new(); plan !$mm->can_run($mm->make()) && ...
(init_MAKE() gets called from new(), to set the internal value for MAKE which is used when make() is called.)
So, my questions are:
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: errors with cpan/ExtUtils-MakeMaker/t/basic.t
by Anonymous Monk on May 13, 2016 at 22:53 UTC | |
by stevieb (Canon) on May 13, 2016 at 23:38 UTC | |
by billr1 (Initiate) on May 14, 2016 at 15:20 UTC | |
|
Re: errors with cpan/ExtUtils-MakeMaker/t/basic.t
by Haarg (Priest) on May 15, 2016 at 04:03 UTC |