summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPsychoXIVI <psychoxivi@gmail.com>2018-06-11 18:31:29 (GMT)
committerTony Theodore <tonyt@logyst.com>2018-06-20 04:12:24 (GMT)
commit10c9aa5d78496f4a79629108f932a1702a2288d0 (patch)
treef292cf8bf14c7cce6140070c04444861018b9f4e
parent29e7257a780df3806ae24a0536d032e91748f9d4 (diff)
downloadmxe-10c9aa5d78496f4a79629108f932a1702a2288d0.zip
mxe-10c9aa5d78496f4a79629108f932a1702a2288d0.tar.gz
mxe-10c9aa5d78496f4a79629108f932a1702a2288d0.tar.bz2
automake: fix deprecated syntax for newer perl versions
-rw-r--r--plugins/native/automake-1-fixes.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/plugins/native/automake-1-fixes.patch b/plugins/native/automake-1-fixes.patch
new file mode 100644
index 0000000..1ce1f1f
--- /dev/null
+++ b/plugins/native/automake-1-fixes.patch
@@ -0,0 +1,28 @@
+This file is part of MXE. See LICENSE.md for licensing information.
+
+Contains ad hoc patches for cross building.
+
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Patryk (PsychoX) Ludwikowski <psychoxivi@gmail.com>
+Date: Sun, 10 Jun 2018 06:49:41 +0000
+Subject: [PATCH 1/1] Avoids deprecated syntax that causes failure in newer versions of Perl.
+
+Contains patch for using too new Perl. Avoids deprecated syntax that causes failure in newer versions of Perl. More info at https://github.com/mxe/mxe/issues/2140
+
+Backported from:
+http://git.savannah.gnu.org/cgit/automake.git/commit/?id=13f00eb4493c217269b76614759e452d8302955e
+Original author: Paul Eggert <eggert@cs.ucla.edu>
+Signed-off-by: Adam Duskett <aduskett@gmail.com>
+
+diff --git a/bin/automake.in b/bin/automake.in
+index 1111111..2222222 100644
+--- a/bin/automake.in
++++ b/bin/automake.in
+@@ -3878,7 +3878,7 @@ sub substitute_ac_subst_variables_worker
+ sub substitute_ac_subst_variables
+ {
+ my ($text) = @_;
+- $text =~ s/\${([^ \t=:+{}]+)}/substitute_ac_subst_variables_worker ($1)/ge;
++ $text =~ s/\$[{]([^ \t=:+{}]+)}/substitute_ac_subst_variables_worker ($1)/ge;
+ return $text;
+ }