diff options
Diffstat (limited to 'app-accessibility/speech-dispatcher/files')
2 files changed, 43 insertions, 0 deletions
diff --git a/app-accessibility/speech-dispatcher/files/speech-dispatcher-0.11.1-include-pthread_h.patch b/app-accessibility/speech-dispatcher/files/speech-dispatcher-0.11.1-include-pthread_h.patch new file mode 100644 index 000000000000..3575e2c54c99 --- /dev/null +++ b/app-accessibility/speech-dispatcher/files/speech-dispatcher-0.11.1-include-pthread_h.patch @@ -0,0 +1,14 @@ +This fixes pthread_mutex_t being undefined on musl libc. + +https://github.com/brailcom/speechd/commit/17e4038948f01e389cbd7fedbe3f0eb54ad3292d +https://bugs.gentoo.org/833347 +--- a/src/modules/module_main.h ++++ b/src/modules/module_main.h +@@ -31,6 +31,7 @@ + + #include <speechd_types.h> + #include <spd_audio.h> ++#include <pthread.h> + + #ifdef __cplusplus + extern "C" { 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 new file mode 100644 index 000000000000..545fe2916e05 --- /dev/null +++ b/app-accessibility/speech-dispatcher/files/speech-dispatcher-0.11.1-remove-unused-variable-musl.patch @@ -0,0 +1,29 @@ +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++; + |