Can't install timidity if no sound card avalaible
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
timidity (Ubuntu) |
Fix Released
|
Low
|
Emmet Hikory |
Bug Description
Binary package hint: timidity
# apt-get install timidity
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
pmidi
The following NEW packages will be installed:
timidity
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 545kB of archives.
After this operation, 1729kB of additional disk space will be used.
Get:1 http://
Fetched 545kB in 0s (6233kB/s)
Selecting previously deselected package timidity.
(Reading database ... 258670 files and directories currently installed.)
Unpacking timidity (from .../timidity_
Setting up timidity (2.13.2-19ubuntu1) ...
...fail!
invoke-rc.d: initscript timidity, action "start" failed.
dpkg: error processing timidity (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
timidity
E: Sub-process /usr/bin/dpkg returned an error code (1)
=======
Patch:
diff -Nru timidity-
--- timidity-
+++ timidity-
@@ -49,11 +49,10 @@
case "$1" in
start)
- [ -d /proc/asound ] || {
- log_end_msg 1
- log_warning_msg "ALSA is not active, cannot start $DESC"
+ if [ ! -d /proc/asound ]; then
+ log_warning_msg "ALSA is not active, cannot start $DESC"
- }
+ fi
if start-stop-daemon ${START} >/dev/null; then
=======
log_end_msg return status != 0 and invoke-rc.d fails
Greetings
Actually, I'm testing this based on the presence of /dev/snd because I've found a case where /proc/asound/ exists and /dev/snd/ doesn't, for which timidity still doesn't install.