This queue is for tickets about the CPAN CPAN distribution.

Report information
The Basics
Id:
17313
Status:
resolved
Priority:
Low/Low
Queue:

People
Owner:
ANDK [...] cpan.org
Requestors:
carl [...] fireartist.com
Cc:
AdminCc:

BugTracker
Severity:
Critical
Broken in:
1.83
Fixed in:
(no value)

Attachments


Subject: MB fails with cpan.pm's defaults on windows
perl 5.8.8-RC1 built from source: mingw (gcc 3.4.5) winXP pro sp2 The default option for "mbuild_install_build_command" is "./Build" which fails on windows because the file is not executable. The command should be "perl Build". Attached is a patch for FirstTime.pm which changes the default for "mbuild_install_build_command". It uses the value from CPAN::Distribution::perl() to ensure the correct perl binary is called.
Subject: FirstTime.pm.diff
480c480,481 < $default = $CPAN::Config->{mbuild_install_build_command} || "./Build"; --- > my($perl) = CPAN::Distribution::perl() or die "Couldn\'t find executable perl\n"; > $default = $CPAN::Config->{mbuild_install_build_command} || "$perl Build"; 482c483 < prompt("Do you want to use a different command for './Build install'? --- > prompt("Do you want to use a different command for './Build'?
If it is as you describe, I have completely misunderstood the inner workings of Module::Build. I'll go to the module-build mailing list and discuss the issue there. You're welcome to chime in there. In any case I'll summarize here later
As promised, first a summary about the discussion on the Module::Build mailinglist: a majority is willing to see the bug in Module::Build and it will eventually be fixed in the next release. As we cannot depend on future releases, CPAN.pm has now workarounds in several places: (1) support for the keys make_install_make_command and mbuild_install_build_command on Windows is completely dropped. (2) new method CPAN::Distribution::_build_command deals with the construction of the command string Released as 1.83_60, this should now work on Windows (only tested by setting $^O to "MSWin32" on a linux box -- not a very realistic test) Thanks for the report, I'll close this ticket now. Please reopen if you encounter problems.


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.