Bug 64558 - media-sound/mpd-0.11.4-r1 permission prob
Bug#: 64558 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: All Status: RESOLVED Severity: major Priority: P2
Resolution: FIXED Assigned To: ferringb@gmail.com Reported By: rockoo@gmail.com
Component: Ebuilds
URL: 
Summary: media-sound/mpd-0.11.4-r1 permission prob
Keywords:  
Status Whiteboard: 
Opened: 2004-09-18 12:57 0000
Description:   Opened: 2004-09-18 12:57 0000
media-sound/mpd-0.11.4-r1 permission prob

after updating from 0.11.4-r0 to -r1 we have a little permission prob ...

<snip>
porkoo ~ # /etc/init.d/mpd restart
 * Starting Music Player Daemon...
problem opening file "/var/log/mpd.log" for writing                       [ !! ]
</snip>

------- Comment #1 From Deepu Sudhakar 2004-09-24 00:37:10 0000 -------
I can confirm. The file doesn't get completed.

------- Comment #2 From Daniel Webert 2004-09-25 09:00:35 0000 -------
a snipplet from /var/log/mpd.error.log

<snip>
Sep 25 10:47 : problems opeing audio device while playing "my_stupid_soundfile.mp3"
Sep 25 10:49 : problems writing music db file, "/usr/share/mpd/playlists/.mpddb"
</snip>

------- Comment #3 From Daniel Webert 2004-10-27 08:17:43 0000 -------
can we fix this plz - because it is 'stable' and does not work :(

<snip>
porkoo ~ # /etc/init.d/mpd start
 * Starting Music Player Daemon ...
problems getting ao_driver_info
you may not have permission to the audio device                           [ !! ]
</snip>

<snip>
 + + oggvorbis : Adds support for the OggVorbis audio encoding
 + + mad       : Adds support for mad (high-quality mp3 decoder library and cli frontend)
 + + aac       : Enable support for aac using the faad2 library
 + + audiofile : Adds support for libaudiofile where applicable
 + + ipv6      : Adds support for IP version 6
 + + flac      : Adds support for the flac audio codec
 - - droproot  : Run the daemon as non-root by default.
 + + mikmod    : Adds libmikmod support to allow playing of SoundTracker-style music files
 + + alsa      : Adds support for media-libs/alsa-lib (Advanced Linux Sound Architecture)
</snip>

------- Comment #4 From Brian Harring 2004-10-27 14:05:13 0000 -------
"can we fix this plz - because it is 'stable' and does not work :("
No!  No Fix!

Just kidding :)
Sorry for the delay, I moved recently, and completely missed this :/
I'll have it fixed in cvs shortly.


------- Comment #5 From Brian Harring 2004-10-29 00:42:45 0000 -------
I'm commiting the fixes for the missing files, daniel the issue w/ ao_driver is
related to permissions on the device file.

That's not really mpd's area to be fooling with, added if your using udev the
change would be wiped upon next reboot iirc.

What exactly are the perms on /dev/snd/* for you?  are you using alsa, or
oss...

------- Comment #6 From ak 2004-10-29 13:20:31 0000 -------
There seem to be couple of typos:

-       diropts -m0640 -o mpd -g audio
-       doins ${T}/blah mpd.log
-       doins ${T}/blah mpd.error.log
+       insopts -m0640 -o mpd -g audio
+       newins ${T}/blah mpd.log
+       newins ${T}/blah mpd.error.log

Funny I can't use dmix while mpd is running:

> ALSA lib pcm_direct.c:203:(make_local_socket) connect failed: /tmp/alsa-dmix-12360-1099080260-629622: Permission denied

no wonder since

> srw-------  1 mpd audio 0 &#1054;&#1082;&#1090; 29 23:04 /tmp/alsa-dmix-12360-1099080260-629622

Now how do I go about it?

------- Comment #7 From Chris White (RETIRED) 2004-10-29 19:33:24 0000 -------
I don't actually see this in -r1, but I do see it in -r2 which is the latest
stable.  Therefore, I've fixed it and all is good.  ferringb was about to, but
there was a cvs changeover and he had to go for the weekend, so I'm here to
commit the changes for him.  Thus said, if anything is wrong, yell at me :P.

root@secures /usr/local/portage/gentoo-x86/media-sound/mpd # /etc/init.d/mpd start
 * Starting Music Player Daemon...                                        [ ok ]

so yah :P

------- Comment #8 From Daniel Webert 2004-10-30 12:34:25 0000 -------
- my /etc/mpd/mpd.conf says 'user mpd'
- i'm using oss on devfsd

<snip>
porkoo ~ # ls -lisa /dev/sound/*     
683 0 crw-------  1 rockoo audio 14, 3 Dec 31  1969 /dev/sound/dsp
682 0 crw-------  1 rockoo audio 14, 0 Dec 31  1969 /dev/sound/mixer
</snip>

fixing /etc/security/console.perms helped - see http://forums.gentoo.org/viewtopic.php?t=40991