Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 64558 - media-sound/mpd-0.11.4-r1 permission prob
Summary: media-sound/mpd-0.11.4-r1 permission prob
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High major (vote)
Assignee: Brian Harring (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-18 12:57 UTC by Daniel Webert
Modified: 2004-10-30 12:34 UTC (History)
0 users

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 Daniel Webert 2004-09-18 12:57:55 UTC
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 Deepu Sudhakar 2004-09-24 00:37:10 UTC
I can confirm. The file doesn't get completed.
Comment 2 Daniel Webert 2004-09-25 09:00:35 UTC
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 Daniel Webert 2004-10-27 08:17:43 UTC
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 Brian Harring (RETIRED) gentoo-dev 2004-10-27 14:05:13 UTC
"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 Brian Harring (RETIRED) gentoo-dev 2004-10-29 00:42:45 UTC
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 4nykey 2004-10-29 13:20:31 UTC
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 Chris White (RETIRED) gentoo-dev 2004-10-29 19:33:24 UTC
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 Daniel Webert 2004-10-30 12:34:25 UTC
- 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