urh: fix build with Cython 3.1

This commit is contained in:
Andrew J. Hesford 2025-07-28 16:42:32 -04:00
parent a2513f1a20
commit 0974e61965
2 changed files with 21 additions and 1 deletions

View file

@ -0,0 +1,20 @@
--- a/src/urh/dev/native/lib/chackrf.pxd
+++ b/src/urh/dev/native/lib/chackrf.pxd
@@ -54,7 +54,7 @@
uint32_t part_id[2]
uint32_t serial_no[4]
- ctypedef struct hackrf_device_list:
+ ctypedef struct c_hackrf_device_list "hackrf_device_list":
char ** serial_numbers
hackrf_usb_board_id * usb_board_ids
int *usb_device_index
@@ -63,7 +63,7 @@
void ** usb_devices
int usb_devicecount
- ctypedef hackrf_device_list hackrf_device_list_t;
+ ctypedef c_hackrf_device_list hackrf_device_list_t;
ctypedef int (*hackrf_sample_block_cb_fn)(hackrf_transfer* transfer)

View file

@ -1,7 +1,7 @@
# Template file for 'urh' # Template file for 'urh'
pkgname=urh pkgname=urh
version=2.9.8 version=2.9.8
revision=1 revision=2
build_style=python3-module build_style=python3-module
hostmakedepends="python3-setuptools python3-Cython python3-numpy" hostmakedepends="python3-setuptools python3-Cython python3-numpy"
makedepends="python3-devel python3-PyQt5 libairspy-devel librtlsdr-devel makedepends="python3-devel python3-PyQt5 libairspy-devel librtlsdr-devel