public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-pycdio] rawhide: Replace removed Python 2 C API macros for SWIG 4.5.0 compatibility
@ 2026-07-30 23:58 Jitka Plesnikova
0 siblings, 0 replies; only message in thread
From: Jitka Plesnikova @ 2026-07-30 23:58 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-pycdio
Branch : rawhide
Commit : d49450d3eb47f83b6f29a2ae4f81a2f18c63ab7c
Author : Jitka Plesnikova <jplesnik@redhat.com>
Date : 2026-07-28T15:29:18+02:00
Stats : +28/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/python-pycdio/c/d49450d3eb47f83b6f29a2ae4f81a2f18c63ab7c?branch=rawhide
Log:
Replace removed Python 2 C API macros for SWIG 4.5.0 compatibility
---
diff --git a/python-pycdio-swig45.patch b/python-pycdio-swig45.patch
new file mode 100644
index 0000000..7b5e935
--- /dev/null
+++ b/python-pycdio-swig45.patch
@@ -0,0 +1,21 @@
+diff -up pycdio-2.1.1/swig/pyiso9660.i.swig45 pycdio-2.1.1/swig/pyiso9660.i
+--- pycdio-2.1.1/swig/pyiso9660.i.swig45 2026-07-28 10:26:20.113958256 +0200
++++ pycdio-2.1.1/swig/pyiso9660.i 2026-07-28 10:26:20.116271673 +0200
+@@ -109,7 +109,7 @@ typedef iso9660_stat_t IsoStat_t;
+ iso9660_stat_t *p_statbuf =
+ (iso9660_stat_t *) _cdio_list_node_data (p_entnode);
+ PyObject *o;
+- o = PyString_FromString(p_statbuf->filename);
++ o = PyUnicode_FromString(p_statbuf->filename);
+ PyList_SetItem(py_list, 0, o);
+ o = SWIG_From_long((long)(p_statbuf->lsn));
+ PyList_SetItem(py_list, 1, o);
+@@ -132,7 +132,7 @@ typedef iso9660_stat_t IsoStat_t;
+ if (result) {
+ PyObject *o;
+ resultobj = PyList_New(0);
+- o = PyString_FromString(p_statbuf->filename);
++ o = PyUnicode_FromString(p_statbuf->filename);
+ PyList_Append(resultobj, o);
+ o = SWIG_From_long((long)(p_statbuf->lsn));
+ PyList_Append(resultobj, o);
diff --git a/python-pycdio.spec b/python-pycdio.spec
index 5dd8d07..85cf894 100644
--- a/python-pycdio.spec
+++ b/python-pycdio.spec
@@ -1,11 +1,14 @@
Name: python-pycdio
Version: 2.1.1
-Release: 13%{?dist}
+Release: 14%{?dist}
Summary: A Python interface to the CD Input and Control library
License: GPL-3.0-or-later
URL: http://www.gnu.org/software/libcdio/
Source0: %pypi_source pycdio
+# Replace removed Python 2 C API macros with Python 3 equivalents
+# for compatibility with SWIG 4.5.0
+Patch0: python-pycdio-swig45.patch
BuildRequires: gcc
BuildRequires: python3-devel
@@ -53,6 +56,9 @@ chmod 755 %{buildroot}/%{python3_sitearch}/*.so
%{python3_sitearch}/_pyiso9660.cpython-*linux-gnu.so
%changelog
+* Tue Jul 28 2026 Jitka Plesnikova <jplesnik@redhat.com> - 2.1.1-14
+- Replace removed Python 2 C API macros for SWIG 4.5.0 compatibility
+
* Wed Jul 22 2026 Python Maint <python-maint@redhat.com> - 2.1.1-13
- Rebuilt for Python 3.15.0b4 ABI change
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-30 23:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-30 23:58 [rpms/python-pycdio] rawhide: Replace removed Python 2 C API macros for SWIG 4.5.0 compatibility Jitka Plesnikova
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox