forked from p3ck/restraint
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
third-party: fix intltool build with Perl 5.26
See: https://bugzilla.redhat.com/show_bug.cgi?id=1462217 Change-Id: I856fbf392983ed753108973b0785486380b5df67
- Loading branch information
Showing
2 changed files
with
64 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
Description: Escape "{", to prevent complaints from perl 5.22 and 5.26 | ||
Author: Roderich Schupp <[email protected]> | ||
Author: gregor herrmann <[email protected]> | ||
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=788705 | ||
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=826471 | ||
Bug-Upstream: https://bugs.launchpad.net/intltool/+bug/1490906 | ||
|
||
Index: intltool-0.51.0/intltool-update.in | ||
=================================================================== | ||
--- intltool-0.51.0.orig/intltool-update.in 2017-07-23 17:24:35.113169465 +0200 | ||
+++ intltool-0.51.0/intltool-update.in 2017-07-23 17:24:35.109169052 +0200 | ||
@@ -1062,13 +1062,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"); | ||
} | ||
@@ -1190,10 +1190,10 @@ | ||
$name =~ s/\(+$//g; | ||
$version =~ 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) | ||
@@ -1219,11 +1219,11 @@ | ||
$version =~ s/\(+$//g; | ||
$bugurl =~ s/\(+$//g if (defined $bugurl); | ||
|
||
- $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_BUGREPORT"} = $bugurl if (defined $bugurl and not $bugurl =~ /\${?\w+}?/); | ||
+ $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_BUGREPORT"} = $bugurl if (defined $bugurl and not $bugurl =~ /\$\{?\w+}?/); | ||
} | ||
|
||
# \s makes this not work, why? |