Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 99969 - media-sound/mpd init script should have "after alsasound", not "use alsasound"
Summary: media-sound/mpd init script should have "after alsasound", not "use alsasound"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
: 102092 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-07-22 16:07 UTC by Mike Kelly
Modified: 2005-10-16 15:06 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Kelly 2005-07-22 16:07:28 UTC
If the mpd init script only "use"s alsasound, alsasound may be stopped before it
is.  However, this will cause mpd to die messily.  If that happens, the state
file may not be properly saved, so it will totally lose its functionality.

Reproducible: Always
Steps to Reproduce:
1.  Shutdown or reboot your system.

Actual Results:  
MPD's state may not be properly saved.  eg. music will not resume playing on
restart, or it may play when it had not been on the last restart.

Expected Results:  
it should be allowed to die nicely [i.e. before its sound drivers are removed]

I happen to be using media-sound/mpd-0.11.5.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-08-11 02:40:26 UTC
*** Bug 102092 has been marked as a duplicate of this bug. ***
Comment 2 Michal Kurgan (RETIRED) gentoo-dev 2005-10-13 09:08:28 UTC
anything can be done with that? it's rather old... 
Comment 3 Andrej Kacian (RETIRED) gentoo-dev 2005-10-16 14:15:46 UTC
"after alsasound" doesn't make mpd service stop when alsasound service is being
stopped, we need "need alsasound" for that. Probably the only viable solution is
to add it to the newly installed initscript, if the alsa USE flag is enabled. I
did that in the mpd-svn package, and it has worked nicely for quite some time now.

This has been added to the 0.11.5 ebuild, as well as new (unstable) 0.11.5-r1
ebuild. Resync your portage tree in few hours.

Thanks for reporting, and for the patience.
Comment 4 Mike Kelly 2005-10-16 15:06:35 UTC
Thank you kindly, Sir, for fixing it. The wait was not a problem.