intltool-0.51.0-perl-5.26.patch 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. diff -Naur intltool-0.51.0.orig/intltool-update.in intltool-0.51.0/intltool-update.in
  2. --- intltool-0.51.0.orig/intltool-update.in 2015-03-09 02:39:54.000000000 +0100
  3. +++ intltool-0.51.0/intltool-update.in 2017-07-21 22:35:10.613631420 +0200
  4. @@ -1062,13 +1062,13 @@
  5. }
  6. }
  7. - if ($str =~ /^(.*)\${?([A-Z_]+)}?(.*)$/)
  8. + if ($str =~ /^(.*)\$\{?([A-Z_]+)}?(.*)$/)
  9. {
  10. my $rest = $3;
  11. my $untouched = $1;
  12. my $sub = "";
  13. # Ignore recursive definitions of variables
  14. - $sub = $varhash{$2} if defined $varhash{$2} and $varhash{$2} !~ /\${?$2}?/;
  15. + $sub = $varhash{$2} if defined $varhash{$2} and $varhash{$2} !~ /\$\{?$2}?/;
  16. return SubstituteVariable ("$untouched$sub$rest");
  17. }
  18. @@ -1190,10 +1190,10 @@
  19. $name =~ s/\(+$//g;
  20. $version =~ s/\(+$//g;
  21. - $varhash{"PACKAGE_NAME"} = $name if (not $name =~ /\${?AC_PACKAGE_NAME}?/);
  22. - $varhash{"PACKAGE"} = $name if (not $name =~ /\${?PACKAGE}?/);
  23. - $varhash{"PACKAGE_VERSION"} = $version if (not $name =~ /\${?AC_PACKAGE_VERSION}?/);
  24. - $varhash{"VERSION"} = $version if (not $name =~ /\${?VERSION}?/);
  25. + $varhash{"PACKAGE_NAME"} = $name if (not $name =~ /\$\{?AC_PACKAGE_NAME}?/);
  26. + $varhash{"PACKAGE"} = $name if (not $name =~ /\$\{?PACKAGE}?/);
  27. + $varhash{"PACKAGE_VERSION"} = $version if (not $name =~ /\$\{?AC_PACKAGE_VERSION}?/);
  28. + $varhash{"VERSION"} = $version if (not $name =~ /\$\{?VERSION}?/);
  29. }
  30. if ($conf_source =~ /^AC_INIT\(([^,\)]+),([^,\)]+)[,]?([^,\)]+)?/m)
  31. @@ -1219,11 +1219,11 @@
  32. $version =~ s/\(+$//g;
  33. $bugurl =~ s/\(+$//g if (defined $bugurl);
  34. - $varhash{"PACKAGE_NAME"} = $name if (not $name =~ /\${?AC_PACKAGE_NAME}?/);
  35. - $varhash{"PACKAGE"} = $name if (not $name =~ /\${?PACKAGE}?/);
  36. - $varhash{"PACKAGE_VERSION"} = $version if (not $name =~ /\${?AC_PACKAGE_VERSION}?/);
  37. - $varhash{"VERSION"} = $version if (not $name =~ /\${?VERSION}?/);
  38. - $varhash{"PACKAGE_BUGREPORT"} = $bugurl if (defined $bugurl and not $bugurl =~ /\${?\w+}?/);
  39. + $varhash{"PACKAGE_NAME"} = $name if (not $name =~ /\$\{?AC_PACKAGE_NAME}?/);
  40. + $varhash{"PACKAGE"} = $name if (not $name =~ /\$\{?PACKAGE}?/);
  41. + $varhash{"PACKAGE_VERSION"} = $version if (not $name =~ /\$\{?AC_PACKAGE_VERSION}?/);
  42. + $varhash{"VERSION"} = $version if (not $name =~ /\$\{?VERSION}?/);
  43. + $varhash{"PACKAGE_BUGREPORT"} = $bugurl if (defined $bugurl and not $bugurl =~ /\$\{?\w+}?/);
  44. }
  45. # \s makes this not work, why?