bulk88 wrote:
I am not sure yet if I need to install it as
site/lib/Config.pm. EUMM distros works fine with -MVCConfig, I haven't
tried Module::Build distros, so I'm not sure if I will have to resort to
site/lib/Config.pm yet. Also config.h will need a 1 line patch or to be
replaced with site/lib/CORE/config.h since there is 1 setting in it that
syntax errors on VC.
Module::Build tests for and forbids overriding Config (related report
http://perlmonks.org/?node_id=987651 ), so that means VCConfig will have
install itself as site/lib/Config.pm and use an ENV var to control VC vs
GCC. That will also fix the problem of a EUMM makefile, if it
regenerates itself, it looses the VC-ness because the regen run of EUMM
Makefile.PL is missing the -MVCConfig .
-------------------------------------------------------------
# Determine whether a given binary is the same as the perl
# (configuration) that started this process.
sub _perl_is_same {
my ($self, $perl) = @_;
my @cmd = ($perl);
# When run from the perl core, @INC will include the directories
# where perl is yet to be installed. We need to reference the
# absolute path within the source distribution where it can find
# it's Config.pm This also prevents us from picking up a Config.pm
# from a different configuration that happens to be already
# installed in @INC.
if ($ENV{PERL_CORE}) {
push @cmd, '-I' .
File::Spec->catdir(File::Basename::dirname($perl), 'lib');
}
push @cmd, qw(-MConfig=myconfig -e print -e myconfig);
return $self->_backticks(@cmd) eq Config->myconfig;
}
-------------------------------------------------------------