Skip Menu |

This queue is for tickets about the CPANPLUS-Dist-Build CPAN distribution.

Report information
The Basics
Id: 45010
Status: resolved
Worked: 30 min
Priority: 0/
Queue: CPANPLUS-Dist-Build

People
Owner: BINGOS [...] cpan.org
Requestors: jdhedden [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.20
Fixed in: (no value)



Subject: CPAN version masked by old core version
CPANPLUS::Dist::Build has been in core since 5.9.5. By default the CPAN version installed in site_perl. As a result, the new CPAN version is masked by the old core version. The installdirs directive in Makefile.PL appears to be broken.
On Mon Apr 13 16:00:48 2009, JDHEDDEN wrote: Show quoted text
> CPANPLUS::Dist::Build has been in core since 5.9.5. By default the CPAN > version installed in site_perl. As a result, the new CPAN version is > masked by the old core version. The installdirs directive in > Makefile.PL appears to be broken.
Attached patch for the Makefile.PL file fixes this.
--- CPANPLUS-Dist-Build-0.20/Makefile.PL.orig 2009-04-14 13:36:26.099426900 -0400 +++ CPANPLUS-Dist-Build-0.20/Makefile.PL 2009-04-14 13:36:39.414056900 -0400 @@ -17,8 +17,8 @@ requires 'Module::Pluggable' => '3.8'; requires 'Module::Build' => '0.32'; requires 'File::Spec' => 0; -clean_files 't/dummy-cpanplus t/dummy-perl/lib/perl5'; # overwrite the CP::D::B that shipped in core installdirs ($] >= 5.009005 ? 'perl' : 'site'); +clean_files 't/dummy-cpanplus t/dummy-perl/lib/perl5'; eval "auto_set_repository()"; WriteAll();
Thanks for pointing out the installdirs problem. I've resolved the issue by explicitly calling the applicable 'install_as' directives rather than depending on the slightly opaque behaviour of 'installdirs'. if ( $] >= 5.009005 ) { install_as_core; } else { install_as_site; } Fixed as of version 0.22 0.22 Tue Apr 14 11:01:12 BST 2009 - Fix the installdirs in Makefile.PL Many thanks, Chris Williams