1 |
commit: 39c12a97877f631adcc1301bc3ea6b8e09d3d9f4 |
2 |
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Mar 16 20:37:00 2023 +0000 |
4 |
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Mar 16 20:38:13 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=39c12a97 |
7 |
|
8 |
dev-tcltk/thread: remove non-standard test for thread join |
9 |
|
10 |
Closes: https://bugs.gentoo.org/835487 |
11 |
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> |
12 |
|
13 |
dev-tcltk/thread/files/thread-2.8.5-musl.patch | 18 ++++++++++++++++++ |
14 |
dev-tcltk/thread/thread-2.8.5.ebuild | 4 +++- |
15 |
2 files changed, 21 insertions(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/dev-tcltk/thread/files/thread-2.8.5-musl.patch b/dev-tcltk/thread/files/thread-2.8.5-musl.patch |
18 |
new file mode 100644 |
19 |
index 000000000000..b31f8948d6e1 |
20 |
--- /dev/null |
21 |
+++ b/dev-tcltk/thread/files/thread-2.8.5-musl.patch |
22 |
@@ -0,0 +1,18 @@ |
23 |
+--- a/tests/thread.test 2023-03-16 21:31:05.333423098 +0100 |
24 |
++++ b/tests/thread.test 2023-03-16 21:31:25.837324400 +0100 |
25 |
+@@ -100,15 +100,6 @@ |
26 |
+ set c |
27 |
+ } {0} |
28 |
+ |
29 |
+-test thread-4.5 {thread::create - join detached thread} { |
30 |
+- ThreadReap |
31 |
+- set tid [thread::create] |
32 |
+- thread::send -async $tid {after 1000 ; thread::release} |
33 |
+- catch {set res [thread::join $tid]} msg |
34 |
+- ThreadReap |
35 |
+- lrange $msg 0 2 |
36 |
+-} {cannot join thread} |
37 |
+- |
38 |
+ test thread-5.0 {thread::release} { |
39 |
+ ThreadReap |
40 |
+ set tid [thread::create {thread::release}] |
41 |
|
42 |
diff --git a/dev-tcltk/thread/thread-2.8.5.ebuild b/dev-tcltk/thread/thread-2.8.5.ebuild |
43 |
index 240a6f7ee101..cb6b5e7e0a40 100644 |
44 |
--- a/dev-tcltk/thread/thread-2.8.5.ebuild |
45 |
+++ b/dev-tcltk/thread/thread-2.8.5.ebuild |
46 |
@@ -1,4 +1,4 @@ |
47 |
-# Copyright 1999-2022 Gentoo Authors |
48 |
+# Copyright 1999-2023 Gentoo Authors |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
|
51 |
EAPI=8 |
52 |
@@ -21,6 +21,8 @@ RDEPEND="${DEPEND}" |
53 |
|
54 |
S="${WORKDIR}"/${MY_P} |
55 |
|
56 |
+PATCHES=( "${FILESDIR}"/${P}-musl.patch ) |
57 |
+ |
58 |
src_prepare() { |
59 |
default |