python3-orocos-kdl: rebuild for Python 3.12

This commit is contained in:
Andrew J. Hesford 2023-09-23 21:03:15 -04:00
parent 335acf99b0
commit 237e926a06
2 changed files with 14 additions and 2 deletions

View file

@ -0,0 +1,12 @@
--- ./python_orocos_kdl/PyKDL/std_string.sip.orig 2023-09-29 20:22:49.017791953 -0400
+++ ./python_orocos_kdl/PyKDL/std_string.sip 2023-09-29 20:23:50.063156359 -0400
@@ -49,7 +49,8 @@
}
if (PyUnicode_Check(sipPy)) {
PyObject* s = PyUnicode_AsEncodedString(sipPy, "UTF-8", "");
- *sipCppPtr = new std::string(PyUnicode_AS_DATA(s));
+ const char *sb = PyBytes_AsString(s);
+ *sipCppPtr = new std::string(sb ? sb : "");
Py_DECREF(s);
return 1;
}

View file

@ -1,11 +1,11 @@
# Template file for 'python3-orocos-kdl'
pkgname=python3-orocos-kdl
version=1.4.0
revision=5
revision=6
build_wrksrc=python_orocos_kdl
build_style=cmake
configure_args="-DPYTHON_VERSION=3 -DSIP_EXECUTABLE=/usr/bin/sip"
hostmakedepends="python3 python3-sip sip4"
hostmakedepends="python3-setuptools python3-sip sip4"
makedepends="python3-sip-devel python3-devel orocos-kdl-devel eigen3.2"
depends="python3 python3-sip"
short_desc="Python3 Bindings for Orocos Kinematics and Dynamics C++ library"