Skip Menu |

This queue is for tickets about the Time-OlsonTZ-Download CPAN distribution.

Report information
The Basics
Id: 110676
Status: resolved
Priority: 0/
Queue: Time-OlsonTZ-Download

People
Owner: Nobody in particular
Requestors: ntyni [...] iki.fi
Cc:
AdminCc:

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



Subject: Unescaped left brace in regex is deprecated
This package warns when used with Perl 5.22. # Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/ # \nzonenames:[\ \t]+\$\(TDATA\)[\ \t]*\n # \t[\ \t]*\@\$\(AWK\)\ ' # /\^Zone/\ \{\ print\ \$\$2\ \} # \ /\^Link/\ { <-- HERE \ print\ \$\$3\ } # '\ \$\(TDATA\)[\ \t]*\n\n # / at /usr/share/perl5/Time/OlsonTZ/Download.pm line 716. Proposed patch attached.
Subject: 0001-Fix-regexp-syntax-for-Perl-5.22.patch
From fc4ff87223cc97e850b62063f5555d72a7d42da5 Mon Sep 17 00:00:00 2001 From: Niko Tyni <ntyni@debian.org> Date: Sun, 27 Dec 2015 21:26:24 +0200 Subject: [PATCH] Fix regexp syntax for Perl 5.22 Unescaped left brace in regex is deprecated, passed through in regex Bug-Debian: https://bugs.debian.org/809108 --- lib/Time/OlsonTZ/Download.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Time/OlsonTZ/Download.pm b/lib/Time/OlsonTZ/Download.pm index 1fc64a7..e66c59f 100644 --- a/lib/Time/OlsonTZ/Download.pm +++ b/lib/Time/OlsonTZ/Download.pm @@ -711,7 +711,7 @@ sub _ensure_standard_zonenames { \nzonenames:[\ \t]+\$\(TDATA\)[\ \t]*\n \t[\ \t]*\@\$\(AWK\)\ ' /\^Zone/\ \{\ print\ \$\$2\ \} - \ /\^Link/\ {\ print\ \$\$3\ } + \ /\^Link/\ \{\ print\ \$\$3\ } '\ \$\(TDATA\)[\ \t]*\n\n #x); } -- 2.6.4
On 2015-12-27 15:10:50, ntyni@iki.fi wrote: Show quoted text
> This package warns when used with Perl 5.22.
And with perl 5.25 this is a fatal error. Show quoted text
> # Unescaped left brace in regex is deprecated, passed through in > regex; marked by <-- HERE in m/ > # \nzonenames:[\ \t]+\$\(TDATA\)[\ \t]*\n > # \t[\ \t]*\@\$\(AWK\)\ ' > # /\^Zone/\ \{\ print\ \$\$2\ \} > # \ /\^Link/\ { <-- HERE \ print\ \$\$3\ } > # '\ \$\(TDATA\)[\ \t]*\n\n > # / at /usr/share/perl5/Time/OlsonTZ/Download.pm line 716. > > Proposed patch attached.
Fixed in T:OTZ:D 0.005, just uploaded to CPAN.