summaryrefslogtreecommitdiff
path: root/dev-python/python-ptrace
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2026-04-20 07:21:06 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2026-04-20 07:21:06 +0000
commit2ba9a1319f58c25dfe0d28321e8be53e667f94ac (patch)
tree6d1a6a28589321f72fa6d7f4d313da919de8b248 /dev-python/python-ptrace
parent34f30c80d0f2549965255dae1043e028b027869a (diff)
downloadbaldeagleos-repo-2ba9a1319f58c25dfe0d28321e8be53e667f94ac.tar.gz
baldeagleos-repo-2ba9a1319f58c25dfe0d28321e8be53e667f94ac.tar.xz
baldeagleos-repo-2ba9a1319f58c25dfe0d28321e8be53e667f94ac.zip
Adding metadata
Diffstat (limited to 'dev-python/python-ptrace')
-rw-r--r--dev-python/python-ptrace/files/python-ptrace-0.9.9-py3.14.patch31
-rw-r--r--dev-python/python-ptrace/python-ptrace-0.9.9.ebuild8
-rw-r--r--dev-python/python-ptrace/python-ptrace-9999.ebuild4
3 files changed, 39 insertions, 4 deletions
diff --git a/dev-python/python-ptrace/files/python-ptrace-0.9.9-py3.14.patch b/dev-python/python-ptrace/files/python-ptrace-0.9.9-py3.14.patch
new file mode 100644
index 000000000000..98d8db561908
--- /dev/null
+++ b/dev-python/python-ptrace/files/python-ptrace-0.9.9-py3.14.patch
@@ -0,0 +1,31 @@
+https://github.com/vstinner/python-ptrace/pull/91
+
+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)
+
diff --git a/dev-python/python-ptrace/python-ptrace-0.9.9.ebuild b/dev-python/python-ptrace/python-ptrace-0.9.9.ebuild
index 81c2b5fc9965..34d034385fb8 100644
--- a/dev-python/python-ptrace/python-ptrace-0.9.9.ebuild
+++ b/dev-python/python-ptrace/python-ptrace-0.9.9.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -8,7 +8,7 @@ PYTHON_COMPAT=( python3_{10..14} )
inherit distutils-r1
-DESCRIPTION="A Python binding of ptrace library"
+DESCRIPTION="Python binding of ptrace library"
HOMEPAGE="
https://github.com/vstinner/python-ptrace/
https://pypi.org/project/python-ptrace/
@@ -28,6 +28,10 @@ fi
LICENSE="GPL-2"
SLOT="0"
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.9.9-py3.14.patch
+)
+
distutils_enable_tests pytest
python_test() {
diff --git a/dev-python/python-ptrace/python-ptrace-9999.ebuild b/dev-python/python-ptrace/python-ptrace-9999.ebuild
index 8cbae1902210..4ff7a5c22336 100644
--- a/dev-python/python-ptrace/python-ptrace-9999.ebuild
+++ b/dev-python/python-ptrace/python-ptrace-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -8,7 +8,7 @@ PYTHON_COMPAT=( python3_{10..14} )
inherit distutils-r1
-DESCRIPTION="A Python binding of ptrace library"
+DESCRIPTION="Python binding of ptrace library"
HOMEPAGE="
https://github.com/vstinner/python-ptrace/
https://pypi.org/project/python-ptrace/