chris@bingosnet.co.uk via RT <bug-CPANPLUS@rt.cpan.org> писал(а) в своём
письме Fri, 16 Dec 2011 14:17:10 +0400:
Show quoted text> I had spotted the github issue, just hadn't had time to reply.
>
> It shouldn't be installing if there were unsatisfied prereqs.
>
> Can you give an example of it behaving in this manner,
> preferably with verbosity switched on in your configuration,
> 's conf verbose 1', please ?
>
> Many thanks in advance,
>
I have tested on my custom sources module :
CPAN Terminal> ls AZ::BAZ
Details for 'AZ::BAZ'
Author CPANPLUS Internals (cpanplus-info@lists.sf.net)
Description Custom source from '
http://cpan.webdev.x/ADRIVER'
Development Stage Unknown
Installed File /tmp/lib/perl5/AZ/BAZ.pm
Interface Style Unknown
Language Used Unknown
Package AZ-BAZ-v0.17.0.tar.gz
Public License Unknown
Support Level Unknown
Version Installed 0.10.0
Version on CPAN v0.17.0
---------
CPAN Terminal> i AZ::BAZ
Installing AZ::BAZ (v0.17.0)
[MSG] Extracted 'AZ-BAZ-v0.17.0'
[MSG] Extracted 'AZ-BAZ-v0.17.0/AZ-Foo-v0.0.2.tar.gz'
[MSG] Extracted 'AZ-BAZ-v0.17.0/README'
[MSG] Extracted 'AZ-BAZ-v0.17.0/svn.ignore'
[MSG] Extracted 'AZ-BAZ-v0.17.0/Build.PL'
[MSG] Extracted 'AZ-BAZ-v0.17.0/MANIFEST.SKIP'
[MSG] Extracted 'AZ-BAZ-v0.17.0/foo.pl'
[MSG] Extracted 'AZ-BAZ-v0.17.0/AZ-Foo-v0.0.1.tar.gz'
[MSG] Extracted 'AZ-BAZ-v0.17.0/META.yml'
[MSG] Extracted 'AZ-BAZ-v0.17.0/AZ-Foo-v0.0.3.tar.gz'
[MSG] Extracted 'AZ-BAZ-v0.17.0/META.json'
[MSG] Extracted 'AZ-BAZ-v0.17.0/MANIFEST'
[MSG] Extracted 'AZ-BAZ-v0.17.0/t'
[MSG] Extracted 'AZ-BAZ-v0.17.0/t/00.t'
[MSG] Extracted 'AZ-BAZ-v0.17.0/foo'
[MSG] Extracted 'AZ-BAZ-v0.17.0/foo/Bar.dat'
[MSG] Extracted 'AZ-BAZ-v0.17.0/lib'
[MSG] Extracted 'AZ-BAZ-v0.17.0/lib/Foo.pm'
[MSG] Extracted 'AZ-BAZ-v0.17.0/lib/AZ'
[MSG] Extracted 'AZ-BAZ-v0.17.0/lib/AZ/BAZ.pm'
[MSG] Extracted 'AZ-BAZ-v0.17.0/scripts'
[MSG] Extracted 'AZ-BAZ-v0.17.0/scripts/foo.pl'
[MSG] Extracted 'AZ::BAZ' to
'/home/melezhik/.cpanplus/5.8.9/build/AZ-BAZ-v0.17.0'
Running [/var/calculate/usr/local/bin/perl -e use strict; BEGIN { my $old
= select STDERR; $|++; select $old; $|++; $0 = shift(@ARGV); my $rv =
do($0); die $@ if $@; }
/home/melezhik/.cpanplus/5.8.9/build/AZ-BAZ-v0.17.0/Build.PL]...
Checking whether your kit is complete...
Looks good
Checking prerequisites...
requires:
! Unexisted::Module is not installed
ERRORS/WARNINGS FOUND IN PREREQUISITES. You may wish to install the
versions
of the modules indicated above before proceeding with this installation
Deleting MYMETA.yml
Removed previous 'MYMETA.yml'
Deleting MYMETA.json
Removed previous 'MYMETA.json'
Created MYMETA.yml and MYMETA.json
Deleting Build
Removed previous script 'Build'
Creating new 'Build' script for 'AZ-BAZ' version 'v0.17.0'
[ERROR] No such module 'Unexisted::Module' found on CPAN
Running [/var/calculate/usr/local/bin/perl -e use strict; BEGIN { my $old
= select STDERR; $|++; select $old; $|++; $0 = shift(@ARGV); my $rv =
do($0); die $@ if $@; }
/home/melezhik/.cpanplus/5.8.9/build/AZ-BAZ-v0.17.0/Build]...
Building AZ-BAZ
Running [/var/calculate/usr/local/bin/perl -e use strict; BEGIN { my $old
= select STDERR; $|++; select $old; $|++; $0 = shift(@ARGV); my $rv =
do($0); die $@ if $@; }
/home/melezhik/.cpanplus/5.8.9/build/AZ-BAZ-v0.17.0/Build test]...
t/00.t ..
ok 1 - here we begin
1..1
ok
All tests successful.
Files=1, Tests=1, 0 wallclock secs ( 0.03 usr 0.01 sys + 0.04 cusr
0.01 csys = 0.09 CPU)
Result: PASS
Running [/var/calculate/usr/local/bin/perl -e use strict; BEGIN { my $old
= select STDERR; $|++; select $old; $|++; $0 = shift(@ARGV); my $rv =
do($0); die $@ if $@; }
/home/melezhik/.cpanplus/5.8.9/build/AZ-BAZ-v0.17.0/Build install]...
Building AZ-BAZ
Skipping /tmp/data/Bar.dat (unchanged)
Skipping /tmp/lib/perl5/Foo.pm (unchanged)
Installing /tmp/lib/perl5/AZ/BAZ.pm
Installing /tmp/man/man3/AZ::BAZ.3
Skipping /tmp/bin/foo.pl (unchanged)
Writing /tmp/lib/perl5/x86_64-linux-thread-multi/auto/AZ/BAZ/.packlist
*** Install log written to:
/home/melezhik/.cpanplus/install-logs/AZ-BAZ-v0.17.0-1324034309.log
Module 'AZ::BAZ' installed successfully
No errors installing all modules
-------------
CPAN Terminal> ls AZ::BAZ
Details for 'AZ::BAZ'
Author CPANPLUS Internals (cpanplus-info@lists.sf.net)
Description Custom source from '
http://cpan.webdev.x/ADRIVER'
Development Stage Unknown
Installed File /tmp/lib/perl5/AZ/BAZ.pm
Interface Style Unknown
Language Used Unknown
Package AZ-BAZ-v0.17.0.tar.gz
Public License Unknown
Support Level Unknown
Version Installed 0.17.0
Version on CPAN v0.17.0
installed successfully
No errors installing all modules
---
CPAN Terminal> z AZ::BAZ
cat Build.PL
#!/usr/bin/perl
use Module::Build;
use strict;
my $build = Module::Build->new(
module_name => "AZ::BAZ",
dist_author => 'Alexey Melezhik / melezhik@gmail.com',
license => 'perl',
configure_requires => { 'Module::Build' => '0' },
requires => {
'version' => '0',
'Test::More' => '0',
'Unexisted::Module' => '0'
},
script_files => ['scripts/foo.pl'],
dat_files => {'foo/Bar.dat' => 'dat/Bar.dat'},
dist_abstract => 'test cpan module',
install_base => '/usr/local/rle/',
);
$build->add_build_element('dat');
$build->install_path(dat => $build->install_base . "/data");
$build->create_build_script();
--
Alexey Melezhik