Re: [Module-build-general] Ready for 0.19?
Status: Beta
Brought to you by:
kwilliams
|
From: Dave R. <au...@ur...> - 2003-07-04 04:05:26
|
On Thu, 3 Jul 2003, Ken Williams wrote:
> I've released a new beta, 0.18_04, to cpan and sourceforge. It gets
> the 'install_base' parameter working, completing the design document I
> posted here a few days ago. I'd love it if people could test it out,
> by either/both of running the regression tests & using it to
> test/install their own Module::Build-using modules.
Passes all tests on Debian unstable with 5.8.0 and 5.6.1, but there are
some small problems with 5.00503.
When I ran Build.PL for the distro, it told me I needed Module::Info.
So I went ahead and installed it, which worked fine under 5.00503.
However, after doing this I get these test results:
t/basic.........ok
t/compat........ok 16/23Argument "0.18_04" isn't numeric in entersub at (eval 4) line 3.
t/compat........ok
t/runthrough....ok 8/26B::Module::Info,packages use failed with 255 saying:
use of backend Module::Info failed: Perl 5.006 required--this is only version 5.00503, stopped at /usr/local/perl5.00503/lib/site_perl/5.005/B/Utils.pm line 3.
BEGIN failed--compilation aborted at /usr/local/perl5.00503/lib/site_perl/5.005/B/Utils.pm line 3.
BEGIN failed--compilation aborted at /usr/local/perl5.00503/lib/site_perl/5.005/B/Module/Info.pm line 7.
BEGIN failed--compilation aborted at (eval 1) line 2.
at /root/cpan-5.00503/build/Module-Build-0.18_04/t/Sample/lib/Sample.pm line 0
BEGIN failed--compilation aborted.
t/runthrough....FAILED tests 17-18, 21-22
Failed 4/26 tests, 84.62% okay
t/signature.....skipped
all skipped: Skipping unless $ENV{TEST_SIGNATURE} is true
t/xs............ok
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/runthrough.t 26 4 15.38% 17-18 21-22
1 test skipped.
Failed 1/5 test scripts, 80.00% okay. 4/75 subtests failed, 94.67% okay.
The above errors are not the cause of the test failures, but they're
annoying and will not inspire end-user confidence ;)
Maybe just don't bother trying to load Module::Info "unless $] >= 5.006"?
Here's the verbose output for the failing tests:
not ok 17
# Test 17 got: 'Can't figure out where to install things of type 'script' at /root/cpan-5.00503/build/Module-Build-0.18_04/blib/lib/Module/Build/Base.pm line 1439.
' (t/runthrough.t at line 100)
# Expected: ''
Should have installed module as /root/cpan-5.00503/build/Module-Build-0.18_04/t/install_test/usr/local/perl5.00503/lib/site_perl/5.005/Sample.pm
not ok 18
# Failed test 18 in t/runthrough.t at line 105
Installing /root/cpan-5.00503/build/Module-Build-0.18_04/t/install_test/usr/local/perl5.00503/lib/5.00503/Sample.pm
Installing /root/cpan-5.00503/build/Module-Build-0.18_04/t/install_test/usr/local/perl5.00503/bin/script
ok 19
Should have installed module as /root/cpan-5.00503/build/Module-Build-0.18_04/t/install_test/usr/local/perl5.00503/lib/5.00503/Sample.pm
ok 20
not ok 21
# Test 21 got: 'Can't figure out where to install things of type 'script' at /root/cpan-5.00503/build/Module-Build-0.18_04/blib/lib/Module/Build/Base.pm line 1439.
' (t/runthrough.t at line 117)
# Expected: ''
Should have installed module as /root/cpan-5.00503/build/Module-Build-0.18_04/t/install_test/foo/bar/Sample.pm
not ok 22
# Failed test 22 in t/runthrough.t at line 120
The problem seems to be that my Config.pm does not define anything for
"installsitebin".
I have no idea why that should be the case. For versions 5.00503 and
5.6.1 of Perl on my machine, I compiled them myself, while 5.8.0 is
the Debian packaged version, so I suspect this is a general 5.00503
problem. I think you may need to just use "installbin" on 5.00503.
With the patch below my sig, all tests pass with 5.00503, though the
annoying noise from Module::Info persists.
-dave
/*=======================
House Absolute Consulting
www.houseabsolute.com
=======================*/
--- lib/Module/Build/Base.pm~ 2003-07-03 15:40:46.000000000 -0500
+++ lib/Module/Build/Base.pm 2003-07-03 23:04:26.000000000 -0500
@@ -99,7 +99,7 @@
lib => $c->{installsitelib},
arch => $c->{installsitearch},
bin => $c->{installsitebin},
- script => $c->{installsitescript} || $c->{installsitebin},
+ script => $c->{installsitescript} || $c->{installsitebin} || $c->{installbin},
bindoc => $c->{installsiteman1dir},
libdoc => $c->{installsiteman3dir},
},
@@ -107,7 +107,7 @@
lib => $c->{installvendorlib},
arch => $c->{installvendorarch},
bin => $c->{installvendorbin},
- script => $c->{installvendorscript} || $c->{installvendorbin},
+ script => $c->{installvendorscript} || $c->{installvendorbin} || $c->{installbin},
bindoc => $c->{installvendorman1dir},
libdoc => $c->{installvendorman3dir},
},
|