Rebuilt for Python 3.13
This commit is contained in:
parent
c7f15f7fa9
commit
41fbce047d
2 changed files with 34 additions and 2 deletions
28
0001-python313.patch
Normal file
28
0001-python313.patch
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
From 2ba15130fae66e19d4d75ab28ef448b0206235c4 Mon Sep 17 00:00:00 2001
|
||||
From: Yaakov Selkowitz <yselkowi@redhat.com>
|
||||
Date: Sun, 23 Jun 2024 13:04:28 -0400
|
||||
Subject: [PATCH] trace-cmd library: fix compatibility with Python 3.13
|
||||
|
||||
PyEval_CallObject was deprecated in Python 3.9 and removed from 3.13.
|
||||
|
||||
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
|
||||
---
|
||||
python/ctracecmd.i | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/python/ctracecmd.i b/python/ctracecmd.i
|
||||
index 6d0179e3..8757cbe4 100644
|
||||
--- a/python/ctracecmd.i
|
||||
+++ b/python/ctracecmd.i
|
||||
@@ -214,7 +214,7 @@ static int python_callback(struct trace_seq *s,
|
||||
SWIG_NewPointerObj(SWIG_as_voidptr(event),
|
||||
SWIGTYPE_p_tep_event, 0));
|
||||
|
||||
- result = PyEval_CallObject(context, arglist);
|
||||
+ result = PyObject_CallObject(context, arglist);
|
||||
Py_XDECREF(arglist);
|
||||
if (result && result != Py_None) {
|
||||
if (!PyInt_Check(result)) {
|
||||
--
|
||||
2.45.2
|
||||
|
||||
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
Name: trace-cmd
|
||||
Version: %{srcversion}
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?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
|
||||
|
||||
|
|
@ -21,6 +21,7 @@ Source0: https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git/snapshot/t
|
|||
Source1: trace-cmd.conf
|
||||
Source2: trace-cmd.service
|
||||
Source3: 98-trace-cmd.rules
|
||||
Patch0: 0001-python313.patch
|
||||
|
||||
BuildRequires: make
|
||||
BuildRequires: gcc
|
||||
|
|
@ -52,7 +53,7 @@ BuildRequires: python3-devel
|
|||
Python plugin support for trace-cmd
|
||||
|
||||
%prep
|
||||
%autosetup -n %{name}-v%{srcversion}
|
||||
%autosetup -n %{name}-v%{srcversion} -p1
|
||||
cp %{SOURCE1} .
|
||||
cp %{SOURCE2} .
|
||||
cp %{SOURCE3} .
|
||||
|
|
@ -102,6 +103,9 @@ rm -rf %{buildroot}/%{_mandir}/man3/*
|
|||
%{_libdir}/%{name}/python/
|
||||
|
||||
%changelog
|
||||
* Sun Jun 23 2024 Yaakov Selkowitz <yselkowi@redhat.com> - 3.2-3
|
||||
- Rebuilt for Python 3.13
|
||||
|
||||
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.2-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue