diff --git a/package/yast2-python-bindings.changes b/package/yast2-python-bindings.changes index 3b20308..8d5314c 100644 --- a/package/yast2-python-bindings.changes +++ b/package/yast2-python-bindings.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Aug 25 14:41:32 UTC 2026 - Dominique Leuenberger + +- Fix build failure with SWIG 4.5 and Python 3.13 (boo#1275515) +- 5.0.3 + ------------------------------------------------------------------- Mon Nov 13 09:44:31 UTC 2023 - Noel Power diff --git a/package/yast2-python-bindings.spec b/package/yast2-python-bindings.spec index 102c475..b299535 100644 --- a/package/yast2-python-bindings.spec +++ b/package/yast2-python-bindings.spec @@ -23,7 +23,7 @@ %bcond_with python2 %endif Name: yast2-python-bindings -Version: 5.0.2 +Version: 5.0.3 Release: 0 Summary: Python bindings for the YaST platform License: GPL-2.0-only diff --git a/src/ytypes.i b/src/ytypes.i index d0149bc..e2815a7 100644 --- a/src/ytypes.i +++ b/src/ytypes.i @@ -1,4 +1,6 @@ %{ +#include "compat.h" + YCPValue pyval_to_ycp(PyObject *input) { int ret; @@ -24,7 +26,7 @@ YCPValue pyval_to_ycp(PyObject *input) return YCPString(PyString_AsString(input)); if (PyUnicode_Check(input)) { #if PY_MAJOR_VERSION >= 3 - return YCPString(_PyUnicode_AsString(input)); + return YCPString(PyUnicode_AsUTF8(input)); #else PyObject* encoded = PyUnicode_AsEncodedString(input, "utf8", NULL); return YCPString(PyBytes_AsString(encoded));