Bug 2377057

Summary: urh fails to build with Cython 3.1.2
Product: [Fedora] Fedora Reporter: Charalampos Stratakis <cstratak>
Component: urhAssignee: Jaroslav Škarvada <jskarvad>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: jskarvad
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: urh-2.9.8-7.fc43 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-08-07 00:22:27 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: 2365167    

Description Charalampos Stratakis 2025-07-08 03:14:05 UTC
Hello,

We are planning to update Cython from 3.0.12 to 3.1.2 in Rawhide.

However urh fails to build with the latest Cython version.

You can inspect the build failures at https://copr.fedorainfracloud.org/coprs/cstratak/Cython-3.1.2/package/urh/

Let us know here if you have any questions.

We'd appreciate help from the people who know this package best, but if you don't want
to work on this now, let us know so we can try to work around it on our side.

Comment 1 Jaroslav Škarvada 2025-07-08 10:53:43 UTC
It seems it now doesn't like this:

        cdef chackrf.hackrf_device_list_t* device_list = chackrf.hackrf_device_list()
                                                                                   ^
------------------------------------------------------------

src/urh/dev/native/lib/hackrf.pyx:55:83: Cannot assign type 'hackrf_device_list' to 'hackrf_device_list_t *'

It's defined the following way:
    ctypedef struct hackrf_device_list:
        char ** serial_numbers
        hackrf_usb_board_id * usb_board_ids
        int *usb_device_index
        int devicecount

        void ** usb_devices
        int usb_devicecount

IMHO it's missing the implicit constructor. I checked the cython-3.1 changelog and I wasn't able to find anything related. How to write this now?

Comment 2 Charalampos Stratakis 2025-07-08 20:32:02 UTC
Maybe related? https://github.com/cython/cython/issues/6821

However I think just reporting to upstream should be sufficient for the time being.

Comment 3 Charalampos Stratakis 2025-07-31 00:09:13 UTC
PR: https://src.fedoraproject.org/rpms/urh/pull-request/5

Comment 4 Fedora Update System 2025-08-06 23:48:10 UTC
FEDORA-2025-a51326d153 (urh-2.9.8-7.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-a51326d153

Comment 5 Fedora Update System 2025-08-07 00:22:27 UTC
FEDORA-2025-a51326d153 (urh-2.9.8-7.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.