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

Bug 416893

Summary: media-tv/xbmc should depend on media-sound/alsa-utils
Product: Gentoo Linux Reporter: hal <laservader>
Component: Current packagesAssignee: Gentoo Xbox project <xbox>
Status: RESOLVED NEEDINFO    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description hal 2012-05-21 11:02:53 UTC
On a dedicated xbmc appliance no other package pulls in alsa-utils resulting in missing /etc/init.d/alsasound init script, alsamixer and other necessary things. The consequence is no audio in xbmc, also the xbmc alsamixer plugin gets completely useless.
Comment 1 hal 2012-05-21 12:31:39 UTC
I guess 

RDEPEND="${COMMON_DEPEND}
alsa? ( media-sound/alsa-utils )"

would make sense.
Comment 2 SpanKY gentoo-dev 2012-05-22 14:18:55 UTC
xbmc doesn't care about init scripts

as for the other tools, if the main xbmc package doesn't run them, the dependency doesn't make sense.  it doesn't matter if an arbitrary xbmc plugin you installed needs these things -- i'm not adding a dependency on every possible package that every plugin out there might happen to use.

if you want to install random plugin $foo that needs random package $bar, it's up to you to install $bar, not the xbmc ebuild.
Comment 3 hal 2012-05-22 14:46:17 UTC
(In reply to comment #2)
> xbmc doesn't care about init scripts

Basically agreed.
Nevertheless the audiocard has to be unmuted in order to use it with xbmc. The initscript restores the mixer levels and muting state.
Without umuting the channels xbmc will not output any audio signal at all.

> as for the other tools, if the main xbmc package doesn't run them, the
> dependency doesn't make sense.  

The xbmc wiki mentions alsa-utils:
http://wiki.xbmc.org/index.php?title=HOW-TO:Setup_HDMI_audio_on_GeForce_GT210,_GT220,_or_GT240#Getting_ALSA

As far as I know xbmc does not run them directly. But users might be wondering why they don't get any audio output.
Maybe we could/should add a reminder for users instead of adding a dependency?

> it doesn't matter if an arbitrary xbmc
> plugin you installed needs these things -- i'm not adding a dependency on
> every possible package that every plugin out there might happen to use.
> 
> if you want to install random plugin $foo that needs random package $bar,
> it's up to you to install $bar, not the xbmc ebuild.

Completely agreed. I mentioned the plugin just as an additional example. I don't want a dependeny for each plugin, too. ;)
Comment 4 SpanKY gentoo-dev 2012-05-22 14:52:30 UTC
yes, the alsa-utils package provides one method for controlling the alsa levels, but it isn't the only way.  anyone can control the audio stack by using libalsa.