17
0

- Add patch support-python314.patch:

* Support new Python 3.14 linkat.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-ptrace?expand=0&rev=22
This commit is contained in:
2025-12-11 06:01:27 +00:00
committed by Git OBS Bridge
parent 8ed7a83475
commit b2f258da7d
3 changed files with 33 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
-------------------------------------------------------------------
Thu Dec 11 05:53:43 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
Thu Dec 11 06:00:41 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 0.9.9:
* Fix PROC_MAP_REGEX for three digit minor device id by @fab1ano in #73
@@ -11,6 +11,8 @@ Thu Dec 11 05:53:43 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Drop patches, included upstream:
* python-ptrace-pr81-importlib.patch
* python-ptrace-pr83-importlib.patch
- Add patch support-python314.patch:
* Support new Python 3.14 linkat.
-------------------------------------------------------------------
Sun Mar 3 19:17:50 UTC 2024 - Ben Greiner <code@bnavigator.de>

View File

@@ -43,6 +43,8 @@ Summary: Python binding for ptrace
License: GPL-2.0-only
URL: https://github.com/vstinner/python-ptrace
Source: https://github.com/haypo/python-ptrace/archive/%{pyversion}.tar.gz#/python-ptrace-%{pyversion}.tar.gz
# PATCH-FIX-UPSTREAM gh#vstinner/python-ptrace#91
Patch0: support-python314.patch
%if "%{flavor}" == "cptrace"
BuildRequires: %{python_module devel}
%else

28
support-python314.patch Normal file
View File

@@ -0,0 +1,28 @@
From 324404a3d7ca7d329f1595f2520e779412d6fa98 Mon Sep 17 00:00:00 2001
From: Stefano Rivera <stefano@rivera.za.net>
Date: Sat, 11 Oct 2025 15:36:41 +0200
Subject: [PATCH] Add support for Python 3.14
Python 3.14 now uses linkat() if it's available
https://github.com/python/cpython/issues/81793
I'm not quite sure why the ARM64 and RISC-V versions were using
linkat() there, previously, but that doesn't seem relevant to this
change :)
---
tests/test_strace.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/test_strace.py b/tests/test_strace.py
index 2020a3b..89f77b6 100755
--- a/tests/test_strace.py
+++ b/tests/test_strace.py
@@ -86,7 +86,7 @@ def test_rename(self):
def test_link(self):
pattern = br"^link\('oldpath', 'newpath'\)"
- if AARCH64 or RISCV:
+ if AARCH64 or RISCV or sys.version_info >= (3, 14):
pattern = br"^linkat\(.*'oldpath'.*'newpath'.*\)"
self.assert_syscall("import os; os.link('oldpath', 'newpath')",
pattern)