[libical-parser-sax-perl] 06/08: patch precedence issue (return $a or die) in iCal::Parser::SAX
Damyan Ivanov
dmn at moszumanska.debian.org
Tue Jun 9 20:18:09 UTC 2015
This is an automated email from the git hooks/post-receive script.
dmn pushed a commit to branch master
in repository libical-parser-sax-perl.
commit 7041ce73596b9ab1457120a352d9e4a46dc7eab0
Author: Damyan Ivanov <dmn at debian.org>
Date: Tue Jun 9 20:12:46 2015 +0000
patch precedence issue (return $a or die) in iCal::Parser::SAX
---
debian/patches/precedence.patch | 32 ++++++++++++++++++++++++++++++++
debian/patches/series | 2 ++
2 files changed, 34 insertions(+)
diff --git a/debian/patches/precedence.patch b/debian/patches/precedence.patch
new file mode 100644
index 0000000..b64c36d
--- /dev/null
+++ b/debian/patches/precedence.patch
@@ -0,0 +1,32 @@
+Description: possible precedence problem warning with perl 5.20
+ From perl5200delta:
+ · Possible precedence issue with control flow operator
+ .
+ (W syntax) There is a possible problem with the mixing of a
+ control flow operator (e.g. "return") and a low-precedence
+ operator like "or". Consider:
+ .
+ sub { return $a or $b; }
+ .
+ This is parsed as:
+ .
+ sub { (return $a) or $b; }
+ .
+ Which is effectively just:
+ .
+ sub { return $a; }
+Author: Damyan Ivanov <dmn at debian.org>
+Forwarded: https://rt.cpan.org/Ticket/Display.html?id=105135
+Bug: https://rt.cpan.org/Ticket/Display.html?id=105135
+
+--- a/lib/iCal/Parser/SAX.pm
++++ b/lib/iCal/Parser/SAX.pm
+@@ -64,7 +64,7 @@ sub __systemid_to_fh {
+ }
+ return IO::String->new($res->content);
+ } else {
+- return IO::File->new($sysid,'r') or die "Can't open $sysid, $!\n";
++ return( IO::File->new($sysid,'r') or die "Can't open $sysid, $!\n" );
+ }
+ }
+ sub parse_hash {
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..bf9e38a
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+precedence.patch
+examples-interpreter.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libical-parser-sax-perl.git
More information about the Pkg-perl-cvs-commits
mailing list