This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Workaround for GNU Autoconf unescaped left brace
authorKarl Williamson <khw@cpan.org>
Mon, 10 Apr 2017 16:41:40 +0000 (10:41 -0600)
committerKarl Williamson <khw@cpan.org>
Tue, 18 Apr 2017 00:54:00 +0000 (18:54 -0600)
commit7335cb814c19345052a23bc4462c701ce734e6c5
tree106080acb46ea686656c97f0eb350a80c01a40dd
parentd07720777420713ab21c454e35fa4c04a729510b
Workaround for GNU Autoconf unescaped left brace

See [perl #130497]

GNU Autoconf depends on Perl, and will not work on Blead (and the
forthcoming Perl 5.26), due to a single unescaped '{', that has
previously been deprecated and is now fatal.  A patch for it has been in
the Autoconf repository since early 2013, but there has not been a
release since before then.

Because this is depended on by so much code, and because it is simpler
than trying to revert to making the fatality merely deprecated, this
patch simply changes perl to not die when compiled with the exact
pattern that trips up Autoconf.  Thus Autoconf can continue to work, but
any other patterns that use the now illegal construct will continue to
die.  If other code uses the exact pattern, they too will not die, but
the deprecation message continues to get raised.  The use of the left
brace in this particular pattern is not one where we envision using the
construct to mean something else, so a deprecation is suitable for the
foreseeable future.
regcomp.c
t/re/reg_mesg.t