diff --git a/srcpkgs/python3-pivy/patches/python3.12.patch b/srcpkgs/python3-pivy/patches/python3.12.patch new file mode 100644 index 00000000000..6742d757952 --- /dev/null +++ b/srcpkgs/python3-pivy/patches/python3.12.patch @@ -0,0 +1,23 @@ +From d3faf04b8770c60ca9b2186059ee82201e3620ad Mon Sep 17 00:00:00 2001 +From: lorenz +Date: Thu, 13 Jul 2023 23:59:17 +0200 +Subject: [PATCH] python 3.12 support + +PyUnicode_GET_SIZE -> PyUnicode_GET_LENGTH +--- + Inventor/SoInput.i | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Inventor/SoInput.i b/Inventor/SoInput.i +index 0925ab50..f0be6383 100644 +--- a/Inventor/SoInput.i ++++ b/Inventor/SoInput.i +@@ -10,7 +10,7 @@ + if (PyUnicode_Check($input)) + { + $1 = (void *) PyUnicode_AsUTF8($input); +- $2 = PyUnicode_GET_SIZE($input); ++ $2 = PyUnicode_GET_LENGTH($input); + } + else if (PyBytes_Check($input)) + { diff --git a/srcpkgs/python3-pivy/template b/srcpkgs/python3-pivy/template index aa82b37958b..2b984696fbd 100644 --- a/srcpkgs/python3-pivy/template +++ b/srcpkgs/python3-pivy/template @@ -1,7 +1,7 @@ # Template file for 'python3-pivy' pkgname=python3-pivy version=0.6.8 -revision=2 +revision=3 build_style=cmake hostmakedepends="python3-devel swig" makedepends="python3-devel coin3-devel"