commit: 9c9864f2503d048030c09b7f5f823212664a9938 Author: Alfred Wingate <parona <AT> protonmail <DOT> com> AuthorDate: Sun May 25 15:04:59 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sun May 25 16:33:25 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c9864f2
dev-python/pyopengl-accelerate: fix cython 3.1.0 build Closes: https://bugs.gentoo.org/955533 Signed-off-by: Alfred Wingate <parona <AT> protonmail.com> Part-of: https://github.com/gentoo/gentoo/pull/42255 Closes: https://github.com/gentoo/gentoo/pull/42255 Signed-off-by: Sam James <sam <AT> gentoo.org> .../pyopengl-accelerate-3.1.9-cpython3.1.0.patch | 20 ++++++++++++++++++++ .../pyopengl-accelerate-3.1.9.ebuild | 4 ++++ 2 files changed, 24 insertions(+) diff --git a/dev-python/pyopengl-accelerate/files/pyopengl-accelerate-3.1.9-cpython3.1.0.patch b/dev-python/pyopengl-accelerate/files/pyopengl-accelerate-3.1.9-cpython3.1.0.patch new file mode 100644 index 000000000000..e4f5dae95701 --- /dev/null +++ b/dev-python/pyopengl-accelerate/files/pyopengl-accelerate-3.1.9-cpython3.1.0.patch @@ -0,0 +1,20 @@ +https://bugs.gentoo.org/955533 +https://github.com/mcfletch/pyopengl/issues/147 +https://github.com/mcfletch/pyopengl/pull/146 + +From 69e8ced15eb63c3f00293f59cef50d5fad02d884 Mon Sep 17 00:00:00 2001 +From: Vsevolod Misiul <[email protected]> +Date: Mon, 19 May 2025 14:46:00 +0300 +Subject: [PATCH] For linux on arm64 the long type is not defined, so grab it + from ctypes.c_long + +--- a/src/vbo.pyx ++++ b/src/vbo.pyx +@@ -1,6 +1,7 @@ + """Cython-coded VBO implementation""" + #cython: language_level=3 + import ctypes, weakref ++from ctypes import c_long as long + from OpenGL_accelerate.formathandler cimport FormatHandler + from OpenGL import error + from OpenGL._bytes import bytes,unicode diff --git a/dev-python/pyopengl-accelerate/pyopengl-accelerate-3.1.9.ebuild b/dev-python/pyopengl-accelerate/pyopengl-accelerate-3.1.9.ebuild index abb3efdffbdf..3a396e22c765 100644 --- a/dev-python/pyopengl-accelerate/pyopengl-accelerate-3.1.9.ebuild +++ b/dev-python/pyopengl-accelerate/pyopengl-accelerate-3.1.9.ebuild @@ -36,6 +36,10 @@ BDEPEND=" distutils_enable_tests pytest +PATCHES=( + "${FILESDIR}"/pyopengl-accelerate-3.1.9-cpython3.1.0.patch +) + src_configure() { if ! use numpy; then cat > "${T}"/numpy.py <<-EOF || die
