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

Bug 142613

Summary: /etc/init.d/mpd from media-sound/mpd should depend on /etc/init.d/esound
Product: Gentoo Linux Reporter: Andrzej <wasowski>
Component: New packagesAssignee: Andrej Kacian (RETIRED) <ticho>
Status: RESOLVED FIXED    
Severity: trivial    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: my proposal of new /etc/init.d/mpd
changed the use dependency to after condition

Description Andrzej 2006-08-03 00:30:32 UTC
/etc/init.d/mpd from media-sound/mpd should depend on /etc/init.d/esound

At the moment it sometimes happens that mpd would boot before esound (even if it is configured to use esound).  Then various weird things happen with esound and other applications refuse to play sounds.

Observed with mpd-0.11.5-r2
Comment 1 Andrzej 2006-08-03 00:48:16 UTC
Created attachment 93316 [details]
my proposal of new /etc/init.d/mpd

added esound to the use dependency
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-08-03 00:58:32 UTC
Uhm? It doesn't depend on media-sound/esound at all, how should it depend on it's init script (which won't be even installed)?
Comment 3 Andrzej 2006-08-03 05:04:25 UTC
(In reply to comment #2)
> Uhm? It doesn't depend on media-sound/esound at all, how should it depend on
> it's init script (which won't be even installed)?

Ooops, my fault.  Not being very specific.  You can configure mpd to use esd via libao (see the /etc/mpd.conf file).  This means that mpd should be started after esound.

I guess my fix was wrong. It should not be "use esound" but "after esound".  I was too lazy to check it in the docs before.  You will get an improved fix soon. As far as the documentation implies (http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=4#doc_chap4) "after" is not a dependency.  It will still work if esound is not installed on the system.

Is this more understandable now?


Comment 4 Andrzej 2006-08-03 05:06:30 UTC
Created attachment 93334 [details]
changed the use dependency to after condition
Comment 5 Andrej Kacian (RETIRED) gentoo-dev 2006-08-28 14:04:52 UTC
Actually, "use" is acceptable. I still haven't found out what's the difference between "use" and "after" anyway - both seem to have the same functionality.

I have added "use esound" to both media-sound/mpd and media-sound/mpd-svn initscripts. Thanks, Andrej!