1 |
commit: 68954313c0a0c1715d05989798ee12a2819f8c23 |
2 |
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Feb 6 10:49:20 2022 +0000 |
4 |
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 6 10:49:20 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=68954313 |
7 |
|
8 |
dev-tcltk/tclpython: PythonCompatUpdate |
9 |
|
10 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
11 |
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> |
12 |
|
13 |
dev-tcltk/tclpython/files/tclpython-5.0-gentoo.patch | 20 ++++++++++++++++++++ |
14 |
dev-tcltk/tclpython/tclpython-5.0-r1.ebuild | 4 ++-- |
15 |
2 files changed, 22 insertions(+), 2 deletions(-) |
16 |
|
17 |
diff --git a/dev-tcltk/tclpython/files/tclpython-5.0-gentoo.patch b/dev-tcltk/tclpython/files/tclpython-5.0-gentoo.patch |
18 |
index c77339982fd6..39bdf20c095c 100644 |
19 |
--- a/dev-tcltk/tclpython/files/tclpython-5.0-gentoo.patch |
20 |
+++ b/dev-tcltk/tclpython/files/tclpython-5.0-gentoo.patch |
21 |
@@ -24,3 +24,23 @@ |
22 |
|
23 |
ifneq ($(MAKECMDGOALS), clean) |
24 |
-include $(DEPEND) |
25 |
+--- a/src/py.c 2022-02-06 10:20:03.352580186 +0100 |
26 |
++++ b/src/py.c 2022-02-06 11:16:49.504796684 +0100 |
27 |
+@@ -24,7 +24,6 @@ |
28 |
+ // First time initializing Python |
29 |
+ Py_NoSiteFlag = 1; |
30 |
+ Py_Initialize(); |
31 |
+- PyEval_InitThreads(); |
32 |
+ GlobalThread = PyEval_SaveThread(); |
33 |
+ } |
34 |
+ |
35 |
+@@ -60,7 +59,8 @@ |
36 |
+ #ifdef WITH_THREAD |
37 |
+ PyEval_RestoreThread(interp->thread_state); |
38 |
+ Py_EndInterpreter(interp->thread_state); |
39 |
+- PyEval_ReleaseLock(); |
40 |
++ PyThreadState_Swap(GlobalThread); |
41 |
++ PyEval_SaveThread(); |
42 |
+ #endif |
43 |
+ |
44 |
+ free(interp); |
45 |
|
46 |
diff --git a/dev-tcltk/tclpython/tclpython-5.0-r1.ebuild b/dev-tcltk/tclpython/tclpython-5.0-r1.ebuild |
47 |
index 05156fc6ea87..92a9fda120d9 100644 |
48 |
--- a/dev-tcltk/tclpython/tclpython-5.0-r1.ebuild |
49 |
+++ b/dev-tcltk/tclpython/tclpython-5.0-r1.ebuild |
50 |
@@ -1,9 +1,9 @@ |
51 |
-# Copyright 1999-2021 Gentoo Authors |
52 |
+# Copyright 1999-2022 Gentoo Authors |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
|
55 |
EAPI=7 |
56 |
|
57 |
-PYTHON_COMPAT=( python3_{8,9} ) |
58 |
+PYTHON_COMPAT=( python3_{8..10} ) |
59 |
|
60 |
inherit python-single-r1 toolchain-funcs |