Your message dated Tue, 7 Apr 2020 00:06:25 +0200
with message-id <20200406220625.h2yes5z3njzil5p3@function>
and subject line Re: [Tts-project] Bug#956037: speech-dispatcher: Init script
fails with "ln: failed to create symbolic link"
has caused the Debian Bug report #956037,
regarding speech-dispatcher: Init script fails with "ln: failed to create
symbolic link"
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
956037: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=956037
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: speech-dispatcher
Version: 0.9.0-5
Severity: normal
Dear Maintainer,
Starting speech-dispatcher using the SysV init script errors out with:
rah@lotus:~$ sudo /etc/init.d/speech-dispatcher start
[....] Starting Speech Dispatcher: speech-dispatcherln: failed to create
symbolic link '/var/run/speech-dispatcher/.cache/speech-dispatcher/log': No
such file or directory
rah@lotus:~$
Looking at the script, the creation of the LOGDIR2
LOGDIR2=$PIDDIR/.cache/speech-dispatcher/log
[ -e $LOGDIR2 ] || ln -s /var/log/speech-dispatcher $LOGDIR2
fails because the $PIDDIR/.cache/speech-dispatcher directory doesn't
exist.
Regards,
Bob Ham
-- System Information:
Debian Release: 10.3
APT prefers stable
APT policy: (991, 'stable'), (500, 'stable-updates'), (500, 'stable-debug'),
(500, 'oldstable-updates'), (500, 'oldstable-debug'), (500, 'oldstable'), (70,
'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 5.6.0-linux-latest-31 (SMP w/16 CPU cores; PREEMPT)
Kernel taint flags: TAINT_WARN
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8),
LANGUAGE=en_GB:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
Versions of packages speech-dispatcher depends on:
ii adduser 3.118
ii init-system-helpers 1.56+nmu1
ii libc6 2.28-10
ii libdotconf0 1.3-0.3
ii libglib2.0-0 2.58.3-2+deb10u2
ii libltdl7 2.4.6-9
ii libsndfile1 1.0.28-6
ii libspeechd2 0.9.0-5
ii lsb-base 10.2019051400
ii speech-dispatcher-audio-plugins 0.9.0-5
Versions of packages speech-dispatcher recommends:
pn pulseaudio <none>
ii sound-icons 0.1-6
ii speech-dispatcher-espeak-ng 0.9.0-5
Versions of packages speech-dispatcher suggests:
pn espeak <none>
pn libttspico-utils <none>
pn mbrola <none>
pn speech-dispatcher-cicero <none>
pn speech-dispatcher-doc-cs <none>
pn speech-dispatcher-espeak <none>
pn speech-dispatcher-festival <none>
pn speech-dispatcher-flite <none>
-- Configuration Files:
/etc/speech-dispatcher/speechd.conf changed [not included]
-- no debconf information
--- End Message ---
--- Begin Message ---
Version: 0.9.1-4
Hello,
Bob Ham, le lun. 06 avril 2020 13:41:34 +0100, a ecrit:
> rah@lotus:~$ sudo /etc/init.d/speech-dispatcher start
> [....] Starting Speech Dispatcher: speech-dispatcherln: failed to create
> symbolic link '/var/run/speech-dispatcher/.cache/speech-dispatcher/log': No
> such file or directory
> rah@lotus:~$
>
> Looking at the script, the creation of the LOGDIR2
>
> LOGDIR2=$PIDDIR/.cache/speech-dispatcher/log
> [ -e $LOGDIR2 ] || ln -s /var/log/speech-dispatcher $LOGDIR2
>
> fails because the $PIDDIR/.cache/speech-dispatcher directory doesn't
> exist.
Indeed, that was fixed in version 0.9.1-4 thanks to the attached patch.
Samuel
commit 841de4fc240facf762b6f373b030a81af27dc36c
Author: Samuel Thibault <[email protected]>
Date: Sun Jan 12 16:39:45 2020 +0100
debian/speech-dispatcher.init: Create cache dir as well
(Closes: #948679)
diff --git a/debian/changelog b/debian/changelog
index 254cb2d..28940f3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -15,6 +15,9 @@ speech-dispatcher (0.9.1-4) UNRELEASED; urgency=medium
* Set upstream metadata fields: Bug-Submit (from ./configure),
Repository, Repository-Browse.
+ [ Samuel Thibault ]
+ * debian/speech-dispatcher.init: Create cache dir as well (Closes: #948679).
+
-- Samuel Thibault <[email protected]> Sat, 07 Dec 2019 17:47:12 +0100
speech-dispatcher (0.9.1-3) unstable; urgency=medium
diff --git a/debian/speech-dispatcher.init b/debian/speech-dispatcher.init
index 2a2306b..f2f341b 100644
--- a/debian/speech-dispatcher.init
+++ b/debian/speech-dispatcher.init
@@ -32,7 +32,9 @@ do_start () {
[ -e $SDDIR ] || ln -s $PIDDIR $SDDIR
LOGDIR=$SDDIR/log
[ -e $LOGDIR ] || ln -s /var/log/speech-dispatcher $LOGDIR
- LOGDIR2=$PIDDIR/.cache/speech-dispatcher/log
+ CACHEDIR=$SDDIR/.cache/speech-dispatcher
+ [ -e $CACHEDIR ] || install -d -ospeech-dispatcher -gaudio -m750 $CACHEDIR
+ LOGDIR2=$CACHEDIR/log
[ -e $LOGDIR2 ] || ln -s /var/log/speech-dispatcher $LOGDIR2
start-stop-daemon --oknodo --start --quiet --chuid $USER --pidfile $PIDFILE \
--exec $DAEMON -- --pid-file $PIDFILE
--- End Message ---