Bug 2377057 - urh fails to build with Cython 3.1.2
Summary: urh fails to build with Cython 3.1.2
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: urh
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jaroslav Škarvada
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2365167
TreeView+ depends on / blocked
 
Reported: 2025-07-08 03:14 UTC by Charalampos Stratakis
Modified: 2025-08-07 00:22 UTC (History)
1 user (show)

Fixed In Version: urh-2.9.8-7.fc43
Clone Of:
Environment:
Last Closed: 2025-08-07 00:22:27 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github jopohl urh pull 1183 0 None open Fix compilation with Cython 3.1 2025-07-31 00:06:49 UTC

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.


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