Control: tag -1 + patch On Mon, 24 Jul 2017 20:22:15 +0200, gregor herrmann wrote:
> Cf. #826471 in intltool which contains a patch. > > I haven't looked if/how far it needs to be adadpted for the old > embedded versions of intltool-update but it might serve as a starting > point. Here's a debdiff with a patch for intltool-update.in. Cheers, gregor -- .''`. https://info.comodo.priv.at/ - Debian Developer https://www.debian.org : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D 85FA BB3A 6801 8649 AA06 `. `' Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe `- NP: Juilliard Ensemble, Berberian,: Différences
diff -Nru gnome-specimen-0.4/debian/changelog gnome-specimen-0.4/debian/changelog --- gnome-specimen-0.4/debian/changelog 2011-11-12 04:57:42.000000000 +0100 +++ gnome-specimen-0.4/debian/changelog 2017-07-25 00:22:22.000000000 +0200 @@ -1,3 +1,12 @@ +gnome-specimen (0.4-8.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix "Local copy of intltool-* fails with perl 5.26": + add patch to escape literal left braces in regexp in intltool-update.in. + (Closes: #869583) + + -- gregor herrmann <gre...@debian.org> Tue, 25 Jul 2017 00:22:22 +0200 + gnome-specimen (0.4-8) unstable; urgency=low * debian/control: diff -Nru gnome-specimen-0.4/debian/patches/02_unescaped_left_brace.diff gnome-specimen-0.4/debian/patches/02_unescaped_left_brace.diff --- gnome-specimen-0.4/debian/patches/02_unescaped_left_brace.diff 1970-01-01 01:00:00.000000000 +0100 +++ gnome-specimen-0.4/debian/patches/02_unescaped_left_brace.diff 2017-07-25 00:22:22.000000000 +0200 @@ -0,0 +1,55 @@ +Description: Fix "Unescaped left brace in regex is illegal" errors with perl 5.26 +Origin: vendor +Bug: https://bugs.debian.org/869583 +Forwarded: no +Author: gregor herrmann <gre...@debian.org> +Last-Update: 2017-07-25 + +--- a/intltool-update.in ++++ b/intltool-update.in +@@ -947,13 +947,13 @@ + } + } + +- if ($str =~ /^(.*)\${?([A-Z_]+)}?(.*)$/) ++ if ($str =~ /^(.*)\$\{?([A-Z_]+)}?(.*)$/) + { + my $rest = $3; + my $untouched = $1; + my $sub = ""; + # Ignore recursive definitions of variables +- $sub = $varhash{$2} if defined $varhash{$2} and $varhash{$2} !~ /\${?$2}?/; ++ $sub = $varhash{$2} if defined $varhash{$2} and $varhash{$2} !~ /\$\{?$2}?/; + + return SubstituteVariable ("$untouched$sub$rest"); + } +@@ -1071,10 +1071,10 @@ + ($name, $version) = ($1, $2); + $name =~ s/[\[\]\s]//g; + $version =~ s/[\[\]\s]//g; +- $varhash{"PACKAGE_NAME"} = $name if (not $name =~ /\${?AC_PACKAGE_NAME}?/); +- $varhash{"PACKAGE"} = $name if (not $name =~ /\${?PACKAGE}?/); +- $varhash{"PACKAGE_VERSION"} = $version if (not $name =~ /\${?AC_PACKAGE_VERSION}?/); +- $varhash{"VERSION"} = $version if (not $name =~ /\${?VERSION}?/); ++ $varhash{"PACKAGE_NAME"} = $name if (not $name =~ /\$\{?AC_PACKAGE_NAME}?/); ++ $varhash{"PACKAGE"} = $name if (not $name =~ /\$\{?PACKAGE}?/); ++ $varhash{"PACKAGE_VERSION"} = $version if (not $name =~ /\$\{?AC_PACKAGE_VERSION}?/); ++ $varhash{"VERSION"} = $version if (not $name =~ /\$\{?VERSION}?/); + } + + if ($conf_source =~ /^AC_INIT\(([^,\)]+),([^,\)]+)/m) +@@ -1082,10 +1082,10 @@ + ($name, $version) = ($1, $2); + $name =~ s/[\[\]\s]//g; + $version =~ s/[\[\]\s]//g; +- $varhash{"PACKAGE_NAME"} = $name if (not $name =~ /\${?AC_PACKAGE_NAME}?/); +- $varhash{"PACKAGE"} = $name if (not $name =~ /\${?PACKAGE}?/); +- $varhash{"PACKAGE_VERSION"} = $version if (not $name =~ /\${?AC_PACKAGE_VERSION}?/); +- $varhash{"VERSION"} = $version if (not $name =~ /\${?VERSION}?/); ++ $varhash{"PACKAGE_NAME"} = $name if (not $name =~ /\$\{?AC_PACKAGE_NAME}?/); ++ $varhash{"PACKAGE"} = $name if (not $name =~ /\$\{?PACKAGE}?/); ++ $varhash{"PACKAGE_VERSION"} = $version if (not $name =~ /\$\{?AC_PACKAGE_VERSION}?/); ++ $varhash{"VERSION"} = $version if (not $name =~ /\$\{?VERSION}?/); + } + + # \s makes this not work, why? diff -Nru gnome-specimen-0.4/debian/patches/series gnome-specimen-0.4/debian/patches/series --- gnome-specimen-0.4/debian/patches/series 2010-02-09 06:17:41.000000000 +0100 +++ gnome-specimen-0.4/debian/patches/series 2017-07-25 00:22:22.000000000 +0200 @@ -1 +1,2 @@ 01_pt_translation.diff +02_unescaped_left_brace.diff
signature.asc
Description: Digital Signature