From: Karl Berry Date: Thu, 21 Dec 2023 23:46:43 +0000 (-0800) Subject: automake: avoid unnecessary use of \K. X-Git-Tag: v1.16.90~49 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=95c0aa1825a1d4c1510393a5829552b55ebb7f13;p=thirdparty%2Fautomake.git automake: avoid unnecessary use of \K. This fixes (part of) https://bugs.gnu.org/67891 and follows up on https://bugs.gnu.org/55025. * bin/automake.in (generate_makefile) : avoid use of \K when removing comment and blank lines before a .POSIX target, since Solaris 10 has perl 5.8.4, and \K was added in 5.10. --- diff --git a/bin/automake.in b/bin/automake.in index 0a9b4a3e2..26c9f46b1 100644 --- a/bin/automake.in +++ b/bin/automake.in @@ -8132,7 +8132,7 @@ sub generate_makefile # otherwise, the behavior of "make" is unspecified by POSIX. if (option 'posix') { - $output =~ s/^((#.*)?\n)*\K/.POSIX:\n\n/; + $output =~ s/^((#.*)?\n)*/.POSIX:\n\n/; } # Decide whether we must update the output file or not.