From 0974e6196540840877721f8ef16b00202e4164f7 Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Mon, 28 Jul 2025 16:42:32 -0400 Subject: [PATCH] urh: fix build with Cython 3.1 --- srcpkgs/urh/patches/cython-3.1.patch | 20 ++++++++++++++++++++ srcpkgs/urh/template | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/urh/patches/cython-3.1.patch diff --git a/srcpkgs/urh/patches/cython-3.1.patch b/srcpkgs/urh/patches/cython-3.1.patch new file mode 100644 index 00000000000..c8ecb5b6018 --- /dev/null +++ b/srcpkgs/urh/patches/cython-3.1.patch @@ -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) + diff --git a/srcpkgs/urh/template b/srcpkgs/urh/template index 64c93f19ccc..f4a5d98cc9d 100644 --- a/srcpkgs/urh/template +++ b/srcpkgs/urh/template @@ -1,7 +1,7 @@ # Template file for 'urh' pkgname=urh version=2.9.8 -revision=1 +revision=2 build_style=python3-module hostmakedepends="python3-setuptools python3-Cython python3-numpy" makedepends="python3-devel python3-PyQt5 libairspy-devel librtlsdr-devel