Bug 2089613 - perl-Switch-2.17-24.fc37 FTBFS: Bad given statement (problem in the code block?) near t/given.t line 21
Summary: perl-Switch-2.17-24.fc37 FTBFS: Bad given statement (problem in the code bloc...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: perl-Switch
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Petr Pisar
QA Contact: Fedora Extras Quality Assurance
URL: https://koschei.fedoraproject.org/pac...
Whiteboard:
Depends On:
Blocks: F37FTBFS 2090642
TreeView+ depends on / blocked
 
Reported: 2022-05-24 07:27 UTC by Petr Pisar
Modified: 2022-05-30 15:18 UTC (History)
2 users (show)

Fixed In Version: perl-Text-Balanced-2.05.01-1.fc37
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-30 15:18:40 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
CPAN 142923 0 None None None 2022-05-26 12:35:52 UTC

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().


Note You need to log in before you can comment on or make changes to this bug.