From 468e1a1ab096385be0400fb519a0703c13ba29bb Mon Sep 17 00:00:00 2001 From: Nicholas Clark Date: Tue, 2 Aug 2022 08:20:11 +0200 Subject: bisect-runner.pl must stop Configure looping on "does not exit" This only affects a small range of commits in development releases, but without this change they can loop infinitely, rather than correctly skipping (or failing a build test). An infinite loop (with terminal output) is extremely unhelpful. --- Porting/bisect-runner.pl | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Porting') diff --git a/Porting/bisect-runner.pl b/Porting/bisect-runner.pl index 0d32799134..b825b9fe18 100755 --- a/Porting/bisect-runner.pl +++ b/Porting/bisect-runner.pl @@ -2507,6 +2507,18 @@ index 4b55fa6..60c3c64 100755 EOPATCH } + if ($major < 6) { + edit_file('Configure', sub { + my $code = shift; + # This will cause a build failure, but it will stop + # Configure looping endlessly trying to get a different + # answer: + $code =~ s{(dflt=)n(\n\s+rp="Function \$ans does not exist)} + {$1y$2}; + return $code; + }); + } + if ($major < 8 && $^O eq 'aix') { edit_file('Configure', sub { my $code = shift; -- cgit v1.2.1