perl-Switch-2.17-24.fc37 fails to build in Fedora 37 because tests fail like this: $ perl -I/home/test/fedora/perl-Text-Balanced/Text-Balanced-2.05/lib/ -I. t/given.t Bad given statement (problem in the code block?) near t/given.t line 21 This is triggered by upgrading perl-Text-Balanced from 2.04-479.fc36 to 2.05-1.fc37.
Bisected to this Text-Balanced upstream's commit: commit 7bbb21936fc20ac71c820847e586999c79b3c723 (HEAD, refs/bisect/bad) Author: Ed J <mohawk2.github.com> Date: Thu Mar 3 06:33:35 2022 +0000 _match_codeblock regex inputs pre-compiled
It feels very much like Switch is unmaintained upstream. I tried making what seemed like the corresponding fix, but it did not resolve the issue. Any help would be greatly appreciated here.
Text::Balanced upstream restored compatibility of the internal _match_codeblock().