Skip Menu |

This queue is for tickets about the CPANPLUS CPAN distribution.

Report information
The Basics
Id: 27628
Status: resolved
Priority: 0/
Queue: CPANPLUS

People
Owner: Nobody in particular
Requestors: mgrimes [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



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;
Subject: Re: [rt.cpan.org #27628] BUILD constant no longer defined
Date: Tue, 19 Jun 2007 09:11:31 +0200
To: bug-CPANPLUS [...] rt.cpan.org
From: "Jos I. Boumans" <kane [...] xs4all.nl>
On Jun 18, 2007, at 11:41 PM, via RT wrote: Show quoted text
> 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.
CPANPLUS::Dist::Build is actually a seperate distribution: http://search.cpan.org/~kwilliams/CPANPLUS-Dist-Build-0.05/ My guess is that you upgraded from a (very) old distribution of CPANPLUS, where C::D::Build was still bundled. This hasn't been the case since 0.056_01: Changes for 0.056_01 Thu Aug 18 16:26:52 CEST 2005 ===================================================== * This is a development release testing the splitting off of CPANPLUS::Dist::Buid into it's own package. Without doing 'make install UNINST=1', old files may linger on your system. The solution to this is to install the C::D::Build package, and all should work again. Good luck, -- Jos Boumans How do I prove I am not crazy to people who are?
Subject: RE: [rt.cpan.org #27628] BUILD constant no longer defined
Date: Tue, 19 Jun 2007 11:19:47 -0700
To: <bug-CPANPLUS [...] rt.cpan.org>
From: "Mark Grimes" <mgrimes [...] behrmancap.com>
Thanks. cpanp kept telling me that C:D:Build was already up to date. I forced it and now it works fine. Show quoted text
> -----Original Message----- > From: kane@xs4all.nl via RT [mailto:bug-CPANPLUS@rt.cpan.org] > Sent: Tuesday, June 19, 2007 12:12 AM > To: MGRIMES@cpan.org > Subject: Re: [rt.cpan.org #27628] BUILD constant no longer defined > > > <URL: http://rt.cpan.org/Ticket/Display.html?id=27628 > > > > On Jun 18, 2007, at 11:41 PM, via RT wrote: >
> > 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.
> > CPANPLUS::Dist::Build is actually a seperate distribution: > > http://search.cpan.org/~kwilliams/CPANPLUS-Dist-Build-0.05/ > > My guess is that you upgraded from a (very) old distribution > of CPANPLUS, where C::D::Build was still bundled. This hasn't > been the case since > 0.056_01: > > Changes for 0.056_01 Thu Aug 18 16:26:52 CEST 2005 > ===================================================== > > * This is a development release testing the splitting > off of CPANPLUS::Dist::Buid into it's own package. > > Without doing 'make install UNINST=1', old files may linger > on your system. > > The solution to this is to install the C::D::Build package, > and all should work again. > > Good luck, > > -- > > Jos Boumans > > How do I prove I am not crazy to people who are? > > > > >