CVS commit: pkgsrc/devel/py-kivy

"Thomas Klausner" <[email protected]>
Newsgroups gmane.os.netbsd.devel.pkgsrc.cvs
Message-ID <[email protected]>
Module Name:	pkgsrc
Committed By:	wiz
Date:		Tue Aug 25 09:23:01 UTC 2026

Modified Files:
	pkgsrc/devel/py-kivy: Makefile distinfo
Added Files:
	pkgsrc/devel/py-kivy/patches: patch-kivy_graphics_instructions.pyx

Log Message:
py-kivy: fix build with Cython 3.3.0

Bump PKGREVISION.


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 pkgsrc/devel/py-kivy/Makefile
cvs rdiff -u -r1.5 -r1.6 pkgsrc/devel/py-kivy/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/devel/py-kivy/patches/patch-kivy_graphics_instructions.pyx

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
(unnamed) (text/x-diff, 2.5 KB)
Modified files:

Index: pkgsrc/devel/py-kivy/Makefile
diff -u pkgsrc/devel/py-kivy/Makefile:1.26 pkgsrc/devel/py-kivy/Makefile:1.27
--- pkgsrc/devel/py-kivy/Makefile:1.26	Mon Jul 13 04:35:34 2026
+++ pkgsrc/devel/py-kivy/Makefile	Tue Aug 25 09:23:00 2026
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.26 2026/07/13 04:35:34 wiz Exp $
+# $NetBSD: Makefile,v 1.27 2026/08/25 09:23:00 wiz Exp $
 
 DISTNAME=	Kivy-2.3.1
 PKGNAME=	${PYPKGPREFIX}-${DISTNAME:tl}
-PKGREVISION=	4
+PKGREVISION=	5
 CATEGORIES=	devel python
 MASTER_SITES=	${MASTER_SITE_PYPI:=K/Kivy/}
 

Index: pkgsrc/devel/py-kivy/distinfo
diff -u pkgsrc/devel/py-kivy/distinfo:1.5 pkgsrc/devel/py-kivy/distinfo:1.6
--- pkgsrc/devel/py-kivy/distinfo:1.5	Thu Jun 12 07:29:05 2025
+++ pkgsrc/devel/py-kivy/distinfo	Tue Aug 25 09:23:00 2026
@@ -1,8 +1,9 @@
-$NetBSD: distinfo,v 1.5 2025/06/12 07:29:05 wiz Exp $
+$NetBSD: distinfo,v 1.6 2026/08/25 09:23:00 wiz Exp $
 
 BLAKE2s (Kivy-2.3.1.tar.gz) = bc67e1d62d706dfe5c8f168960bf6b352db08539eb009993069dd7bf20b4de87
 SHA512 (Kivy-2.3.1.tar.gz) = f26983a6ccdc173d7d69f0c17a36dc8a4dfd31e4777363253b6bcbf549c44ff2d281e8529ff3ea6683fbfb1c16102bd436bb0433b00c23eb4084be30b3b487ad
 Size (Kivy-2.3.1.tar.gz) = 23967306 bytes
 SHA1 (patch-kivy_graphics_context__instructions.pyx) = 832277962827829929a90ee5feeb8da34d7051a9
+SHA1 (patch-kivy_graphics_instructions.pyx) = 36300574e45441df13b082bc7b3ad6dcb94f02d5
 SHA1 (patch-kivy_graphics_opengl.pyx) = 968074f0b413e5b1b267d8d126cbee1a10756f00
 SHA1 (patch-kivy_weakproxy.pyx) = 34214bdd35389edab5cc13e3009870b183ac6371

Added files:

Index: pkgsrc/devel/py-kivy/patches/patch-kivy_graphics_instructions.pyx
diff -u /dev/null pkgsrc/devel/py-kivy/patches/patch-kivy_graphics_instructions.pyx:1.1
--- /dev/null	Tue Aug 25 09:23:01 2026
+++ pkgsrc/devel/py-kivy/patches/patch-kivy_graphics_instructions.pyx	Tue Aug 25 09:23:01 2026
@@ -0,0 +1,18 @@
+$NetBSD: patch-kivy_graphics_instructions.pyx,v 1.1 2026/08/25 09:23:01 wiz Exp $
+
+Fix build with cython 3.3.0.
+
+--- kivy/graphics/instructions.pyx.orig	2026-08-25 09:19:15.547250579 +0000
++++ kivy/graphics/instructions.pyx
+@@ -895,10 +895,7 @@ cdef class RenderContext(Canvas):
+ 
+     cdef int apply(self) except -1:
+         cdef list keys
+-        if PY2:
+-            keys = self.state_stacks.keys()
+-        else:
+-            keys = list(self.state_stacks.keys())
++        keys = list(self.state_stacks.keys())
+ 
+         cdef RenderContext active_context = getActiveContext()
+         if self._use_parent_projection:
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.