Bug 2089613

Summary: perl-Switch-2.17-24.fc37 FTBFS: Bad given statement (problem in the code block?) near t/given.t line 21
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: perl-SwitchAssignee: Petr Pisar <ppisar>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: perl-devel, spotrh
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://koschei.fedoraproject.org/package/perl-Switch
Whiteboard:
Fixed In Version: perl-Text-Balanced-2.05.01-1.fc37 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-30 15:18:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2045102, 2090642    

Description Petr Pisar 2022-05-24 07:27:01 UTC
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.

Comment 1 Petr Pisar 2022-05-24 07:33:05 UTC
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

Comment 2 Tom "spot" Callaway 2022-05-24 13:09:08 UTC
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.

Comment 3 Petr Pisar 2022-05-30 15:18:40 UTC
Text::Balanced upstream restored compatibility of the internal _match_codeblock().