Skip Menu |

This queue is for tickets about the AnyEvent-Connection CPAN distribution.

Report information
The Basics
Id: 85967
Status: open
Priority: 0/
Queue: AnyEvent-Connection

People
Owner: Nobody in particular
Requestors: gregoa [...] debian.org
Cc: dam [...] cpan.org
AdminCc:

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



From: gregoa [...] cpan.org
Subject: libanyevent-connection-perl: FTBFS with perl 5.18: test failures
This bug has been forwarded from http://bugs.debian.org/711425 Source: libanyevent-connection-perl Version: 0.06-1 Severity: important User: debian-perl@lists.debian.org Usertags: perl-5.18-transition Tags: sid jessie This package FTBFS with perl 5.18 from experimental (in a clean sbuild session): # Failed test 'use AnyEvent::Connection;' # at t/00-load.t line 9. # Tried to use 'AnyEvent::Connection'. # Error: Useless use of '\'; doesn't escape metacharacter '{' at /build/dom -libanyevent-connection-perl_0.06-1-i386-sJuxjW/libanyevent-connection-perl-0.06 /lib/AnyEvent/Connection/Util.pm line 32. # Compilation failed in require at /build/dom-libanyevent-connection-perl_0.06-1 -i386-sJuxjW/libanyevent-connection-perl-0.06/lib/AnyEvent/Connection/Raw.pm lin e 11. # BEGIN failed--compilation aborted at /build/dom-libanyevent-connection-perl_0. 06-1-i386-sJuxjW/libanyevent-connection-perl-0.06/lib/AnyEvent/Connection/Raw.pm line 11. # Compilation failed in require at /build/dom-libanyevent-connection-perl_0.06-1 -i386-sJuxjW/libanyevent-connection-perl-0.06/lib/AnyEvent/Connection.pm line 16 . # BEGIN failed--compilation aborted at /build/dom-libanyevent-connection-perl_0. 06-1-i386-sJuxjW/libanyevent-connection-perl-0.06/lib/AnyEvent/Connection.pm lin e 16. # Compilation failed in require at (eval 5) line 2. # BEGIN failed--compilation aborted at (eval 5) line 2. # Testing AnyEvent::Connection , Perl 5.018000, /usr/bin/perl # Looks like you failed 1 test of 2. t/00-load.t ....... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/2 subtests Useless use of '\'; doesn't escape metacharacter '{' at /build/dom-libanyevent-c onnection-perl_0.06-1-i386-sJuxjW/libanyevent-connection-perl-0.06/lib/AnyEvent/ Connection/Util.pm line 32. Compilation failed in require at /build/dom-libanyevent-connection-perl_0.06-1-i 386-sJuxjW/libanyevent-connection-perl-0.06/lib/AnyEvent/Connection/Raw.pm line 11. BEGIN failed--compilation aborted at /build/dom-libanyevent-connection-perl_0.06-1-i386-sJuxjW/libanyevent-connection-perl-0.06/lib/AnyEvent/Connection/Raw.pm line 11. Compilation failed in require at /build/dom-libanyevent-connection-perl_0.06-1-i386-sJuxjW/libanyevent-connection-perl-0.06/lib/AnyEvent/Connection.pm line 16. BEGIN failed--compilation aborted at /build/dom-libanyevent-connection-perl_0.06-1-i386-sJuxjW/libanyevent-connection-perl-0.06/lib/AnyEvent/Connection.pm line 16. Compilation failed in require at (eval 2) line 2. ...propagated at /usr/share/perl/5.18/base.pm line 83. BEGIN failed--compilation aborted at t/01-test.t line 8. t/01-test.t ....... Dubious, test returned 255 (wstat 65280, 0xff00) No subtests run t/pod-coverage.t .. ok t/pod.t ........... skipped: Test::Pod 1.22 required for testing POD Test Summary Report ------------------- t/00-load.t (Wstat: 256 Tests: 2 Failed: 1) Failed test: 1 Non-zero exit status: 1 t/01-test.t (Wstat: 65280 Tests: 0 Failed: 0) Non-zero exit status: 255 Parse errors: No plan found in TAP output Files=4, Tests=3, 1 wallclock secs ( 0.06 usr 0.02 sys + 0.29 cusr 0.04 csys = 0.41 CPU) Result: FAIL -- Dominic Hargreaves | http://www.larted.org.uk/~dom/ PGP key 5178E2A5 from the.earth.li (keyserver,web,email) Thanks in advance, gregor herrmann, Debian Perl Group
Subject: AnyEvent-Connection: failure with perl 5.18
Attached is a patch which removes the escaping of { and } and fixes the build with perl 5.18
Subject: perl5.18-fixes.patch
Description: fix RE syntax error with perl 5.18 curly brackets need no escaping unless they form {a,b} notion Author: Damyan Ivanov <dmn@debian.org> Bug: https://rt.cpan.org/Ticket/Display.html?id=85967 Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=711425 --- a/lib/AnyEvent/Connection/Util.pm +++ b/lib/AnyEvent/Connection/Util.pm @@ -29,7 +29,7 @@ sub dumper (@) { ->Useqq(1) ->Quotekeys(0) ->Dump; - $s =~ s{\\x\{([a-f0-9]{1,4})\}}{chr hex $1}sge; + $s =~ s{\\x{([a-f0-9]{1,4})}}{chr hex $1}sge; $s; }; goto &{ caller().'::dumper' };
Show quoted text
> Attached is a patch which removes the escaping of { and } and fixes > the build with perl 5.18
Hi, Did you have a change to look at the patch? Would it be alright to include it in a future version of AnyEvent-Connection? Cheers, dam
На 02 септ. 2013, пн 23:53:18, DAM написа: Show quoted text
> Attached is a patch which removes the escaping of { and } and fixes > the build with perl 5.18
Some years later, perl 5.26 starts complaining about *non-escaped* left braces in regular expressions. So this ticket can be closed as invalid.