Subject: | BUILD constant no longer defined |
The BUILD constant is no longer defined in Internals/Constants.pm. So
when installing a Build.PL based distribution as non-root with:
prefer_makefile => 0
sudo => '/usr/bin/sudo'
I get the following error:
[ERROR] Undefined subroutine &CPANPLUS::Dist::Build::BUILD called at
/usr/lib/perl5/site_perl/5.8.4/CPANPLUS/Dist/Build.pm line 592.
I am running 0.80, but a quick look at older versions didn't show BUILD
defined since 0.05-ish versions. My Configure::User is attached. I
noticed the error when installing MooseX::Getopt, but I assume that no
Build.PL based distribution would work.
Error seen on two systems:
- Linux, perl 5.8.4, cpanp 0.80
- cygwin, perl 5,8,7, cpanp 0.80
Regards,
Mark
Subject: | User.pm |
###############################################
###
### Configuration structure for CPANPLUS::Config::User
###
###############################################
#last changed: Mon Jun 18 19:25:40 2007 GMT
### minimal pod, so you can find it with perldoc -l, etc
=pod
=head1 NAME
CPANPLUS::Config::User
=head1 DESCRIPTION
This is a CPANPLUS configuration file. Editing this
config changes the way CPANPLUS will behave
=cut
package CPANPLUS::Config::User;
use strict;
sub setup {
my $conf = shift;
### conf section
$conf->set_conf( allow_build_interactivity => 1 );
$conf->set_conf( base => '/home/mgrimes/.cpanplus' );
$conf->set_conf( buildflags => 'unist=1' );
$conf->set_conf( cpantest => 0 );
$conf->set_conf( cpantest_mx => '' );
$conf->set_conf( debug => 0 );
$conf->set_conf( dist_type => '' );
$conf->set_conf( email => 'mgrimes@cpan.org' );
$conf->set_conf( extractdir => '' );
$conf->set_conf( fetchdir => '' );
$conf->set_conf( flush => 1 );
$conf->set_conf( force => 0 );
$conf->set_conf( hosts => [
{
'path' => '/pub/CPAN/',
'scheme' => 'ftp',
'host' => 'ftp.cpan.org'
},
{
'path' => '/',
'scheme' => 'http',
'host' => 'www.cpan.org'
},
{
'path' => '/pub/CPAN/',
'scheme' => 'ftp',
'host' => 'ftp.nl.uu.net'
},
{
'path' => '/pub/CPAN/',
'scheme' => 'ftp',
'host' => 'cpan.valueclick.com'
},
{
'path' => '/pub/languages/perl/CPAN/',
'scheme' => 'ftp',
'host' => 'ftp.funet.fi'
}
] );
$conf->set_conf( lib => [] );
$conf->set_conf( makeflags => 'UNIST=1' );
$conf->set_conf( makemakerflags => '' );
$conf->set_conf( md5 => 1 );
$conf->set_conf( no_update => 0 );
$conf->set_conf( passive => 1 );
$conf->set_conf( prefer_bin => 0 );
$conf->set_conf( prefer_makefile => 0 );
$conf->set_conf( prereqs => 1 );
$conf->set_conf( shell => 'CPANPLUS::Shell::Default' );
$conf->set_conf( show_startup_tip => 1 );
$conf->set_conf( signature => 1 );
$conf->set_conf( skiptest => 0 );
$conf->set_conf( storable => 1 );
$conf->set_conf( timeout => 300 );
$conf->set_conf( verbose => 1 );
$conf->set_conf( write_install_logs => 1 );
### program section
$conf->set_program( editor => '/usr/bin/vim' );
$conf->set_program( make => '/usr/bin/make' );
$conf->set_program( pager => '/usr/bin/less' );
$conf->set_program( perlwrapper => '/usr/bin/cpanp-run-perl' );
$conf->set_program( shell => undef );
$conf->set_program( sudo => undef );
return 1;
}
1;