diff options
Diffstat (limited to 'app-accessibility')
-rw-r--r-- | app-accessibility/Manifest.gz | bin | 4713 -> 4720 bytes | |||
-rw-r--r-- | app-accessibility/speech-dispatcher/Manifest | 2 | ||||
-rw-r--r-- | app-accessibility/speech-dispatcher/files/speech-dispatcher-0.11.1-remove-unused-variable-musl.patch | 29 | ||||
-rw-r--r-- | app-accessibility/speech-dispatcher/files/speech-dispatcher-0.9.1-fno-common.patch | 466 |
4 files changed, 0 insertions, 497 deletions
diff --git a/app-accessibility/Manifest.gz b/app-accessibility/Manifest.gz Binary files differindex 27115b96895d..26eb17ff9cc6 100644 --- a/app-accessibility/Manifest.gz +++ b/app-accessibility/Manifest.gz diff --git a/app-accessibility/speech-dispatcher/Manifest b/app-accessibility/speech-dispatcher/Manifest index 8f367da529ee..f8fa8aeff2fd 100644 --- a/app-accessibility/speech-dispatcher/Manifest +++ b/app-accessibility/speech-dispatcher/Manifest @@ -1,6 +1,4 @@ AUX speech-dispatcher-0.11.1-include-pthread_h.patch 367 BLAKE2B 54e4cb3556f066c7291c6c601a0a9cf13c75dc14bfc2ef493d5fd6e38226d10b119612ed57ea4a44d65819653e76a2e74e54e286214f3fd353b8149c00de1ed2 SHA512 d7afc36cd26052576e0fb3af44ba438b5184d32b1d80c98409e227cc86858dfcfcb9287cf44f986042e2733004f30d30a9431e00653779e312543cf43e108537 -AUX speech-dispatcher-0.11.1-remove-unused-variable-musl.patch 1106 BLAKE2B 0a21ef6692a938f3764cf2e5f4fa2ae204cc630bb46b754d81a7c79588be8e61687c311c8e9bc8f999c8affab3cc58a42121a93594ceba389ee9cf41e91b2f6e SHA512 1e4c80a431bd0d2a910dd4c251446dbb877859a4b131a7bd33018e2145d2b55da2021ba943a462458289bceebaa7dc0ae441a992e90be412c2d1aaaaa7ec7d83 -AUX speech-dispatcher-0.9.1-fno-common.patch 13112 BLAKE2B 6a4125117852cfe250bed1a9936af67a2a83303ecced615febd89b9b14918dda94a78862cdcceb95fcea3ea7ed30a12d799afbc21264ff386c94f9f867eb8136 SHA512 b957ebbfd8a6a9cfe2b85cba85b77dc813e76212721d63d42b3881ed17993d7b4a8c720d4c431c8e2eb3ea60996e411402732c735948f37fa84a9fdcfa2683fc DIST speech-dispatcher-0.11.2.tar.gz 7147526 BLAKE2B 6b11949736275d900e5e1d3909fab51fc04fbb45baf470a4c98aed19f61b7adb8cedf6b11f1a1aa69d9625383627beab4122c74ec78d9c07a5d0ddf4646669d6 SHA512 038ecaa5b9d56e3f915ec49fe7768cb4eebe1c8be79b95635f09fb3f6067e4c0ade13d2dd355e0b326579dcdf509dd180889b27282410b6bb252a2f642f028d4 DIST speech-dispatcher-0.11.3.tar.gz 7150632 BLAKE2B 92bad589e453a243362a9e0142d2897b9651fa648012f2bd7ef00bc1ded389fd2c01b6f38f19002289357f7aa6361a6e7fa3ee35ec2ad7c044f34d87e7f2c409 SHA512 e9f5b862066c0292230fda32f16782f9a2d66e8d0c0e3aa0ccdb4628c1182661d2f40894f480ae5206af7fbbc49338189312afe02092f5d472095b053afd75c7 EBUILD speech-dispatcher-0.11.2.ebuild 2868 BLAKE2B 343ddf0cbd7f970e93175e60385aa3869ab173ac51db10ee3f12b38dce0c68724e36b3da03682fe6b850b07a996e2f10d3921eba73c10d8b50bf3954869f7c23 SHA512 42539976ba09a7dfc6853201a23ca60bc6abb0e957bf1e69bd10b14f674c8724aa092ec487fbe5eb5551fa4336adf113a5b62b8445f55f3ad138ffb23867a162 diff --git a/app-accessibility/speech-dispatcher/files/speech-dispatcher-0.11.1-remove-unused-variable-musl.patch b/app-accessibility/speech-dispatcher/files/speech-dispatcher-0.11.1-remove-unused-variable-musl.patch deleted file mode 100644 index 545fe2916e05..000000000000 --- a/app-accessibility/speech-dispatcher/files/speech-dispatcher-0.11.1-remove-unused-variable-musl.patch +++ /dev/null @@ -1,29 +0,0 @@ -https://github.com/brailcom/speechd/commit/57e2c131f03ae8244b0478e449d86dea7d5724d8 - -musl additionally requires explicitly including sys/stat.h header for stat. -Including that would've been the proper patch if 'st' was actually used. - -From 57e2c131f03ae8244b0478e449d86dea7d5724d8 Mon Sep 17 00:00:00 2001 -From: Samuel Thibault <samuel.thibault@ens-lyon.org> -Date: Sun, 13 Mar 2022 18:35:59 +0100 -Subject: [PATCH] Drop unused variable - ---- a/src/modules/espeak.c -+++ b/src/modules/espeak.c -@@ -3,7 +3,7 @@ - * espeak.c - Speech Dispatcher backend for espeak - * - * Copyright (C) 2007 Brailcom, o.p.s. -- * Copyright (C) 2019-2021 Samuel Thibault <samuel.thibault@ens-lyon.org> -+ * Copyright (C) 2019-2022 Samuel Thibault <samuel.thibault@ens-lyon.org> - * - * This is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by -@@ -880,7 +880,6 @@ static SPDVoice **espeak_list_synthesis_voices() - { - const char *identifier = espeak_mbrola[j]->identifier; - char *voicename, *dash, *path; -- struct stat st; - - totnummbrola++; - diff --git a/app-accessibility/speech-dispatcher/files/speech-dispatcher-0.9.1-fno-common.patch b/app-accessibility/speech-dispatcher/files/speech-dispatcher-0.9.1-fno-common.patch deleted file mode 100644 index 0914566a8a35..000000000000 --- a/app-accessibility/speech-dispatcher/files/speech-dispatcher-0.9.1-fno-common.patch +++ /dev/null @@ -1,466 +0,0 @@ -From f1c01ccc0ca3f82313ebff3f336d808acee225c8 Mon Sep 17 00:00:00 2001 -From: Samuel Thibault <samuel.thibault@ens-lyon.org> -Date: Fri, 6 Dec 2019 10:27:39 +0100 -Subject: [PATCH] Fix global varibles definitions - ---- - src/clients/say/options.c | 24 +++++++++++++++++++ - src/clients/say/options.h | 42 ++++++++++++++++----------------- - src/modules/festival_client.c | 2 ++ - src/modules/festival_client.h | 2 +- - src/modules/module_utils.c | 20 ++++++++++++++++ - src/modules/module_utils.h | 24 +++++++++---------- - src/server/compare.c | 1 + - src/server/compare.h | 4 ++-- - src/server/configuration.c | 3 +++ - src/server/configuration.h | 4 ++-- - src/server/speaking.c | 10 ++++++++ - src/server/speaking.h | 14 +++++------ - src/server/speechd.c | 33 ++++++++++++++++++++++++++ - src/server/speechd.h | 44 +++++++++++++++++------------------ - 14 files changed, 160 insertions(+), 67 deletions(-) - -diff --git a/src/clients/say/options.c b/src/clients/say/options.c -index f75ec7de..cb937d37 100644 ---- a/src/clients/say/options.c -+++ b/src/clients/say/options.c -@@ -33,6 +33,30 @@ - #include "options.h" - #include <i18n.h> - -+signed int rate; -+signed int pitch; -+signed int pitch_range; -+signed int volume; -+ -+int list_output_modules; -+char *output_module; -+char *sound_icon; -+char *language; -+char *voice_type; -+char *punctuation_mode; -+char *priority; -+int pipe_mode; -+SPDDataMode ssml_mode; -+int spelling; -+int wait_till_end; -+int stop_previous; -+int cancel_previous; -+int list_synthesis_voices; -+char *synthesis_voice; -+ -+char *application_name; -+char *connection_name; -+ - void options_print_help(char *argv[]) - { - assert(argv); -diff --git a/src/clients/say/options.h b/src/clients/say/options.h -index 2fdd3b96..dede6dcc 100644 ---- a/src/clients/say/options.h -+++ b/src/clients/say/options.h -@@ -22,29 +22,29 @@ - #include <getopt.h> - #include "speechd_types.h" - --signed int rate; --signed int pitch; --signed int pitch_range; --signed int volume; -+extern signed int rate; -+extern signed int pitch; -+extern signed int pitch_range; -+extern signed int volume; - --int list_output_modules; --char *output_module; --char *sound_icon; --char *language; --char *voice_type; --char *punctuation_mode; --char *priority; --int pipe_mode; --SPDDataMode ssml_mode; --int spelling; --int wait_till_end; --int stop_previous; --int cancel_previous; --int list_synthesis_voices; --char *synthesis_voice; -+extern int list_output_modules; -+extern char *output_module; -+extern char *sound_icon; -+extern char *language; -+extern char *voice_type; -+extern char *punctuation_mode; -+extern char *priority; -+extern int pipe_mode; -+extern SPDDataMode ssml_mode; -+extern int spelling; -+extern int wait_till_end; -+extern int stop_previous; -+extern int cancel_previous; -+extern int list_synthesis_voices; -+extern char *synthesis_voice; - --char *application_name; --char *connection_name; -+extern char *application_name; -+extern char *connection_name; - - static struct option long_options[] = { - {"rate", 1, 0, 'r'}, -diff --git a/src/modules/festival_client.c b/src/modules/festival_client.c -index bb15cb86..f8327d46 100644 ---- a/src/modules/festival_client.c -+++ b/src/modules/festival_client.c -@@ -75,6 +75,8 @@ - /* For testing endianness */ - int fapi_endian_loc = 1; - -+int festival_connection_crashed; -+ - static char *socket_receive_file_to_buff(int fd, int *size); - - /* --- MANAGING FT STRUCTURES --- */ -diff --git a/src/modules/festival_client.h b/src/modules/festival_client.h -index 21acdda2..dfbaac15 100644 ---- a/src/modules/festival_client.h -+++ b/src/modules/festival_client.h -@@ -44,7 +44,7 @@ - #define FESTIVAL_DEFAULT_SERVER_PORT 1314 - #define FESTIVAL_DEFAULT_TEXT_MODE "fundamental" - --int festival_connection_crashed; -+extern int festival_connection_crashed; - - typedef struct FT_Info { - int encoding; -diff --git a/src/modules/module_utils.c b/src/modules/module_utils.c -index 0a3d3308..99e71fcb 100644 ---- a/src/modules/module_utils.c -+++ b/src/modules/module_utils.c -@@ -35,6 +35,26 @@ extern char *module_index_mark; - - pthread_mutex_t module_stdout_mutex = PTHREAD_MUTEX_INITIALIZER; - -+int log_level; -+ -+AudioID *module_audio_id; -+ -+SPDMsgSettings msg_settings; -+SPDMsgSettings msg_settings_old; -+ -+int current_index_mark; -+ -+int Debug; -+FILE *CustomDebugFile; -+ -+configfile_t *configfile; -+configoption_t *module_dc_options; -+int module_num_dc_options; -+ -+const char *module_name; -+ -+char *module_index_mark; -+ - char *do_message(SPDMessageType msgtype) - { - int ret; -diff --git a/src/modules/module_utils.h b/src/modules/module_utils.h -index 12382d3b..87c5f813 100644 ---- a/src/modules/module_utils.h -+++ b/src/modules/module_utils.h -@@ -49,23 +49,23 @@ typedef struct SPDMarks { - gboolean stop; - } SPDMarks; - --int log_level; -+extern int log_level; - --AudioID *module_audio_id; -+extern AudioID *module_audio_id; - --SPDMsgSettings msg_settings; --SPDMsgSettings msg_settings_old; -+extern SPDMsgSettings msg_settings; -+extern SPDMsgSettings msg_settings_old; - --int current_index_mark; -+extern int current_index_mark; - --int Debug; --FILE *CustomDebugFile; -+extern int Debug; -+extern FILE *CustomDebugFile; - --configfile_t *configfile; --configoption_t *module_dc_options; --int module_num_dc_options; -+extern configfile_t *configfile; -+extern configoption_t *module_dc_options; -+extern int module_num_dc_options; - --const char *module_name; -+extern const char *module_name; - - #define CLEAN_OLD_SETTINGS_TABLE() do { \ - msg_settings_old.rate = -101;\ -@@ -395,7 +395,7 @@ configoption_t *add_config_option(configoption_t * options, - #define INDEX_MARK_BODY_LEN 6 - #define INDEX_MARK_BODY "__spd_" - --char *module_index_mark; -+extern char *module_index_mark; - - /* This macro must be placed at the initialization of the module so that the - later functions are possible to use */ -diff --git a/src/server/compare.c b/src/server/compare.c -index aa08ed79..8d36c39d 100644 ---- a/src/server/compare.c -+++ b/src/server/compare.c -@@ -29,6 +29,7 @@ - #include "compare.h" - - /* Pointer to compare_message_uid */ -+gint(*p_msg_lc) (); - gint(*p_msg_uid_lc) () = compare_message_uid; - - gint compare_message_uid(gconstpointer element, gconstpointer value, gpointer x) -diff --git a/src/server/compare.h b/src/server/compare.h -index f0c730c5..380c9ed2 100644 ---- a/src/server/compare.h -+++ b/src/server/compare.h -@@ -27,7 +27,7 @@ gint compare_message_uid(gconstpointer element, gconstpointer value, - gpointer x); - - /* Pointer to function compare_message_uid */ --gint(*p_msg_lc) (); --gint(*p_msg_uid_lc) (); -+extern gint(*p_msg_lc) (); -+extern gint(*p_msg_uid_lc) (); - - #endif /* COMPARE_H */ -diff --git a/src/server/configuration.c b/src/server/configuration.c -index a21b60c9..ba145995 100644 ---- a/src/server/configuration.c -+++ b/src/server/configuration.c -@@ -33,6 +33,9 @@ - #include "symbols.h" - #include <fdsetconv.h> - -+configoption_t *spd_options; -+int spd_num_options; -+ - static TFDSetClientSpecific *cl_spec_section; - - /* So that gcc doesn't comply about casts to char* */ -diff --git a/src/server/configuration.h b/src/server/configuration.h -index 5850c63b..bd87a0d5 100644 ---- a/src/server/configuration.h -+++ b/src/server/configuration.h -@@ -29,8 +29,8 @@ - #define SPEECHD_DEFAULT_PORT 6560 - - /* Loading options from DotConf */ --configoption_t *spd_options; --int spd_num_options; -+extern configoption_t *spd_options; -+extern int spd_num_options; - - configoption_t *load_config_options(int *num_options); - void free_config_options(configoption_t * opts, int *num); -diff --git a/src/server/speaking.c b/src/server/speaking.c -index 2160c250..61463f3f 100644 ---- a/src/server/speaking.c -+++ b/src/server/speaking.c -@@ -46,6 +46,16 @@ static SPDPriority highest_priority = 0; - int SPEAKING = 0; - int poll_count; - -+OutputModule *speaking_module; -+int speaking_uid; -+int speaking_gid; -+ -+/* Pause and resume handling */ -+int pause_requested; -+int pause_requested_fd; -+int pause_requested_uid; -+int resume_requested; -+ - /* - Speak() is responsible for getting right text from right - queue in right time and saying it loud through the corresponding -diff --git a/src/server/speaking.h b/src/server/speaking.h -index 690db600..48752dfa 100644 ---- a/src/server/speaking.h -+++ b/src/server/speaking.h -@@ -26,15 +26,15 @@ - - #include <speechd_types.h> - --OutputModule *speaking_module; --int speaking_uid; --int speaking_gid; -+extern OutputModule *speaking_module; -+extern int speaking_uid; -+extern int speaking_gid; - - /* Pause and resume handling */ --int pause_requested; --int pause_requested_fd; --int pause_requested_uid; --int resume_requested; -+extern int pause_requested; -+extern int pause_requested_fd; -+extern int pause_requested_uid; -+extern int resume_requested; - - /* Speak() is responsible for getting right text from right - * queue in right time and saying it loud through corresponding -diff --git a/src/server/speechd.c b/src/server/speechd.c -index 8d3c1de4..6f6e51a5 100644 ---- a/src/server/speechd.c -+++ b/src/server/speechd.c -@@ -65,6 +65,39 @@ gint server_timeout_source = 0; - - int client_count = 0; - -+struct SpeechdOptions SpeechdOptions; -+struct SpeechdStatus SpeechdStatus; -+ -+pthread_t speak_thread; -+pthread_mutex_t logging_mutex; -+pthread_mutex_t element_free_mutex; -+pthread_mutex_t output_layer_mutex; -+pthread_mutex_t socket_com_mutex; -+ -+GHashTable *fd_settings; -+GHashTable *language_default_modules; -+GHashTable *fd_uid; -+ -+TSpeechDQueue *MessageQueue; -+GList *MessagePausedList; -+ -+GList *client_specific_settings; -+ -+GList *last_p5_block; -+ -+TFDSetElement GlobalFDSet; -+ -+int speaking_pipe[2]; -+ -+GHashTable *speechd_sockets_status; -+ -+FILE *logfile; -+FILE *custom_logfile; -+char *custom_log_kind; -+FILE *debug_logfile; -+ -+TSpeechDMode spd_mode; -+ - static gboolean speechd_client_terminate(gpointer key, gpointer value, gpointer user); - static gboolean speechd_reload_dead_modules(gpointer user_data); - static gboolean speechd_load_configuration(gpointer user_data); -diff --git a/src/server/speechd.h b/src/server/speechd.h -index c0730b76..b23bbb69 100644 ---- a/src/server/speechd.h -+++ b/src/server/speechd.h -@@ -123,7 +123,7 @@ typedef enum { - SPD_MODE_SINGLE /* */ - } TSpeechDMode; - --TSpeechDMode spd_mode; -+extern TSpeechDMode spd_mode; - - /* TSpeechDQueue is a queue for messages. */ - typedef struct { -@@ -148,7 +148,7 @@ typedef struct { - #include "alloc.h" - #include "speaking.h" - --struct { -+extern struct SpeechdOptions { - char *communication_method; - int communication_method_set; - char *socket_path; -@@ -172,48 +172,48 @@ struct { - int server_timeout_set; - } SpeechdOptions; - --struct { -+extern struct SpeechdStatus { - int max_uid; /* The largest assigned uid + 1 */ - int max_gid; /* The largest assigned gid + 1 */ - int max_fd; - } SpeechdStatus; - - /* speak() thread defined in speaking.c */ --pthread_t speak_thread; --pthread_mutex_t logging_mutex; --pthread_mutex_t element_free_mutex; --pthread_mutex_t output_layer_mutex; --pthread_mutex_t socket_com_mutex; -+extern pthread_t speak_thread; -+extern pthread_mutex_t logging_mutex; -+extern pthread_mutex_t element_free_mutex; -+extern pthread_mutex_t output_layer_mutex; -+extern pthread_mutex_t socket_com_mutex; - - /* Table of all configured (and succesfully loaded) output modules */ - extern GList *output_modules; - - /* Table of settings for each active client (=each active socket)*/ --GHashTable *fd_settings; -+extern GHashTable *fd_settings; - /* Table of default output modules for different languages */ --GHashTable *language_default_modules; -+extern GHashTable *language_default_modules; - /* Table of relations between client file descriptors and their uids */ --GHashTable *fd_uid; -+extern GHashTable *fd_uid; - - /* Speech Dispatcher main priority queue for messages */ --TSpeechDQueue *MessageQueue; -+extern TSpeechDQueue *MessageQueue; - /* List of messages from paused clients waiting for resume */ --GList *MessagePausedList; -+extern GList *MessagePausedList; - - /* List of different entries of client-specific configuration */ --GList *client_specific_settings; -+extern GList *client_specific_settings; - - /* Saves the last received priority progress message */ --GList *last_p5_block; -+extern GList *last_p5_block; - - /* Global default settings */ --TFDSetElement GlobalFDSet; -+extern TFDSetElement GlobalFDSet; - - /* Inter thread comm pipe */ --int speaking_pipe[2]; -+extern int speaking_pipe[2]; - - /* Managing sockets communication */ --GHashTable *speechd_sockets_status; -+extern GHashTable *speechd_sockets_status; - typedef struct { - int awaiting_data; - int inside_block; -@@ -234,10 +234,10 @@ void MSG2(int level, char *kind, char *format, ...); - #define FATAL(msg) do { fatal_error(); MSG(-1,"Fatal error [%s:%d]:"msg, __FILE__, __LINE__); exit(EXIT_FAILURE); } while (0) - #define DIE(msg) do { MSG(0,"Error [%s:%d]:"msg, __FILE__, __LINE__); exit(EXIT_FAILURE); } while (0) - --FILE *logfile; --FILE *custom_logfile; --char *custom_log_kind; --FILE *debug_logfile; -+extern FILE *logfile; -+extern FILE *custom_logfile; -+extern char *custom_log_kind; -+extern FILE *debug_logfile; - - /* For debugging purposes, does nothing */ - void fatal_error(void); |