From fbb400bec13678e0db2dbb26e1d5570e30cae59a Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Mon, 28 Jul 2025 14:08:25 -0400 Subject: [PATCH] libplist: fix build with Cython 3.1 --- srcpkgs/libplist/patches/cython-3.1.patch | 22 ++++++++++++++++++++++ srcpkgs/libplist/template | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/libplist/patches/cython-3.1.patch diff --git a/srcpkgs/libplist/patches/cython-3.1.patch b/srcpkgs/libplist/patches/cython-3.1.patch new file mode 100644 index 00000000000..81752deb3f4 --- /dev/null +++ b/srcpkgs/libplist/patches/cython-3.1.patch @@ -0,0 +1,22 @@ +From d7fe479707af57aeedf7e41c08e7fb698cd2e2a3 Mon Sep 17 00:00:00 2001 +From: Nikias Bassen +Date: Tue, 13 May 2025 18:32:50 +0200 +Subject: [PATCH] cython: Fix build with cython 3.1+ + +--- + cython/plist.pyx | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/cython/plist.pyx b/cython/plist.pyx +index b5f4ef67..4d1f8aae 100644 +--- a/cython/plist.pyx ++++ b/cython/plist.pyx +@@ -851,7 +851,7 @@ cdef plist_t native_to_plist_t(object native): + return plist_new_string(native) + if isinstance(native, bool): + return plist_new_bool(native) +- if isinstance(native, int) or isinstance(native, long): ++ if isinstance(native, int): + return plist_new_uint(native) + if isinstance(native, float): + return plist_new_real(native) diff --git a/srcpkgs/libplist/template b/srcpkgs/libplist/template index cc04ce12370..12c8423fa9f 100644 --- a/srcpkgs/libplist/template +++ b/srcpkgs/libplist/template @@ -1,7 +1,7 @@ # Template file for 'libplist' pkgname=libplist version=2.2.0 -revision=5 +revision=6 build_style=gnu-configure configure_args="--disable-static" hostmakedepends="automake libtool pkgconf python3 python3-Cython"