libplist: fix build with Cython 3.1

This commit is contained in:
Andrew J. Hesford 2025-07-28 14:08:25 -04:00
parent ec8ef9ed0e
commit fbb400bec1
2 changed files with 23 additions and 1 deletions

View file

@ -0,0 +1,22 @@
From d7fe479707af57aeedf7e41c08e7fb698cd2e2a3 Mon Sep 17 00:00:00 2001
From: Nikias Bassen <nikias@gmx.li>
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(<bint>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)

View file

@ -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"