[liblocales-perl] 02/04: Add patch from upstream Git to fix deprecation warning under Perl 5.22.
gregor herrmann
gregoa at debian.org
Mon Dec 28 01:54:17 UTC 2015
This is an automated email from the git hooks/post-receive script.
gregoa pushed a commit to branch master
in repository liblocales-perl.
commit 6a6921d1b9235445c2db25decf6011a674e1f69c
Author: gregor herrmann <gregoa at debian.org>
Date: Mon Dec 28 02:48:06 2015 +0100
Add patch from upstream Git to fix deprecation warning under Perl 5.22.
Closes: #809099
---
.../fix_deprecation_warning_under_perl_5.22.patch | 18 ++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 19 insertions(+)
diff --git a/debian/patches/fix_deprecation_warning_under_perl_5.22.patch b/debian/patches/fix_deprecation_warning_under_perl_5.22.patch
new file mode 100644
index 0000000..22023b7
--- /dev/null
+++ b/debian/patches/fix_deprecation_warning_under_perl_5.22.patch
@@ -0,0 +1,18 @@
+From 0a117fa210c30ecee5f0f5768c194a92e29b01a3 Mon Sep 17 00:00:00 2001
+From: Rufus Cable <rufus at threebytesfull.com>
+Date: Thu, 30 Jul 2015 15:41:13 +0100
+Subject: [PATCH] Fix deprecation warning under Perl 5.22
+Bug-Debian: https://bugs.debian.org/809099
+
+
+--- a/lib/Locales.pm
++++ b/lib/Locales.pm
+@@ -1013,7 +1013,7 @@
+ sub plural_rule_string_to_javascript_code {
+ my ( $plural_rule_string, $return ) = @_;
+ my $perl = plural_rule_string_to_code( $plural_rule_string, $return );
+- $perl =~ s/sub { /function (n) {/;
++ $perl =~ s/sub \{ /function (n) {/;
+ $perl =~ s/\$_\[0\]/n/g;
+ $perl =~ s/ \(n \% ([0-9]+)\) \+ \(n-int\(n\)\) /n % $1/g;
+ $perl =~ s/int\(/parseInt\(/g;
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..38a423b
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+fix_deprecation_warning_under_perl_5.22.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/liblocales-perl.git
More information about the Pkg-perl-cvs-commits
mailing list