Bug 2094281 - cyrus-imapd-3.2.6-10.fc37: FTBFS with Perl 5.36
Summary: cyrus-imapd-3.2.6-10.fc37: FTBFS with Perl 5.36
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: cyrus-imapd
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Martin Osvald 🛹
QA Contact: Fedora Extras Quality Assurance
URL: https://koschei.fedoraproject.org/pac...
Whiteboard:
Depends On:
Blocks: F37FTBFS
TreeView+ depends on / blocked
 
Reported: 2022-06-07 10:42 UTC by Jitka Plesnikova
Modified: 2022-06-09 15:38 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-06-09 15:38:33 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github cyrusimap cyrus-imapd issues 4123 0 None open our assert() is not compatible with the C one, and breaks in edge cases 2022-06-07 13:14:28 UTC

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


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