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/trace-cmd] rawhide: Replace removed Python 2 C API macros for SWIG 4.5.0 compatibility
Date: Mon, 10 Aug 2026 09:22:15 GMT [thread overview]
Message-ID: <178635373507.1.9464020902168881422.rpms-trace-cmd-eff667a072e6@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/trace-cmd
Branch : rawhide
Commit : eff667a072e69238efc469775585b1b30c056187
Author : Jitka Plesnikova <jplesnik@redhat.com>
Date : 2026-07-28T15:29:18+02:00
Stats : +21/-2 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/trace-cmd/c/eff667a072e69238efc469775585b1b30c056187?branch=rawhide
Log:
Replace removed Python 2 C API macros for SWIG 4.5.0 compatibility
---
diff --git a/trace-cmd-swig45.patch b/trace-cmd-swig45.patch
new file mode 100644
index 0000000..c4303f1
--- /dev/null
+++ b/trace-cmd-swig45.patch
@@ -0,0 +1,12 @@
+diff -up trace-cmd-v3.3.1/python/ctracecmd.i.swig45 trace-cmd-v3.3.1/python/ctracecmd.i
+--- trace-cmd-v3.3.1/python/ctracecmd.i.swig45 2026-07-28 10:30:15.183770171 +0200
++++ trace-cmd-v3.3.1/python/ctracecmd.i 2026-07-28 10:30:15.188043290 +0200
+@@ -218,7 +218,7 @@ static int python_callback(struct trace_
+ result = PyObject_Call(context, arglist, NULL);
+ Py_XDECREF(arglist);
+ if (result && result != Py_None) {
+- if (!PyInt_Check(result)) {
++ if (!PyLong_Check(result)) {
+ PyErr_SetString(PyExc_TypeError,
+ "callback must return int");
+ PyErr_Print();
diff --git a/trace-cmd.spec b/trace-cmd.spec
index 081c597..774c923 100644
--- a/trace-cmd.spec
+++ b/trace-cmd.spec
@@ -6,7 +6,7 @@
Name: trace-cmd
Version: %{srcversion}
-Release: 6%{?dist}
+Release: 7%{?dist}
License: LGPL-2.1-only AND LGPL-2.1-or-later AND GPL-2.0-only AND GPL-2.0-or-later
Summary: A user interface to Ftrace
@@ -22,6 +22,10 @@ Source1: trace-cmd.conf
Source2: trace-cmd.service
Source3: 98-trace-cmd.rules
+# Replace removed Python 2 C API macros with Python 3 equivalents
+# for compatibility with SWIG 4.5.0
+Patch0: trace-cmd-swig45.patch
+
BuildRequires: make
BuildRequires: gcc
BuildRequires: xmlto
@@ -52,7 +56,7 @@ BuildRequires: python3-devel
Python plugin support for trace-cmd
%prep
-%autosetup -n %{name}-v%{srcversion}
+%autosetup -p1 -n %{name}-v%{srcversion}
cp %{SOURCE1} .
cp %{SOURCE2} .
cp %{SOURCE3} .
@@ -102,6 +106,9 @@ rm -rf %{buildroot}/%{_mandir}/man3/*
%{_libdir}/%{name}/python/
%changelog
+* Tue Jul 28 2026 Jitka Plesnikova <jplesnik@redhat.com> - 3.3.1-7
+- Replace removed Python 2 C API macros for SWIG 4.5.0 compatibility
+
* Fri Jul 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 3.3.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
reply other threads:[~2026-08-10 9:22 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=178635373507.1.9464020902168881422.rpms-trace-cmd-eff667a072e6@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