Can't install timidity if no sound card avalaible

Bug #235515 reported by mariodebian
18
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://192.168.0.3 hardy/universe timidity 2.13.2-19ubuntu1 [545kB]
Fetched 545kB in 0s (6233kB/s)
Selecting previously deselected package timidity.
(Reading database ... 258670 files and directories currently installed.)
Unpacking timidity (from .../timidity_2.13.2-19ubuntu1_i386.deb) ...
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-2.13.2/debian/timidity.init timidity-2.13.2/debian/timidity.init
--- timidity-2.13.2/debian/timidity.init 2008-05-28 16:44:30.000000000 +0200
+++ timidity-2.13.2/debian/timidity.init 2008-05-28 16:44:31.000000000 +0200
@@ -49,11 +49,10 @@
 case "$1" in
   start)
        #log_daemon_msg "Starting" "${NAME}"
- [ -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"
                exit 0
- }
+ fi
        log_begin_msg "Starting $DESC..."
        if start-stop-daemon ${START} >/dev/null; then
                log_end_msg 0

=====================================

log_end_msg return status != 0 and invoke-rc.d fails

Greetings

Related branches

Revision history for this message
Emmet Hikory (persia) wrote :

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.

Changed in timidity:
assignee: nobody → persia
importance: Undecided → Low
status: New → In Progress
Revision history for this message
Cesare Tirabassi (norsetto) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package timidity - 2.13.2-19ubuntu2

---------------
timidity (2.13.2-19ubuntu2) intrepid; urgency=low

  * Don't try to start the daemon if /dev/snd is missing (LP: #235515)
  * Stop the server on preinst (LP: #120810)

 -- Emmet Hikory <email address hidden> Sat, 09 Aug 2008 01:34:45 +0900

Changed in timidity:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.