Skip Menu |

This queue is for tickets about the Math-Polygon-Tree CPAN distribution.

Report information
The Basics
Id: 50146
Status: resolved
Priority: 0/
Queue: Math-Polygon-Tree

People
Owner: Nobody in particular
Requestors: sss [...] s-s-s.ru
Cc:
AdminCc:

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



CC: bug-Math-Polygon-Tree [...] rt.cpan.org
Subject: Re: Report a bug in Math-Polygon-Tree-0.02
Date: Thu, 1 Oct 2009 18:12:01 +0400
To: Алексей -- <xliosha [...] gmail.com>
From: Sergey Shilov <sss [...] s-s-s.ru>
День добрый, Алексей. Спасибо за разъяснения. Я переделал синтаксис под perl5.8 ----cut---- 30c30 < unless $chain_ref->[0] ~~ $chain_ref->[-1]; --- Show quoted text
> unless $chain_ref->[0] =~ $chain_ref->[-1] || $chain_ref->[-1] =~ $chain_ref->[0];
----cut---- теперь "make test" ругается на /usr/local/lib/perl5/site_perl/5.8.9/Test/Pod/Coverage.pm line 126 :( В чем тут может быть дело ? ----cut---- # make test cp lib/Math/Polygon/Tree.pm blib/lib/Math/Polygon/Tree.pm PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00-load.........ok 1/1# Testing Math::Polygon::Tree 0.02, Perl 5.008009, /usr/bin/perl t/00-load.........ok t/pod-coverage....NOK 1/1 # Failed test 'Pod coverage on Math::Polygon::Tree' # at /usr/local/lib/perl5/site_perl/5.8.9/Test/Pod/Coverage.pm line 126. # Coverage for Math::Polygon::Tree is 60.0%, with 2 naked subroutines: # bbox # new # Looks like you failed 1 test of 1. t/pod-coverage....dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 1 Failed 1/1 tests, 0.00% okay t/pod.............ok Failed Test Stat Wstat Total Fail List of Failed ------------------------------------------------------------------------------- t/pod-coverage.t 1 256 1 1 1 Failed 1/3 test scripts. 1/3 subtests failed. Files=3, Tests=3, 0 wallclock secs ( 0.32 cusr + 0.02 csys = 0.34 CPU) Failed 1/3 test programs. 1/3 subtests failed. *** Error code 255 Stop in /data2/distrib/osm/osm2mp/perl_osm/Math-Polygon-Tree-0.02. ----cut---- Спасибо, Сергей Шилов Вы писали 1 октября 2009 г., 10:03:52: Show quoted text
А> Salut.
Show quoted text
А> AFAIK operator ~~ appeared in Perl 5.10, so in 5.8 it is syntax error.
Show quoted text
А> 30 сентября 2009 г. 21:14 пользователь Sergey Shilov <sss@s-s-s.ru> написал:
Show quoted text
>> Hi. >> I   have   a   bug   in   Math-Polygon-Tree   on  FreeBSD,  like  this >> http://www.nntp.perl.org/group/perl.cpan.testers/2009/08/msg5162283.html >> , but on intel 32-bit i386-platform >> (#  uname  -a >> FreeBSD  7.2-RELEASE  #0:  Mon  Jul 6 22:28:12 MSD 2009 >> root@localhost  i386) >> >> --cut-- >> # make test >> PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t >> t/00-load........."my" variable $poly masks earlier declaration in same scope at /data2/distrib/osm/osm2mp/perl_osm/Math-Polygon-Tree-0.02/blib/lib/Math/Polygon/Tree.pm line 46. >> "my" variable $poly masks earlier declaration in same scope at /data2/distrib/osm/osm2mp/perl_osm/Math-Polygon-Tree-0.02/blib/lib/Math/Polygon/Tree.pm line 63. >> t/00-load.........NOK 1/1 >> #   Failed test 'use Math::Polygon::Tree;' >> #   at t/00-load.t line 6. >> #     Tried to use 'Math::Polygon::Tree'. >> #     Error:  syntax error at /data2/distrib/osm/osm2mp/perl_osm/Math-Polygon-Tree-0.02/blib/lib/Math/Polygon/Tree.pm line 30, near "] ~" >> # Compilation failed in require at (eval 5) line 2. >> # BEGIN failed--compilation aborted at (eval 5) line 2. >> Use of uninitialized value in concatenation (.) or string at t/00-load.t line 9. >> # Testing Math::Polygon::Tree , Perl 5.008009, /usr/bin/perl >> # Looks like you failed 1 test of 1. >> t/00-load.........dubious >>        Test returned status 1 (wstat 256, 0x100) >> DIED. FAILED test 1 >>        Failed 1/1 tests, 0.00% okay >> t/pod-coverage...."my" variable $poly masks earlier declaration in same scope at /data2/distrib/osm/osm2mp/perl_osm/Math-Polygon-Tree-0.02/blib/lib/Math/Polygon/Tree.pm line 46. >> "my" variable $poly masks earlier declaration in same scope at /data2/distrib/osm/osm2mp/perl_osm/Math-Polygon-Tree-0.02/blib/lib/Math/Polygon/Tree.pm line 63. >> t/pod-coverage....ok >> t/pod.............ok >> Failed Test Stat Wstat Total Fail  List of Failed >> ------------------------------------------------------------------------------- >> t/00-load.t    1   256     1    1  1 >> Failed 1/3 test scripts. 1/3 subtests failed. >> Files=3, Tests=3,  1 wallclock secs ( 0.30 cusr +  0.04 csys =  0.34 CPU) >> Failed 1/3 test programs. 1/3 subtests failed. >> *** Error code 255 >> >> Stop in /data2/distrib/osm/osm2mp/perl_osm/Math-Polygon-Tree-0.02. >> --cut-- >> >> >> >> Thank you. >> Sergey >> >>
Должно быть исправлено в 0.03 Show quoted text
> > Спасибо за разъяснения. Я переделал синтаксис под perl5.8 > ----cut---- > 30c30 > < unless $chain_ref->[0] ~~ $chain_ref->[-1]; > ---
> > unless $chain_ref->[0] =~ $chain_ref->[-1] ||
> $chain_ref->[-1] =~ $chain_ref->[0]; > ----cut---- > > теперь "make test" ругается на > /usr/local/lib/perl5/site_perl/5.8.9/Test/Pod/Coverage.pm line 126 :( > В чем тут может быть дело ? > > ----cut---- > # make test > cp lib/Math/Polygon/Tree.pm blib/lib/Math/Polygon/Tree.pm > PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" > "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t > t/00-load.........ok 1/1# Testing Math::Polygon::Tree 0.02, Perl > 5.008009, /usr/bin/perl > t/00-load.........ok > t/pod-coverage....NOK 1/1 > # Failed test 'Pod coverage on Math::Polygon::Tree' > # at /usr/local/lib/perl5/site_perl/5.8.9/Test/Pod/Coverage.pm line > 126. > # Coverage for Math::Polygon::Tree is 60.0%, with 2 naked subroutines: > # bbox > # new > # Looks like you failed 1 test of 1. > t/pod-coverage....dubious > Test returned status 1 (wstat 256, 0x100) > DIED. FAILED test 1 > Failed 1/1 tests, 0.00% okay > t/pod.............ok > Failed Test Stat Wstat Total Fail List of Failed >
------------------------------------------------------------------------------- Show quoted text
> t/pod-coverage.t 1 256 1 1 1 > Failed 1/3 test scripts. 1/3 subtests failed. > Files=3, Tests=3, 0 wallclock secs ( 0.32 cusr + 0.02 csys = 0.34 > CPU) > Failed 1/3 test programs. 1/3 subtests failed. > *** Error code 255 > > Stop in /data2/distrib/osm/osm2mp/perl_osm/Math-Polygon-Tree-0.02. > ----cut---- > > Спасибо, > Сергей Шилов > > Вы писали 1 октября 2009 г., 10:03:52: >
> А> Salut.
>
> А> AFAIK operator ~~ appeared in Perl 5.10, so in 5.8 it is syntax
> error. >
> А> 30 сентября 2009 г. 21:14 пользователь Sergey Shilov <sss@s-s-s.ru>
> написал:
> >> Hi. > >> I   have   a   bug   in   Math-Polygon-Tree   on  FreeBSD,  like
> this
> >>
> http://www.nntp.perl.org/group/perl.cpan.testers/2009/08/
msg5162283.html Show quoted text
> >> , but on intel 32-bit i386-platform > >> (#  uname  -a > >> FreeBSD  7.2-RELEASE  #0:  Mon  Jul 6 22:28:12 MSD 2009 > >> root@localhost  i386) > >> > >> --cut-- > >> # make test > >> PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
> "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
> >> t/00-load........."my" variable $poly masks earlier declaration in
> same scope at /data2/distrib/osm/osm2mp/perl_osm/Math-Polygon-Tree- > 0.02/blib/lib/Math/Polygon/Tree.pm line 46.
> >> "my" variable $poly masks earlier declaration in same scope at
> /data2/distrib/osm/osm2mp/perl_osm/Math-Polygon-Tree- > 0.02/blib/lib/Math/Polygon/Tree.pm line 63.
> >> t/00-load.........NOK 1/1 > >> #   Failed test 'use Math::Polygon::Tree;' > >> #   at t/00-load.t line 6. > >> #     Tried to use 'Math::Polygon::Tree'. > >> #     Error:  syntax error at
> /data2/distrib/osm/osm2mp/perl_osm/Math-Polygon-Tree- > 0.02/blib/lib/Math/Polygon/Tree.pm line 30, near "] ~"
> >> # Compilation failed in require at (eval 5) line 2. > >> # BEGIN failed--compilation aborted at (eval 5) line 2. > >> Use of uninitialized value in concatenation (.) or string at t/00-
> load.t line 9.
> >> # Testing Math::Polygon::Tree , Perl 5.008009, /usr/bin/perl > >> # Looks like you failed 1 test of 1. > >> t/00-load.........dubious > >>        Test returned status 1 (wstat 256, 0x100) > >> DIED. FAILED test 1 > >>        Failed 1/1 tests, 0.00% okay > >> t/pod-coverage...."my" variable $poly masks earlier declaration in
> same scope at /data2/distrib/osm/osm2mp/perl_osm/Math-Polygon-Tree- > 0.02/blib/lib/Math/Polygon/Tree.pm line 46.
> >> "my" variable $poly masks earlier declaration in same scope at
> /data2/distrib/osm/osm2mp/perl_osm/Math-Polygon-Tree- > 0.02/blib/lib/Math/Polygon/Tree.pm line 63.
> >> t/pod-coverage....ok > >> t/pod.............ok > >> Failed Test Stat Wstat Total Fail  List of Failed > >>
>
------------------------------------------------------------------------------- Show quoted text
> >> t/00-load.t    1   256     1    1  1 > >> Failed 1/3 test scripts. 1/3 subtests failed. > >> Files=3, Tests=3,  1 wallclock secs ( 0.30 cusr +  0.04 csys =
> 0.34 CPU)
> >> Failed 1/3 test programs. 1/3 subtests failed. > >> *** Error code 255 > >> > >> Stop in /data2/distrib/osm/osm2mp/perl_osm/Math-Polygon-Tree-0.02. > >> --cut-- > >> > >> > >> > >> Thank you. > >> Sergey > >> > >>
>