Bug 2094281

Summary: cyrus-imapd-3.2.6-10.fc37: FTBFS with Perl 5.36
Product: [Fedora] Fedora Reporter: Jitka Plesnikova <jplesnik>
Component: cyrus-imapdAssignee: Martin Osvald 🛹 <mosvald>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: jorton, j, mosvald, pavel, vanmeeuwen+fedora, zdohnal
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://koschei.fedoraproject.org/package/cyrus-imapd
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-06-09 15:38:33 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    

Description Jitka Plesnikova 2022-06-07 10:42:39 UTC
Description of problem:
Package cyrus-imapd fails to build from source with Perl 5.36 in Fedora Rawhide with error:

In file included from /usr/lib64/perl5/CORE/perl.h:3855,
                 from managesieve.xs:46:
/usr/lib64/perl5/CORE/sv_inline.h: In function 'Perl_newSV_type':
../../../lib/assert.h:47:25: error: expected expression before '{' token
   47 | #define assert(ex)      {if (!(ex))assertionfailed(__FILE__, __LINE__, #ex);}
      |                         ^
/usr/lib64/perl5/CORE/handy.h:2787:28: note: in expansion of macro 'assert'
 2787 | #define perl_assert_ptr(p) assert( ((void*)(p)) != 0 )
      |                            ^~~~~~

Additional info and logs:
This package is tracked by Koschei. See:
https://koschei.fedoraproject.org/package/cyrus-imapd

Comment 1 Martin Osvald 🛹 2022-06-07 13:15:36 UTC
Thanks for reporting this issue Jitka!

Comment 2 Martin Osvald 🛹 2022-06-07 13:41:14 UTC
With this patch:

https://github.com/omniosorg/omnios-extra/pull/1120/commits/fbd1b6bf2bdf13a171fce67eb5a3c483d3a67941

I am able to scratch build the upcoming 3.4.3 version using Perl 5.36 without the assert() issue:

https://koji.fedoraproject.org/koji/taskinfo?taskID=87980867

Comment 3 Martin Osvald 🛹 2022-06-09 15:38:33 UTC
https://bodhi.fedoraproject.org/updates/FEDORA-2022-fc6bb4d41b