GNU bug report logs -
#22372
[PATCH] automake.in: fix deprecated regex syntax
Previous Next
Reported by: Enrico Jorns <ejo <at> pengutronix.de>
Date: Thu, 14 Jan 2016 16:03:02 UTC
Severity: normal
Tags: fixed, patch
Merged with 21001
Done: Mathieu Lirzin <mthl <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 22372 in the body.
You can then email your comments to 22372 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-automake <at> gnu.org
:
bug#22372
; Package
automake
.
(Thu, 14 Jan 2016 16:03:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Enrico Jorns <ejo <at> pengutronix.de>
:
New bug report received and forwarded. Copy sent to
bug-automake <at> gnu.org
.
(Thu, 14 Jan 2016 16:03:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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 <ejo <at> 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
Information forwarded
to
bug-automake <at> gnu.org
:
bug#22372
; Package
automake
.
(Fri, 15 Jan 2016 13:28:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 22372 <at> debbugs.gnu.org (full text, mbox):
Enrico Jorns <ejo <at> pengutronix.de> skribis:
> 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`.
I confirm that this solves the problem.
This had previously been reported at
<https://lists.gnu.org/archive/html/automake-patches/2015-07/msg00000.html>.
I think it would be nice to apply it and put up a 1.15.1 release because
more and more people will hit this issue.
WDYT?
Ludo’.
Merged 21001 22372.
Request was from
Jaap Keuter <jaap.keuter <at> xs4all.nl>
to
control <at> debbugs.gnu.org
.
(Sun, 24 Jan 2016 16:32:01 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-automake <at> gnu.org
:
bug#22372
; Package
automake
.
(Sun, 16 Jul 2017 13:25:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 22372 <at> debbugs.gnu.org (full text, mbox):
Hello,
ludo <at> gnu.org (Ludovic Courtès) writes:
> Enrico Jorns <ejo <at> pengutronix.de> skribis:
>
>> 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`.
>
> I confirm that this solves the problem.
>
> This had previously been reported at
> <https://lists.gnu.org/archive/html/automake-patches/2015-07/msg00000.html>.
> I think it would be nice to apply it and put up a 1.15.1 release because
> more and more people will hit this issue.
This has been fixed in Automake 1.15.1. I am closing this bug.
Thanks.
--
Mathieu Lirzin
GPG: F2A3 8D7E EB2B 6640 5761 070D 0ADE E100 9460 4D37
Added tag(s) fixed.
Request was from
Mathieu Lirzin <mthl <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Sun, 16 Jul 2017 13:25:04 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
21001 <at> debbugs.gnu.org and Pavel Raiskup <praiskup <at> redhat.com>
Request was from
Mathieu Lirzin <mthl <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Sun, 16 Jul 2017 13:25:04 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 14 Aug 2017 11:24:03 GMT)
Full text and
rfc822 format available.
bug unarchived.
Request was from
Mathieu Lirzin <mthl <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Mon, 06 Nov 2017 22:17:03 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 05 Dec 2017 12:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 6 years and 153 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.