Subject: | Failure to self-upgrade |
Hi John,
I'm now faithfully demanding version 0.94 but this is causing a new
issue. Machines with earlier versions of version.pm are having
difficulty upgrading; they're sending NA smoke reports. I've downgraded
my own installed version.pm to 0.88 and successfully reproduced the
issue, failing to install my own just-released Error::Base 0.0.2, which
requires version 0.94.
I'm attaching:
lib/Error/Base.pm # module in question
Build.PL # installer
version-cpan.log # 'cpan' attempt to install
These may be somewhat lengthy so here are inline excerpts:
# Base.pm
package Error::Base;
use 5.008008;
use strict;
use warnings;
use version 0.94; our $VERSION = qv('0.0.2');
# Build.PL
use 5.008008;
use strict;
use warnings;
use Module::Build;
my $builder = Module::Build->new(
module_name => 'Error::Base',
license => 'artistic_2',
dist_author => 'Xiong Changnian <xiong@cpan.org>',
dist_version_from => 'lib/Error/Base.pm',
requires => {
'perl' => 5.008008,
'version' => 0.94,
# version-cpan.log
cpan[12]> install Error::Base
...
CPAN.pm: Building X/XI/XIONG/developer-tools/Error-Base-v0.0.2.tar.gz
Checking prerequisites...
requires:
! version (0.88) is installed, but we need version >= 0.94
ERRORS/WARNINGS FOUND IN PREREQUISITES. You may wish to install the
versions
of the modules indicated above before proceeding with this installation
Error evaling version line 'BEGIN { q# Hide from _packages_inside()
#; package Module::Metadata::_version::p3;
use version;
no strict;
$vsub = sub {
local $VERSION;
$VERSION=undef;
use version 0.94; our $VERSION = qv('0.0.2');;
$VERSION
};
}' in /ark/rig/build/Error-Base-v0.0.2-ShLiMJ/lib/Error/Base.pm:
version version 0.94 required--this is only version 0.88 at (eval 24)
line 9, <GEN2> line 9.
BEGIN failed--compilation aborted at (eval 24) line 9, <GEN2> line 9.
failed to build version sub for /ark/rig/build/Error-Base-v0.0.2-
ShLiMJ/lib/Error/Base.pm at /rig/lib/b/Module/Metadata.pm line 556,
<GEN2> line 9.
(/rig/bin/perl Build.PL exited with 6400)
____
Xiong Changnian
XIONG@cpan.org
Subject: | version-cpan.log |
cpan[11]> m Error::Base
Module id = Error::Base
CPAN_USERID XIONG (Xiong Changnian <xiong-cpan@xuefang.com>)
CPAN_VERSION v0.0.2
CPAN_FILE X/XI/XIONG/developer-tools/Error-Base-v0.0.2.tar.gz
UPLOAD_DATE 2011-10-27
INST_FILE (not installed)
cpan[12]> install Error::Base
Running install for module 'Error::Base'
Running make for X/XI/XIONG/developer-tools/Error-Base-v0.0.2.tar.gz
Fetching with LWP:
ftp://cpan-sj.viaverio.com/pub/CPAN/authors/id/X/XI/XIONG/developer-tools/Error-Base-v0.0.2.tar.gz
Checksum for /ark/rig/sources/authors/id/X/XI/XIONG/developer-tools/Error-Base-v0.0.2.tar.gz ok
CPAN.pm: Building X/XI/XIONG/developer-tools/Error-Base-v0.0.2.tar.gz
Checking prerequisites...
requires:
! version (0.88) is installed, but we need version >= 0.94
ERRORS/WARNINGS FOUND IN PREREQUISITES. You may wish to install the versions
of the modules indicated above before proceeding with this installation
Error evaling version line 'BEGIN { q# Hide from _packages_inside()
#; package Module::Metadata::_version::p3;
use version;
no strict;
$vsub = sub {
local $VERSION;
$VERSION=undef;
use version 0.94; our $VERSION = qv('0.0.2');;
$VERSION
};
}' in /ark/rig/build/Error-Base-v0.0.2-ShLiMJ/lib/Error/Base.pm: version version 0.94 required--this is only version 0.88 at (eval 24) line 9, <GEN2> line 9.
BEGIN failed--compilation aborted at (eval 24) line 9, <GEN2> line 9.
failed to build version sub for /ark/rig/build/Error-Base-v0.0.2-ShLiMJ/lib/Error/Base.pm at /rig/lib/b/Module/Metadata.pm line 556, <GEN2> line 9.
(/rig/bin/perl Build.PL exited with 6400)
Could not read metadata file. Falling back to other methods to determine prerequisites
CPAN::Reporter: Build.PL result is 'na', Perl version too low.
CPAN::Reporter: preparing a CPAN Testers report for Error-Base-v0.0.2
CPAN::Reporter: sending test report with 'na' via Metabase
Warning: No success on command[/rig/bin/perl Build.PL ]
XIONG/developer-tools/Error-Base-v0.0.2.tar.gz
/rig/bin/perl Build.PL -- NOT OK
Running Build test
Make had some problems, won't test
Running Build install
Make had some problems, won't install
Failed during this command:
XIONG/developer-tools/Error-Base-v0.0.2.tar.gz: writemakefile NO '/rig/bin/perl Build.PL ' returned status 6400
cpan[13]>
Subject: | Base.pm |
Message body is not shown because it is too large.
Subject: | Build.PL |
use 5.008008;
use strict;
use warnings;
use Module::Build;
my $builder = Module::Build->new(
module_name => 'Error::Base',
license => 'artistic_2',
dist_author => 'Xiong Changnian <xiong@cpan.org>',
dist_version_from => 'lib/Error/Base.pm',
requires => {
'perl' => 5.008008,
'version' => 0.94,
'Scalar::Util' => 0,
'overload' => 0,
#~ '' => 0,
},
recommends => {
'Devel::Comments' => '1.1.4',
},
build_requires => {
'Test::More' => 0.94,
},
add_to_cleanup => [ 'Error-Base-*' ],
meta_merge => {
resources => {
repository => 'http://github.com/Xiong/error-base',
},
keywords => [ qw(
devel development
error errors
exception exceptions
OO object-oriented class object method
carp croak
) ],
},
);
$builder->create_build_script();