Bug 2276620

Summary: perl-Curses fails to build on i686 architecture
Product: [Fedora] Fedora Reporter: Steve Traylen <steve.traylen>
Component: perl-CursesAssignee: Steve Traylen <steve.traylen>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: paul, perl-devel, steve.traylen
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: perl-Curses-1.44-7.fc41 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-04-25 09:54:23 UTC Type: ---
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: 179258, 2261448    
Attachments:
Description Flags
Patch to fix compilation none

Description Steve Traylen 2024-04-23 10:45:05 UTC
perl-Curses-1.44-5.fc41  fails to build in Rawhide but only on i686.

Error is:

CursesFunWide.c: In function ‘XS_CURSES_addstring’:
CursesFunWide.c:117:26: error: passing argument 2 of ‘waddnwstr’ from incompatible pointer type [-Wincompatible-pointer-types]
  117 |     ret = waddnwstr(win, wstr, len);
      |                          ^~~~
      |                          |
      |                          wint_t * {aka unsigned int *}
In file included from c-config.h:7,
                 from Curses.c:18:


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

Reproducible: Always

Steps to Reproduce:
1. Build package on i686 in a scratch build
2.
3.
Actual Results:  
Does not compile

Expected Results:  
Should compile

Comment 1 Paul Howarth 2024-04-24 11:41:22 UTC
Created attachment 2028811 [details]
Patch to fix compilation

Attached patch fixes the compiler errors and a scratch build succeeded on all architectures but since the test suite isn't very extensive, it's hard to say if it's correct.

Comment 2 Fedora Update System 2024-04-25 09:51:47 UTC
FEDORA-2024-1e7e19e4d4 (perl-Curses-1.44-7.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-1e7e19e4d4

Comment 3 Fedora Update System 2024-04-25 09:54:23 UTC
FEDORA-2024-1e7e19e4d4 (perl-Curses-1.44-7.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.