Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
speech-dispatcher: update to 0.10.1.
Includes a patch pulled out of upstream's git repo that fixes a crash under Python 3.9. Closes: #25767 [via git-merge-pr]
- Loading branch information
Showing
2 changed files
with
47 additions
and
9 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
srcpkgs/speech-dispatcher/patches/0001-Fix-crash-with-python-3.9.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
From 4fe066fefcbb28161b1053326867514a21f421b9 Mon Sep 17 00:00:00 2001 | ||
From: Michael Catanzaro <mcatanzaro@gnome.org> | ||
Date: Fri, 11 Sep 2020 13:15:07 -0500 | ||
Subject: [PATCH] Fix crash with python 3.9 | ||
|
||
Thread.isAlive() was removed in python 3.9. Thread.is_alive() has been | ||
available since python 2.6, so let's use that. | ||
|
||
Fixes #402 | ||
--- | ||
src/api/python/speechd/client.py | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/src/api/python/speechd/client.py b/src/api/python/speechd/client.py | ||
index ba7c0496..68200e2f 100644 | ||
--- src/api/python/speechd/client.py | ||
+++ src/api/python/speechd/client.py | ||
@@ -289,7 +289,7 @@ class _SSIP_Connection(object): | ||
and return the triplet (code, msg, data).""" | ||
# TODO: This check is dumb but seems to work. The main thread | ||
# hangs without it, when the Speech Dispatcher connection is lost. | ||
- if not self._communication_thread.isAlive(): | ||
+ if not self._communication_thread.is_alive(): | ||
raise SSIPCommunicationError | ||
self._ssip_reply_semaphore.acquire() | ||
# The list is sorted, read the first item | ||
-- | ||
2.28.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters