summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/intltool/intltool/perl-522-deprecations.patch
diff options
context:
space:
mode:
authorJussi Kukkonen <jussi.kukkonen@intel.com>2015-07-08 21:01:23 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-07-12 22:55:45 +0100
commit5d0f8a6db951844e4fd997baa89a459e40159760 (patch)
tree66a130b3ee65a13de998df59a450713c78631981 /meta/recipes-devtools/intltool/intltool/perl-522-deprecations.patch
parent450dd5a98eaa82b565222af7189d373cb3c8c258 (diff)
downloadpoky-5d0f8a6db951844e4fd997baa89a459e40159760.tar.gz
intltool: Upgrade 0.50.2 -> 0.51.0
* Remove uclibc.patch as the whole localedir guessing code has been removed upstream. * Add patch to fix deprecation warnings (and the resulting broken install paths) when using Perl 5.22 (RB) (From OE-Core rev: bebbcb10f467b40cc9a2fb64c824f2ef4142f7fe) Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/intltool/intltool/perl-522-deprecations.patch')
-rw-r--r--meta/recipes-devtools/intltool/intltool/perl-522-deprecations.patch55
1 files changed, 55 insertions, 0 deletions
diff --git a/meta/recipes-devtools/intltool/intltool/perl-522-deprecations.patch b/meta/recipes-devtools/intltool/intltool/perl-522-deprecations.patch
new file mode 100644
index 0000000000..eb52172e10
--- /dev/null
+++ b/meta/recipes-devtools/intltool/intltool/perl-522-deprecations.patch
@@ -0,0 +1,55 @@
1Perl 5.22 has deprecated some regex features, which causes warnings when
2intltool-update runs:
3
4Unescaped left brace in regex is deprecated, passed through in regex; marked by
5<-- HERE in m/^(.*)\${ <-- HERE ?([A-Z_]+)}?(.*)$/ at
6/data/poky-master/tmp/sysroots/x86_64-linux/usr/bin/intltool-update line 1065.
7
8Take a patch from Debian to solve this.
9
10Upstream-Status: Submitted (https://bugs.launchpad.net/intltool/+bug/1465010)
11Signed-off-by: Ross Burton <ross.burton@intel.com>
12
13--- intltool-0.51.0-ORIG/intltool-update.in 2015-05-27 00:20:43.038379963 +0200
14+++ intltool-0.51.0/intltool-update.in 2015-05-27 00:23:53.309078052 +0200
15@@ -1062,7 +1062,7 @@
16 }
17 }
18
19- if ($str =~ /^(.*)\${?([A-Z_]+)}?(.*)$/)
20+ if ($str =~ /^(.*)\$\{?([A-Z_]+)\}?(.*)$/)
21 {
22 my $rest = $3;
23 my $untouched = $1;
24@@ -1190,10 +1190,10 @@
25 $name =~ s/\(+$//g;
26 $version =~ s/\(+$//g;
27
28- $varhash{"PACKAGE_NAME"} = $name if (not $name =~ /\${?AC_PACKAGE_NAME}?/);
29- $varhash{"PACKAGE"} = $name if (not $name =~ /\${?PACKAGE}?/);
30- $varhash{"PACKAGE_VERSION"} = $version if (not $name =~ /\${?AC_PACKAGE_VERSION}?/);
31- $varhash{"VERSION"} = $version if (not $name =~ /\${?VERSION}?/);
32+ $varhash{"PACKAGE_NAME"} = $name if (not $name =~ /\$\{?AC_PACKAGE_NAME\}?/);
33+ $varhash{"PACKAGE"} = $name if (not $name =~ /\$\{?PACKAGE\}?/);
34+ $varhash{"PACKAGE_VERSION"} = $version if (not $name =~ /\$\{?AC_PACKAGE_VERSION\}?/);
35+ $varhash{"VERSION"} = $version if (not $name =~ /\$\{?VERSION\}?/);
36 }
37
38 if ($conf_source =~ /^AC_INIT\(([^,\)]+),([^,\)]+)[,]?([^,\)]+)?/m)
39@@ -1219,11 +1219,11 @@
40 $version =~ s/\(+$//g;
41 $bugurl =~ s/\(+$//g if (defined $bugurl);
42
43- $varhash{"PACKAGE_NAME"} = $name if (not $name =~ /\${?AC_PACKAGE_NAME}?/);
44- $varhash{"PACKAGE"} = $name if (not $name =~ /\${?PACKAGE}?/);
45- $varhash{"PACKAGE_VERSION"} = $version if (not $name =~ /\${?AC_PACKAGE_VERSION}?/);
46- $varhash{"VERSION"} = $version if (not $name =~ /\${?VERSION}?/);
47- $varhash{"PACKAGE_BUGREPORT"} = $bugurl if (defined $bugurl and not $bugurl =~ /\${?\w+}?/);
48+ $varhash{"PACKAGE_NAME"} = $name if (not $name =~ /\$\{?AC_PACKAGE_NAME\}?/);
49+ $varhash{"PACKAGE"} = $name if (not $name =~ /\$\{?PACKAGE\}?/);
50+ $varhash{"PACKAGE_VERSION"} = $version if (not $name =~ /\$\{?AC_PACKAGE_VERSION\}?/);
51+ $varhash{"VERSION"} = $version if (not $name =~ /\$\{?VERSION\}?/);
52+ $varhash{"PACKAGE_BUGREPORT"} = $bugurl if (defined $bugurl and not $bugurl =~ /\$\{?\w+\}?/);
53 }
54
55 # \s makes this not work, why? \ No newline at end of file