0121-automake-import-upstream-fix-for-perl-5.26.patch 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. From: Daniel Golle <daniel@makrotopia.org>
  2. Date: Wed, 7 Jun 2017 19:39:33 +0200
  3. Subject: automake: import upstream fix for perl 5.26
  4. Build broke as distributions now include Perl 5.26 and automake
  5. triggered an "Unescaped left brace in regex" error.
  6. Import upstream commit 13f00eb449 to fix that.
  7. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
  8. diff --git a/tools/automake/patches/010-automake-port-to-Perl-5.22-and-later.patch b/tools/automake/patches/010-automake-port-to-Perl-5.22-and-later.patch
  9. new file mode 100644
  10. index 0000000000000000000000000000000000000000..31b9273d547145e5ecbeaef20a1e82cc9292fdc2
  11. --- /dev/null
  12. +++ b/tools/automake/patches/010-automake-port-to-Perl-5.22-and-later.patch
  13. @@ -0,0 +1,30 @@
  14. +From 13f00eb4493c217269b76614759e452d8302955e Mon Sep 17 00:00:00 2001
  15. +From: Paul Eggert <eggert@cs.ucla.edu>
  16. +Date: Thu, 31 Mar 2016 16:35:29 -0700
  17. +Subject: [PATCH] automake: port to Perl 5.22 and later
  18. +
  19. +Without this change, Perl 5.22 complains "Unescaped left brace in
  20. +regex is deprecated" and this is planned to become a hard error in
  21. +Perl 5.26. See:
  22. +http://search.cpan.org/dist/perl-5.22.0/pod/perldelta.pod#A_literal_%22{%22_should_now_be_escaped_in_a_pattern
  23. +* bin/automake.in (substitute_ac_subst_variables): Escape left brace.
  24. +---
  25. + bin/automake.in | 2 +-
  26. + 1 file changed, 1 insertion(+), 1 deletion(-)
  27. +
  28. +diff --git a/bin/automake.in b/bin/automake.in
  29. +index a3a0aa318..2c8f31e14 100644
  30. +--- a/bin/automake.in
  31. ++++ b/bin/automake.in
  32. +@@ -3878,7 +3878,7 @@ sub substitute_ac_subst_variables_worker
  33. + sub substitute_ac_subst_variables
  34. + {
  35. + my ($text) = @_;
  36. +- $text =~ s/\${([^ \t=:+{}]+)}/substitute_ac_subst_variables_worker ($1)/ge;
  37. ++ $text =~ s/\$[{]([^ \t=:+{}]+)}/substitute_ac_subst_variables_worker ($1)/ge;
  38. + return $text;
  39. + }
  40. +
  41. +--
  42. +2.13.1
  43. +