Bug#741000: Syntax errors with perl 5.18

Damyan Ivanov dmn at debian.org
Fri Mar 7 10:00:54 UTC 2014


Control: tag -1 - patch

-=| Damyan Ivanov, 07.03.2014 10:11:57 +0200 |=-
> In line 64 (routine sheet_args) there was
> 
> foreach my $t qw(week month year) {
> 
> which gave a syntax error on my system (jessie), whereas
> 
> foreach my $t (qw(week month year)) {
> ---------------------------------------------------
> 
> This is a syntax error with perl 5.18 and your fix addresses it.

Unfortunately this is not enough. There is a couple of "for my $x 
qw(..)" in the test suite. After fixing them too, the test suite now 
fails with long html dumps and the following summary:

--------------------------
Test Summary Report
-------------------
t/01parse.t (Wstat: 4864 Tests: 19 Failed: 19)
  Failed tests:  1-19
  Non-zero exit status: 19
Files=2, Tests=21,  3 wallclock secs ( 0.03 usr  0.01 sys +  1.89 cusr  0.03 csys =  1.96 CPU)
Result: FAIL
Failed 1/2 test programs. 19/21 subtests failed.
---------------------------

I wouldn't be surprised if the test suite or the module itself behaves 
non-deterministic with the hash randomization in perl 5.18.



More information about the pkg-perl-maintainers mailing list