Subject: | cpan.pm not using values from cpan/config.pm |
perl 5.8.8-RC1
built from source: mingw (gcc 3.4.5)
winXP pro sp2
The system calls in CPAN.pm relevant to "./Build" are all hardcoded,
rather than using the config value "mbuild_install_build_command", when
available.
Attached is a patch for CPAN.pm
Subject: | CPAN.pm.diff |
4729c4729,4732
< $system = "./Build $CPAN::Config->{mbuild_arg}";
---
> my($perl) = $self->perl or die "Couldn\'t find executable perl\n";
> my($mbuild_install_build_command) = $CPAN::Config->{'mbuild_install_build_command'} ||
> "$perl Build";
> $system = "$mbuild_install_build_command $CPAN::Config->{mbuild_arg}";
5003c5006,5009
< $system = "./Build test";
---
> my($perl) = $self->perl or die "Couldn\'t find executable perl\n";
> my($mbuild_install_build_command) = $CPAN::Config->{'mbuild_install_build_command'} ||
> "$perl Build";
> $system = "$mbuild_install_build_command test";
5044c5050,5053
< $system = "./Build clean";
---
> my($perl) = $self->perl or die "Couldn\'t find executable perl\n";
> my($mbuild_install_build_command) = $CPAN::Config->{'mbuild_install_build_command'} ||
> "$perl Build";
> $system = "$mbuild_install_build_command clean";
5128a5138
> my($perl) = $self->perl or die "Couldn\'t find executable perl\n";
5130c5140
< "./Build";
---
> "$perl Build";