new package: speechd (#6624)
This commit is contained in:
parent
cd23a4545b
commit
d74e89d9f7
11
packages/dotconf/build.sh
Normal file
11
packages/dotconf/build.sh
Normal file
@ -0,0 +1,11 @@
|
||||
TERMUX_PKG_HOMEPAGE=https://github.com/williamh/dotconf
|
||||
TERMUX_PKG_DESCRIPTION="dot.conf configuration file parser"
|
||||
TERMUX_PKG_VERSION=1.3
|
||||
TERMUX_PKG_LICENSE="LGPL-2.1"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
TERMUX_PKG_SHA256=7f1ecf40de1ad002a065a321582ed34f8c14242309c3547ad59710ae3c805653
|
||||
TERMUX_PKG_SRCURL=https://github.com/williamh/dotconf/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
||||
|
||||
termux_step_pre_configure () {
|
||||
aclocal && libtoolize --force && autoreconf -fi
|
||||
}
|
40
packages/speechd/build.sh
Normal file
40
packages/speechd/build.sh
Normal file
@ -0,0 +1,40 @@
|
||||
TERMUX_PKG_HOMEPAGE=https://github.com/brailcom/speechd
|
||||
TERMUX_PKG_DESCRIPTION="Common interface to speech synthesis"
|
||||
TERMUX_PKG_LICENSE="LGPL-2.1, GPL-2.0"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
TERMUX_PKG_VERSION=0.10.2
|
||||
TERMUX_PKG_SHA256=056efb80186f2bfc3f6ef468ab9905ca2d652cc2180b13514b752a9d616a6930
|
||||
TERMUX_PKG_SRCURL=https://github.com/brailcom/speechd/archive/${TERMUX_PKG_VERSION}.tar.gz
|
||||
TERMUX_PKG_DEPENDS="dotconf, espeak, glib, libiconv, pulseaudio, python"
|
||||
TERMUX_PKG_BUILD_DEPENDS="libiconv-static, libsndfile-static"
|
||||
|
||||
##
|
||||
## Note: package needs patching for proper fix of pthread_cancel usage.
|
||||
## Right now it uses pthread_kill(t, 0) which does nothing and is not
|
||||
## correct solution to the missing pthread_cancel on Android OS.
|
||||
## See package "calcurse" for example of proper pthread_cancel replacement.
|
||||
##
|
||||
|
||||
# Fails to find generated headers
|
||||
TERMUX_PKG_BUILD_IN_SRC=true
|
||||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
||||
--disable-static
|
||||
--with-pulse
|
||||
--with-espeak-ng
|
||||
"
|
||||
|
||||
# spd-conf needs python stuff, so remove for now
|
||||
TERMUX_PKG_RM_AFTER_INSTALL="bin/spd-conf"
|
||||
|
||||
# We cannot run cross-compiled programs to get help message, so disable
|
||||
# man-page generation with help2man
|
||||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+="ac_cv_prog_HELP2MAN="
|
||||
|
||||
termux_step_pre_configure () {
|
||||
_PYTHON_VERSION=$(source $TERMUX_SCRIPTDIR/packages/python/build.sh; echo $_MAJOR_VERSION)
|
||||
./build.sh
|
||||
}
|
||||
|
||||
termux_step_post_massage() {
|
||||
mv lib/python3* lib/python$_PYTHON_VERSION
|
||||
}
|
22
packages/speechd/i18n.c.patch
Normal file
22
packages/speechd/i18n.c.patch
Normal file
@ -0,0 +1,22 @@
|
||||
--- ./src/common/i18n.c.orig 2021-04-05 19:46:45.166906583 +0000
|
||||
+++ ./src/common/i18n.c 2021-04-05 19:53:41.936476655 +0000
|
||||
@@ -29,18 +29,5 @@
|
||||
|
||||
void i18n_init(void)
|
||||
{
|
||||
- if (setlocale(LC_ALL, "") == NULL) {
|
||||
- perror("setlocale");
|
||||
- exit(1);
|
||||
- }
|
||||
-
|
||||
- if (bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR) == NULL) {
|
||||
- perror("bindtextdomain");
|
||||
- exit(1);
|
||||
- }
|
||||
-
|
||||
- if (textdomain(GETTEXT_PACKAGE) == NULL) {
|
||||
- perror("textdomain");
|
||||
- exit(1);
|
||||
- }
|
||||
+
|
||||
}
|
19
packages/speechd/index_strchr.patch
Normal file
19
packages/speechd/index_strchr.patch
Normal file
@ -0,0 +1,19 @@
|
||||
--- ../speechd-0.10.2/src/clients/say/say.c 2020-11-24 23:38:03.000000000 +0000
|
||||
+++ ./src/clients/say/say.c 2021-04-05 18:31:24.825310937 +0000
|
||||
@@ -128,13 +128,13 @@
|
||||
printf("Invalid language!\n");
|
||||
} else {
|
||||
char *locale = strdup(setlocale(LC_MESSAGES, NULL));
|
||||
- char *dot = index(locale, '.');
|
||||
+ char *dot = strchr(locale, '.');
|
||||
if (dot)
|
||||
*dot = 0;
|
||||
- char *at = index(locale, '@');
|
||||
+ char *at = strchr(locale, '@');
|
||||
if (at)
|
||||
*at = 0;
|
||||
- char *underscore = index(locale, '_');
|
||||
+ char *underscore = strchr(locale, '_');
|
||||
if (underscore)
|
||||
*underscore = '-';
|
||||
if (spd_set_language(conn, locale))
|
11
packages/speechd/speechd.h.patch
Normal file
11
packages/speechd/speechd.h.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- ../speechd.h 2018-10-16 16:57:51.355159010 +0000
|
||||
+++ ./src/server/speechd.h 2018-10-16 16:58:00.751157017 +0000
|
||||
@@ -49,7 +49,7 @@
|
||||
|
||||
#include <semaphore.h>
|
||||
#include <sys/ipc.h>
|
||||
-#include <sys/sem.h>
|
||||
+#include <linux/sem.h>
|
||||
|
||||
#define SPEECHD_DEBUG 0
|
||||
|
104
packages/speechd/speechd.patch
Normal file
104
packages/speechd/speechd.patch
Normal file
@ -0,0 +1,104 @@
|
||||
diff -u -r ../speechd-0.10.2/src/api/c/libspeechd.c ./src/api/c/libspeechd.c
|
||||
--- ../speechd-0.10.2/src/api/c/libspeechd.c 2020-11-24 23:38:03.000000000 +0000
|
||||
+++ ./src/api/c/libspeechd.c 2021-04-05 18:06:21.834517140 +0000
|
||||
@@ -608,7 +608,7 @@
|
||||
pthread_mutex_lock(&connection->ssip_mutex);
|
||||
|
||||
if (connection->mode == SPD_MODE_THREADED) {
|
||||
- pthread_cancel(connection->td->events_thread);
|
||||
+ pthread_kill(connection->td->events_thread, 0);
|
||||
pthread_mutex_destroy(&connection->td->mutex_reply_ready);
|
||||
pthread_mutex_destroy(&connection->td->mutex_reply_ack);
|
||||
pthread_cond_destroy(&connection->td->cond_reply_ready);
|
||||
diff -u -r ../speechd-0.10.2/src/audio/nas.c ./src/audio/nas.c
|
||||
--- ../speechd-0.10.2/src/audio/nas.c 2020-11-24 23:38:03.000000000 +0000
|
||||
+++ ./src/audio/nas.c 2021-04-05 18:06:21.834517140 +0000
|
||||
@@ -51,7 +51,6 @@
|
||||
static void *_nas_handle_events(void *par)
|
||||
{
|
||||
spd_nas_id_t *nas_id = (spd_nas_id_t *) par;
|
||||
- pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL);
|
||||
|
||||
while (1)
|
||||
AuHandleEvents(nas_id->aud);
|
||||
@@ -209,7 +208,7 @@
|
||||
if (nas_id == NULL)
|
||||
return -2;
|
||||
|
||||
- pthread_cancel(nas_id->nas_event_handler);
|
||||
+ pthread_kill(nas_id->nas_event_handler, 0);
|
||||
pthread_join(nas_id->nas_event_handler, NULL);
|
||||
|
||||
pthread_mutex_destroy(&nas_id->pt_mutex);
|
||||
diff -u -r ../speechd-0.10.2/src/modules/baratinoo.c ./src/modules/baratinoo.c
|
||||
--- ../speechd-0.10.2/src/modules/baratinoo.c 2020-11-24 23:38:03.000000000 +0000
|
||||
+++ ./src/modules/baratinoo.c 2021-04-05 18:06:21.834517140 +0000
|
||||
@@ -561,7 +561,7 @@
|
||||
g_usleep(25000);
|
||||
|
||||
/* Make sure the thread has really exited */
|
||||
- pthread_cancel(engine->thread);
|
||||
+ pthread_kill(engine->thread, 0);
|
||||
DBG(DBG_MODNAME "Joining threads.");
|
||||
if (pthread_join(engine->thread, NULL) != 0)
|
||||
DBG(DBG_MODNAME "Failed to join threads.");
|
||||
diff -u -r ../speechd-0.10.2/src/modules/module_utils.c ./src/modules/module_utils.c
|
||||
--- ../speechd-0.10.2/src/modules/module_utils.c 2020-11-24 23:38:03.000000000 +0000
|
||||
+++ ./src/modules/module_utils.c 2021-04-05 18:06:21.834517140 +0000
|
||||
@@ -891,15 +891,17 @@
|
||||
DBG("Can't fill signal set, expect problems when terminating!\n");
|
||||
}
|
||||
|
||||
+#ifndef __ANDROID__
|
||||
pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL);
|
||||
pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, NULL);
|
||||
+#endif
|
||||
}
|
||||
|
||||
int module_terminate_thread(pthread_t thread)
|
||||
{
|
||||
int ret;
|
||||
|
||||
- ret = pthread_cancel(thread);
|
||||
+ ret = pthread_kill(thread, 0);
|
||||
if (ret != 0) {
|
||||
DBG("Cancellation of speak thread failed");
|
||||
return 1;
|
||||
diff -u -r ../speechd-0.10.2/src/server/speaking.c ./src/server/speaking.c
|
||||
--- ../speechd-0.10.2/src/server/speaking.c 2020-11-24 23:38:03.000000000 +0000
|
||||
+++ ./src/server/speaking.c 2021-04-05 18:06:21.834517140 +0000
|
||||
@@ -950,9 +950,10 @@
|
||||
MSG(1,
|
||||
"Can't fill signal set, expect problems when terminating!");
|
||||
}
|
||||
-
|
||||
+#ifndef __ANDROID__
|
||||
pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL);
|
||||
pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, NULL);
|
||||
+#endif __ANDROID__
|
||||
}
|
||||
|
||||
void stop_priority_except_first(SPDPriority priority)
|
||||
diff -u -r ../speechd-0.10.2/src/server/speechd.c ./src/server/speechd.c
|
||||
--- ../speechd-0.10.2/src/server/speechd.c 2020-11-24 23:38:03.000000000 +0000
|
||||
+++ ./src/server/speechd.c 2021-04-05 18:06:21.834517140 +0000
|
||||
@@ -1285,7 +1285,7 @@
|
||||
g_hash_table_destroy(fd_settings);
|
||||
|
||||
MSG(4, "Closing speak() thread...");
|
||||
- ret = pthread_cancel(speak_thread);
|
||||
+ ret = pthread_kill(speak_thread, 0);
|
||||
if (ret != 0)
|
||||
FATAL("Speak thread failed to cancel!\n");
|
||||
|
||||
--- ../speechd-0.10.2/src/modules/Makefile.am 2020-11-24 23:38:03.000000000 +0000
|
||||
+++ ./src/modules/Makefile.am 2021-04-05 18:13:05.761394281 +0000
|
||||
@@ -134,7 +134,7 @@
|
||||
modulebin_PROGRAMS += sd_baratinoo
|
||||
sd_baratinoo_SOURCES = baratinoo.c baratinoo_compat.h $(audio_SOURCES) $(common_SOURCES) module_utils_speak_queue.c
|
||||
sd_baratinoo_LDADD = $(top_builddir)/src/common/libcommon.la \
|
||||
- $(audio_dlopen_modules) -lbaratinoo -lpthread -ldl \
|
||||
+ $(audio_dlopen_modules) -lbaratinoo -ldl \
|
||||
$(common_LDADD)
|
||||
|
||||
if baratinoo_shim
|
346
packages/speechd/tmpdir.patch
Normal file
346
packages/speechd/tmpdir.patch
Normal file
@ -0,0 +1,346 @@
|
||||
diff -u -r ../src.orig/config/modules/baratinoo.conf ./config/modules/baratinoo.conf
|
||||
--- ../src.orig/config/modules/baratinoo.conf 2021-04-05 20:10:31.958686047 +0000
|
||||
+++ ./config/modules/baratinoo.conf 2021-04-05 20:11:39.501980984 +0000
|
||||
@@ -39,7 +39,7 @@
|
||||
# DebugFile specifies the file where the debugging information
|
||||
# should be stored (note that the log is overwritten each time
|
||||
# the module starts)
|
||||
-# DebugFile "/tmp/debug-baratinoo"
|
||||
+# DebugFile "@TERMUX_PREFIX@/tmp/debug-baratinoo"
|
||||
|
||||
|
||||
# Copyright (C) 2017 Colomban Wendling <cwendling@hypra.fr>
|
||||
diff -u -r ../src.orig/config/modules/festival.conf ./config/modules/festival.conf
|
||||
--- ../src.orig/config/modules/festival.conf 2021-04-05 20:10:31.958686047 +0000
|
||||
+++ ./config/modules/festival.conf 2021-04-05 20:11:39.531980966 +0000
|
||||
@@ -70,7 +70,7 @@
|
||||
Debug 0
|
||||
|
||||
# If FestivalDebugSaveOutput is set to 1, it writes the produced sound tracks
|
||||
-# to /tmp/debug-festival-*.snd before it says them. You can later browse them
|
||||
+# to @TERMUX_PREFIX@/tmp/debug-festival-*.snd before it says them. You can later browse them
|
||||
# for debugging purposes. They are numbered in order starting from 0.
|
||||
|
||||
# FestivalDebugSaveOutput 0
|
||||
diff -u -r ../src.orig/config/modules/flite.conf ./config/modules/flite.conf
|
||||
--- ../src.orig/config/modules/flite.conf 2021-04-05 20:10:31.958686047 +0000
|
||||
+++ ./config/modules/flite.conf 2021-04-05 20:11:39.505314316 +0000
|
||||
@@ -12,7 +12,7 @@
|
||||
# DebugFile specifies the file where the debugging information
|
||||
# should be stored (note that the log is overwritten each time
|
||||
# the module starts)
|
||||
-# DebugFile "/tmp/debug-flite"
|
||||
+# DebugFile "@TERMUX_PREFIX@/tmp/debug-flite"
|
||||
|
||||
|
||||
# Copyright (C) 2003-2008 Brailcom, o.p.s
|
||||
diff -u -r ../src.orig/config/modules/ibmtts.conf ./config/modules/ibmtts.conf
|
||||
--- ../src.orig/config/modules/ibmtts.conf 2021-04-05 20:10:31.958686047 +0000
|
||||
+++ ./config/modules/ibmtts.conf 2021-04-05 20:11:39.495314322 +0000
|
||||
@@ -104,7 +104,7 @@
|
||||
# should be stored (note that the log is overwritten each time
|
||||
# the module starts)
|
||||
|
||||
-# DebugFile "/tmp/debug-ibmtts"
|
||||
+# DebugFile "@TERMUX_PREFIX@/tmp/debug-ibmtts"
|
||||
|
||||
# -- VOICE PARAMETERS --
|
||||
|
||||
diff -u -r ../src.orig/config/modules/ivona.conf ./config/modules/ivona.conf
|
||||
--- ../src.orig/config/modules/ivona.conf 2021-04-05 20:10:31.958686047 +0000
|
||||
+++ ./config/modules/ivona.conf 2021-04-05 20:11:39.525314303 +0000
|
||||
@@ -14,7 +14,7 @@
|
||||
# DebugFile specifies the file where the debugging information
|
||||
# should be stored (note that the log is overwritten each time
|
||||
# the module starts)
|
||||
-# DebugFile "/tmp/debug-ivona"
|
||||
+# DebugFile "@TERMUX_PREFIX@/tmp/debug-ivona"
|
||||
|
||||
# IvonaMinCapLet overrides DefaultCapLetRecognition. Set to:
|
||||
# 1 for "icon" - play icon even if default is "none"
|
||||
diff -u -r ../src.orig/config/modules/llia_phon-generic.conf ./config/modules/llia_phon-generic.conf
|
||||
--- ../src.orig/config/modules/llia_phon-generic.conf 2021-04-05 20:10:31.958686047 +0000
|
||||
+++ ./config/modules/llia_phon-generic.conf 2021-04-05 20:11:39.521980972 +0000
|
||||
@@ -69,7 +69,7 @@
|
||||
# DebugFile specifies the file where the debugging information
|
||||
# should be stored (note that the log is overwritten each time
|
||||
# the module starts)
|
||||
-# DebugFile "/tmp/debug-llia-phon-generic"
|
||||
+# DebugFile "@TERMUX_PREFIX@/tmp/debug-llia-phon-generic"
|
||||
|
||||
|
||||
# Copyright (C) 2004-2008 Brailcom, o.p.s
|
||||
diff -u -r ../src.orig/config/modules/swift-generic.conf ./config/modules/swift-generic.conf
|
||||
--- ../src.orig/config/modules/swift-generic.conf 2021-04-05 20:10:31.958686047 +0000
|
||||
+++ ./config/modules/swift-generic.conf 2021-04-05 20:11:39.478647665 +0000
|
||||
@@ -23,7 +23,7 @@
|
||||
# can modify this value, see other parameters).
|
||||
# The command can be split into more lines, if necessary, using '\'.
|
||||
GenericExecuteSynth \
|
||||
- "printf %s \'$DATA\' >/tmp/swift-speak.txt && /opt/swift/bin/swift -p speech/rate=$RATE,speech/pitch/shift=$PITCH,tts/content-type=text/plain,tts/text-encoding=utf-8,config/default-voice=$VOICE -f /tmp/swift-speak.txt -o /tmp/swift-speak.wav&& $PLAY_COMMAND /tmp/swift-speak.wav"
|
||||
+ "printf %s \'$DATA\' >@TERMUX_PREFIX@/tmp/swift-speak.txt && /opt/swift/bin/swift -p speech/rate=$RATE,speech/pitch/shift=$PITCH,tts/content-type=text/plain,tts/text-encoding=utf-8,config/default-voice=$VOICE -f @TERMUX_PREFIX@/tmp/swift-speak.txt -o @TERMUX_PREFIX@/tmp/swift-speak.wav&& $PLAY_COMMAND @TERMUX_PREFIX@/tmp/swift-speak.wav"
|
||||
|
||||
GenericCmdDependency "/opt/swift/bin/swift"
|
||||
GenericSoundIconFolder "/usr/share/sounds/sound-icons/"
|
||||
diff -u -r ../src.orig/config/modules/voxin.conf ./config/modules/voxin.conf
|
||||
--- ../src.orig/config/modules/voxin.conf 2021-04-05 20:10:31.958686047 +0000
|
||||
+++ ./config/modules/voxin.conf 2021-04-05 20:11:39.548647622 +0000
|
||||
@@ -104,7 +104,7 @@
|
||||
# should be stored (note that the log is overwritten each time
|
||||
# the module starts)
|
||||
|
||||
-# DebugFile "/tmp/debug-ibmtts"
|
||||
+# DebugFile "@TERMUX_PREFIX@/tmp/debug-ibmtts"
|
||||
|
||||
# -- VOICE PARAMETERS --
|
||||
|
||||
diff -u -r ../src.orig/doc/speech-dispatcher.texi ./doc/speech-dispatcher.texi
|
||||
--- ../src.orig/doc/speech-dispatcher.texi 2021-04-05 20:10:31.962019379 +0000
|
||||
+++ ./doc/speech-dispatcher.texi 2021-04-05 20:11:39.898647405 +0000
|
||||
@@ -527,8 +527,8 @@
|
||||
|
||||
@example
|
||||
killall -u `whoami` speech-dispatcher
|
||||
-speech-dispatcher -c unix_socket -S /tmp/my.sock
|
||||
-SPEECHD_ADDRESS=unix_socket:/tmp/my.sock spd-say "test"
|
||||
+speech-dispatcher -c unix_socket -S @TERMUX_PREFIX@/tmp/my.sock
|
||||
+SPEECHD_ADDRESS=unix_socket:@TERMUX_PREFIX@/tmp/my.sock spd-say "test"
|
||||
@end example
|
||||
|
||||
@node Troubleshooting, Configuration, Running, User's Documentation
|
||||
@@ -896,7 +896,7 @@
|
||||
@example
|
||||
GenericExecuteSynth \
|
||||
"epos-say -o --language $LANG --voice $VOICE --init_f $PITCH --init_t $RATE \
|
||||
-\"$DATA\" | sed -e s+unknown.*$++ >/tmp/epos-said.wav && play /tmp/epos-said.wav >/dev/null"
|
||||
+\"$DATA\" | sed -e s+unknown.*$++ >@TERMUX_PREFIX@/tmp/epos-said.wav && play @TERMUX_PREFIX@/tmp/epos-said.wav >/dev/null"
|
||||
@end example
|
||||
@end defvr
|
||||
|
||||
@@ -1244,7 +1244,7 @@
|
||||
Examples of valid address lines are:
|
||||
@example
|
||||
unix_socket
|
||||
-unix_socket:/tmp/test.sock
|
||||
+unix_socket:@TERMUX_PREFIX@/tmp/test.sock
|
||||
inet_socket
|
||||
inet_socket:192.168.0.34
|
||||
inet_socket:192.168.0.34:6563
|
||||
diff -u -r ../src.orig/po/cs.po ./po/cs.po
|
||||
--- ../src.orig/po/cs.po 2021-04-05 20:10:31.985352701 +0000
|
||||
+++ ./po/cs.po 2021-04-05 20:11:39.751980829 +0000
|
||||
@@ -144,7 +144,7 @@
|
||||
|
||||
#: src/server/options.c:110
|
||||
#, c-format
|
||||
-msgid "if TMPDIR is exported, otherwise to /tmp/%s\n"
|
||||
+msgid "if TMPDIR is exported, otherwise to @TERMUX_PREFIX@/tmp/%s\n"
|
||||
msgstr ""
|
||||
|
||||
#: src/server/options.c:113 src/clients/say/options.c:169
|
||||
diff -u -r ../src.orig/po/de.po ./po/de.po
|
||||
--- ../src.orig/po/de.po 2021-04-05 20:10:31.985352701 +0000
|
||||
+++ ./po/de.po 2021-04-05 20:11:39.718647517 +0000
|
||||
@@ -144,8 +144,8 @@
|
||||
|
||||
#: src/server/options.c:110
|
||||
#, c-format
|
||||
-msgid "if TMPDIR is exported, otherwise to /tmp/%s\n"
|
||||
-msgstr "falls TMPDIR exportiert wurde, andernfalls nach /tmp/%s\n"
|
||||
+msgid "if TMPDIR is exported, otherwise to @TERMUX_PREFIX@/tmp/%s\n"
|
||||
+msgstr "falls TMPDIR exportiert wurde, andernfalls nach @TERMUX_PREFIX@/tmp/%s\n"
|
||||
|
||||
#: src/server/options.c:113 src/clients/say/options.c:169
|
||||
#, c-format
|
||||
diff -u -r ../src.orig/po/fr.po ./po/fr.po
|
||||
--- ../src.orig/po/fr.po 2021-04-05 20:10:31.985352701 +0000
|
||||
+++ ./po/fr.po 2021-04-05 20:11:39.765314154 +0000
|
||||
@@ -130,8 +130,8 @@
|
||||
|
||||
#: src/server/options.c:110
|
||||
#, c-format
|
||||
-msgid "if TMPDIR is exported, otherwise to /tmp/%s\n"
|
||||
-msgstr "si TMPDIR est exporté, sinon dans /tmp/%s\n"
|
||||
+msgid "if TMPDIR is exported, otherwise to @TERMUX_PREFIX@/tmp/%s\n"
|
||||
+msgstr "si TMPDIR est exporté, sinon dans @TERMUX_PREFIX@/tmp/%s\n"
|
||||
|
||||
#: src/server/options.c:113 src/clients/say/options.c:169
|
||||
#, c-format
|
||||
diff -u -r ../src.orig/po/hu.po ./po/hu.po
|
||||
--- ../src.orig/po/hu.po 2021-04-05 20:10:31.985352701 +0000
|
||||
+++ ./po/hu.po 2021-04-05 20:11:39.771980817 +0000
|
||||
@@ -144,7 +144,7 @@
|
||||
|
||||
#: src/server/options.c:110
|
||||
#, c-format
|
||||
-msgid "if TMPDIR is exported, otherwise to /tmp/%s\n"
|
||||
+msgid "if TMPDIR is exported, otherwise to @TERMUX_PREFIX@/tmp/%s\n"
|
||||
msgstr ""
|
||||
|
||||
#: src/server/options.c:113 src/clients/say/options.c:169
|
||||
diff -u -r ../src.orig/po/nb_NO.po ./po/nb_NO.po
|
||||
--- ../src.orig/po/nb_NO.po 2021-04-05 20:10:31.985352701 +0000
|
||||
+++ ./po/nb_NO.po 2021-04-05 20:11:39.758647492 +0000
|
||||
@@ -131,8 +131,8 @@
|
||||
|
||||
#: src/server/options.c:110
|
||||
#, fuzzy, c-format
|
||||
-msgid "if TMPDIR is exported, otherwise to /tmp/%s\n"
|
||||
-msgstr "Hvis TMPDIR eksporteres, ellers til /tmp/%s\n"
|
||||
+msgid "if TMPDIR is exported, otherwise to @TERMUX_PREFIX@/tmp/%s\n"
|
||||
+msgstr "Hvis TMPDIR eksporteres, ellers til @TERMUX_PREFIX@/tmp/%s\n"
|
||||
|
||||
#: src/server/options.c:113 src/clients/say/options.c:169
|
||||
#, c-format
|
||||
diff -u -r ../src.orig/po/pt_BR.po ./po/pt_BR.po
|
||||
--- ../src.orig/po/pt_BR.po 2021-04-05 20:10:31.985352701 +0000
|
||||
+++ ./po/pt_BR.po 2021-04-05 20:11:39.735314173 +0000
|
||||
@@ -131,8 +131,8 @@
|
||||
|
||||
#: src/server/options.c:110
|
||||
#, c-format
|
||||
-msgid "if TMPDIR is exported, otherwise to /tmp/%s\n"
|
||||
-msgstr "se TMPDIR for exportado; senão para /tmp/%s\n"
|
||||
+msgid "if TMPDIR is exported, otherwise to @TERMUX_PREFIX@/tmp/%s\n"
|
||||
+msgstr "se TMPDIR for exportado; senão para @TERMUX_PREFIX@/tmp/%s\n"
|
||||
|
||||
#: src/server/options.c:113 src/clients/say/options.c:169
|
||||
#, c-format
|
||||
diff -u -r ../src.orig/po/pt.po ./po/pt.po
|
||||
--- ../src.orig/po/pt.po 2021-04-05 20:10:31.985352701 +0000
|
||||
+++ ./po/pt.po 2021-04-05 20:11:39.761980823 +0000
|
||||
@@ -130,8 +130,8 @@
|
||||
|
||||
#: src/server/options.c:110
|
||||
#, c-format
|
||||
-msgid "if TMPDIR is exported, otherwise to /tmp/%s\n"
|
||||
-msgstr "se TMPDIR for exportado; senão para /tmp/%s\n"
|
||||
+msgid "if TMPDIR is exported, otherwise to @TERMUX_PREFIX@/tmp/%s\n"
|
||||
+msgstr "se TMPDIR for exportado; senão para @TERMUX_PREFIX@/tmp/%s\n"
|
||||
|
||||
#: src/server/options.c:113 src/clients/say/options.c:169
|
||||
#, c-format
|
||||
diff -u -r ../src.orig/po/ru.po ./po/ru.po
|
||||
--- ../src.orig/po/ru.po 2021-04-05 20:10:31.985352701 +0000
|
||||
+++ ./po/ru.po 2021-04-05 20:11:39.738647504 +0000
|
||||
@@ -129,7 +129,7 @@
|
||||
|
||||
#: src/server/options.c:110
|
||||
#, c-format
|
||||
-msgid "if TMPDIR is exported, otherwise to /tmp/%s\n"
|
||||
+msgid "if TMPDIR is exported, otherwise to @TERMUX_PREFIX@/tmp/%s\n"
|
||||
msgstr ""
|
||||
|
||||
#: src/server/options.c:113 src/clients/say/options.c:169
|
||||
diff -u -r ../src.orig/po/speech-dispatcher.pot ./po/speech-dispatcher.pot
|
||||
--- ../src.orig/po/speech-dispatcher.pot 2021-04-05 20:10:31.985352701 +0000
|
||||
+++ ./po/speech-dispatcher.pot 2021-04-05 20:11:39.725314179 +0000
|
||||
@@ -126,7 +126,7 @@
|
||||
|
||||
#: src/server/options.c:110
|
||||
#, c-format
|
||||
-msgid "if TMPDIR is exported, otherwise to /tmp/%s\n"
|
||||
+msgid "if TMPDIR is exported, otherwise to @TERMUX_PREFIX@/tmp/%s\n"
|
||||
msgstr ""
|
||||
|
||||
#: src/server/options.c:113 src/clients/say/options.c:169
|
||||
diff -u -r ../src.orig/src/api/c/libspeechd.c ./src/api/c/libspeechd.c
|
||||
--- ../src.orig/src/api/c/libspeechd.c 2021-04-05 20:10:31.985352701 +0000
|
||||
+++ ./src/api/c/libspeechd.c 2021-04-05 20:11:42.535312431 +0000
|
||||
@@ -239,7 +239,7 @@
|
||||
{
|
||||
#ifdef LIBSPEECHD_DEBUG
|
||||
if (!spd_debug) {
|
||||
- spd_debug = fopen("/tmp/libspeechd.log", "w");
|
||||
+ spd_debug = fopen("@TERMUX_PREFIX@/tmp/libspeechd.log", "w");
|
||||
if (spd_debug == NULL)
|
||||
SPD_FATAL("COULDN'T ACCES FILE INTENDED FOR DEBUG");
|
||||
|
||||
diff -u -r ../src.orig/src/api/python/speechd_config/config.py.in ./src/api/python/speechd_config/config.py.in
|
||||
--- ../src.orig/src/api/python/speechd_config/config.py.in 2021-04-05 20:10:31.988686032 +0000
|
||||
+++ ./src/api/python/speechd_config/config.py.in 2021-04-05 20:11:42.371979199 +0000
|
||||
@@ -464,7 +464,7 @@
|
||||
if 'TMPDIR' in os.environ:
|
||||
tmpdir = os.environ['TMPDIR']
|
||||
else:
|
||||
- tmpdir = "/tmp/"
|
||||
+ tmpdir = "@TERMUX_PREFIX@/tmp/"
|
||||
debugdir_path = os.path.join(tmpdir, "speechd-debug")
|
||||
date = datetime.date.today()
|
||||
debugarchive_path = os.path.join(tmpdir, "speechd-debug-%d-%d-%d.tar.gz" %
|
||||
diff -u -r ../src.orig/src/clients/spdsend/server.c ./src/clients/spdsend/server.c
|
||||
--- ../src.orig/src/clients/spdsend/server.c 2021-04-05 20:10:31.988686032 +0000
|
||||
+++ ./src/clients/spdsend/server.c 2021-04-05 20:11:42.218645962 +0000
|
||||
@@ -340,7 +340,7 @@
|
||||
static const char *server_socket_name()
|
||||
{
|
||||
char *name;
|
||||
- if (asprintf(&name, "/tmp/spdsend-server.%s", login_name()) < 0)
|
||||
+ if (asprintf(&name, "@TERMUX_PREFIX@/tmp/spdsend-server.%s", login_name()) < 0)
|
||||
system_error("memory allocation");
|
||||
return name;
|
||||
}
|
||||
diff -u -r ../src.orig/src/modules/festival.c ./src/modules/festival.c
|
||||
--- ../src.orig/src/modules/festival.c 2021-04-05 20:10:31.992019364 +0000
|
||||
+++ ./src/modules/festival.c 2021-04-05 20:11:41.821979543 +0000
|
||||
@@ -474,7 +474,7 @@
|
||||
|
||||
/* TODO: Solve this */
|
||||
// DBG("Removing junk files in tmp/");
|
||||
- // system("rm -f /tmp/est* 2> /dev/null");
|
||||
+ // system("rm -f @TERMUX_PREFIX@/tmp/est* 2> /dev/null");
|
||||
|
||||
sem_destroy(&festival_semaphore);
|
||||
return 0;
|
||||
@@ -644,7 +644,7 @@
|
||||
char filename_debug
|
||||
[256];
|
||||
sprintf(filename_debug,
|
||||
- "/tmp/debug-festival-%d.snd",
|
||||
+ "@TERMUX_PREFIX@/tmp/debug-festival-%d.snd",
|
||||
debug_count++);
|
||||
save_FT_Wave_snd(fwave,
|
||||
filename_debug);
|
||||
@@ -789,7 +789,7 @@
|
||||
if (FestivalDebugSaveOutput) {
|
||||
char filename_debug[256];
|
||||
sprintf(filename_debug,
|
||||
- "/tmp/debug-festival-%d.snd",
|
||||
+ "@TERMUX_PREFIX@/tmp/debug-festival-%d.snd",
|
||||
debug_count++);
|
||||
save_FT_Wave_snd(fwave, filename_debug);
|
||||
}
|
||||
diff -u -r ../src.orig/src/modules/generic.c ./src/modules/generic.c
|
||||
--- ../src.orig/src/modules/generic.c 2021-04-05 20:10:31.992019364 +0000
|
||||
+++ ./src/modules/generic.c 2021-04-05 20:11:41.785312899 +0000
|
||||
@@ -422,7 +422,7 @@
|
||||
if (helper)
|
||||
tmpdir = g_strdup(helper);
|
||||
else
|
||||
- tmpdir = g_strdup("/tmp");
|
||||
+ tmpdir = g_strdup("@TERMUX_PREFIX@/tmp");
|
||||
|
||||
helper = g_get_home_dir();
|
||||
if (helper)
|
||||
diff -u -r ../src.orig/src/server/options.c ./src/server/options.c
|
||||
--- ../src.orig/src/server/options.c 2021-04-05 20:10:31.995352695 +0000
|
||||
+++ ./src/server/options.c 2021-04-05 20:11:41.605313011 +0000
|
||||
@@ -107,7 +107,7 @@
|
||||
printf(_("Output debugging information into $TMPDIR/%s\n"),
|
||||
"speechd-debug");
|
||||
printf(" ");
|
||||
- printf(_("if TMPDIR is exported, otherwise to /tmp/%s\n"),
|
||||
+ printf(_("if TMPDIR is exported, otherwise to @TERMUX_PREFIX@/tmp/%s\n"),
|
||||
"speechd-debug");
|
||||
printf(" -h, --help ");
|
||||
printf(_("Print this info\n"));
|
||||
@@ -201,7 +201,7 @@
|
||||
case 'D':
|
||||
tmpdir = g_strdup(getenv("TMPDIR"));
|
||||
if (!tmpdir)
|
||||
- tmpdir = g_strdup("/tmp");
|
||||
+ tmpdir = g_strdup("@TERMUX_PREFIX@/tmp");
|
||||
SpeechdOptions.debug_destination =
|
||||
g_strdup_printf("%s/speechd-debug", tmpdir);
|
||||
g_free(tmpdir);
|
||||
Binary file (standard input) matches
|
Loading…
Reference in New Issue
Block a user