Running automake with perl >= 5.22.0 produces the warning Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\${ <-- HERE ([^ \t=:+{}]+)}/ at /ptx/work/dude/ejo/temptest/nodistro.0/sysroots/x86_64-oesdk-linux/usr/bin/automake line 3936.
With perl-5.22.0 using a literal '{' in regexp is deprecated and should be escaped. This patch escapes the '{' characters to match in the regex of function `substitute_ac_subst_variables_worker`. Signed-off-by: Enrico Jorns <e...@pengutronix.de> --- bin/automake.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/automake.in b/bin/automake.in index c1d1a8a..2a690e6 100644 --- a/bin/automake.in +++ b/bin/automake.in @@ -3741,7 +3741,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; } -- 2.6.4