regex bug on arch

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

regex bug on arch

NightStrike
With the latest automake on archi linux, I get this:

Unescaped left brace in regex is deprecated, passed through in regex;
marked by <-- HERE in m/\${ <-- HERE ([^ \t=:+{}]+)}/ at
/usr/bin/automake line 3936.

Reply | Threaded
Open this post in threaded view
|

Re: regex bug on arch

Philipp Thomas
* NightStrike ([hidden email]) [20160506 18:50]:
> With the latest automake on archi linux,

Which is ('automake --version' tells you)?

> I get this:
> Unescaped left brace in regex is deprecated, passed through in regex;
> marked by <-- HERE in m/\${ <-- HERE ([^ \t=:+{}]+)}/ at
> /usr/bin/automake line 3936.

Reply | Threaded
Open this post in threaded view
|

Re: regex bug on arch

NightStrike
1.15
On May 9, 2016 4:38 AM, "Philipp Thomas" <[hidden email]> wrote:

> * NightStrike ([hidden email]) [20160506 18:50]:
> > With the latest automake on archi linux,
>
> Which is ('automake --version' tells you)?
>
> > I get this:
> > Unescaped left brace in regex is deprecated, passed through in regex;
> > marked by <-- HERE in m/\${ <-- HERE ([^ \t=:+{}]+)}/ at
> > /usr/bin/automake line 3936.
>
>
Reply | Threaded
Open this post in threaded view
|

Re: regex bug on arch

Philipp Thomas
* NightStrike ([hidden email]) [20160510 04:20]:


> 1.15

This has been fixed in git with commit
13f00eb4493c217269b76614759e452d8302955e :

diff --git a/bin/automake.in b/bin/automake.in
index a3a0aa3..2c8f31e 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;
 }

So either wait for the next release or apply the change to your
/usr/bin/automake.

hth
Philipp

Reply | Threaded
Open this post in threaded view
|

Re: regex bug on arch

NightStrike
Thanks!

On Tue, May 10, 2016 at 1:42 AM, Philipp Thomas <[hidden email]> wrote:

> * NightStrike ([hidden email]) [20160510 04:20]:
>
>
>> 1.15
>
> This has been fixed in git with commit
> 13f00eb4493c217269b76614759e452d8302955e :
>
> diff --git a/bin/automake.in b/bin/automake.in
> index a3a0aa3..2c8f31e 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;
>  }
>
> So either wait for the next release or apply the change to your
> /usr/bin/automake.
>
> hth
> Philipp
>