Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 255411

Summary: cdemud 1.1.0 doesn't start with the init script from portage
Product: Gentoo Linux Reporter: Michał Ziąbkowski <mziab>
Component: Current packagesAssignee: Marcelo Goes (RETIRED) <vanquirius>
Status: RESOLVED DUPLICATE    
Severity: major CC: bugzie
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Michał Ziąbkowski 2009-01-18 17:41:55 UTC
The command line options for a bit in CDemud 1.1.0, causing the old init script to fail. The reasons are two-fold:

1) The -s option was removed:

# cdemud -s
Failed to parse options: Unknown option -s

2) The audio backend is no longer called "ALSA", but "alsa":

# cdemud --audio-driver=ALSA
Starting daemon in local mode with following parameters:
 - num devices: 1
 - ctl device: /dev/vhba_ctl
 - audio driver: ALSA
 - bus type: system
cdemu0: cdemud_audio_initialize: cannot find driver 'ALSA'!

The fix for the former is obvious: removing -s from the script.

The latter one needs some further consideration, since there are more backends to choose from now. An excerpt from the manpage:
"Few examples of valid libao drivers are alsa, oss, pulse or null.  For all drivers, default device is used. By default, if audio driver is not explicitly specified via this option, null is used."

The script will need to be tweaked to reflect that. Perhaps defaulting to null would be the safest option. Either way, "ALSA" as a backend name is wrong.



Reproducible: Always

Steps to Reproduce:
1. /etc/init.d/cdemud start
Actual Results:  
cdemud            | * Loading CDemu userspace daemon ...                                                                [ !! ]
cdemud            | * ERROR: cdemud failed to start

Expected Results:  
CDemud starts normally
Comment 1 Tiziano Müller (RETIRED) gentoo-dev 2009-03-12 08:04:57 UTC

*** This bug has been marked as a duplicate of bug 233904 ***