public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jitka Plesnikova <jplesnik@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-pycdio] rawhide: Replace removed Python 2 C API macros for SWIG 4.5.0 compatibility
Date: Thu, 30 Jul 2026 23:58:31 GMT [thread overview]
Message-ID: <178545591115.1.14858703249630968276.rpms-python-pycdio-d49450d3eb47@fedoraproject.org> (raw)
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
reply other threads:[~2026-07-30 23:58 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178545591115.1.14858703249630968276.rpms-python-pycdio-d49450d3eb47@fedoraproject.org \
--to=jplesnik@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox