<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>64558</bug_id>
          
          <creation_ts>2004-09-18 12:57 0000</creation_ts>
          <short_desc>media-sound/mpd-0.11.4-r1 permission prob</short_desc>
          <delta_ts>2004-10-30 12:34:25 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>rockoo@gmail.com</reporter>
          <assigned_to>ferringb@gmail.com</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>rockoo@gmail.com</who>
            <bug_when>2004-09-18 12:57:55 0000</bug_when>
            <thetext>media-sound/mpd-0.11.4-r1 permission prob

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

&lt;snip&gt;
porkoo ~ # /etc/init.d/mpd restart
 * Starting Music Player Daemon...
problem opening file &quot;/var/log/mpd.log&quot; for writing                       [ !! ]
&lt;/snip&gt;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>deepu_s@hotmail.com</who>
            <bug_when>2004-09-24 00:37:10 0000</bug_when>
            <thetext>I can confirm. The file doesn&apos;t get completed.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rockoo@gmail.com</who>
            <bug_when>2004-09-25 09:00:35 0000</bug_when>
            <thetext>a snipplet from /var/log/mpd.error.log

&lt;snip&gt;
Sep 25 10:47 : problems opeing audio device while playing &quot;my_stupid_soundfile.mp3&quot;
Sep 25 10:49 : problems writing music db file, &quot;/usr/share/mpd/playlists/.mpddb&quot;
&lt;/snip&gt;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rockoo@gmail.com</who>
            <bug_when>2004-10-27 08:17:43 0000</bug_when>
            <thetext>can we fix this plz - because it is &apos;stable&apos; and does not work :(

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

&lt;snip&gt;
 + + 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)
&lt;/snip&gt;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ferringb@gmail.com</who>
            <bug_when>2004-10-27 14:05:13 0000</bug_when>
            <thetext>&quot;can we fix this plz - because it is &apos;stable&apos; and does not work :(&quot;
No!  No Fix!

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

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ferringb@gmail.com</who>
            <bug_when>2004-10-29 00:42:45 0000</bug_when>
            <thetext>I&apos;m commiting the fixes for the missing files, daniel the issue w/ ao_driver is related to permissions on the device file.

That&apos;s not really mpd&apos;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...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>4nykey@gmail.com</who>
            <bug_when>2004-10-29 13:20:31 0000</bug_when>
            <thetext>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&apos;t use dmix while mpd is running:

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

no wonder since

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

Now how do I go about it?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>chriswhite@gentoo.org</who>
            <bug_when>2004-10-29 19:33:24 0000</bug_when>
            <thetext>I don&apos;t actually see this in -r1, but I do see it in -r2 which is the latest
stable.  Therefore, I&apos;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&apos;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</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>rockoo@gmail.com</who>
            <bug_when>2004-10-30 12:34:25 0000</bug_when>
            <thetext>- my /etc/mpd/mpd.conf says &apos;user mpd&apos;
- i&apos;m using oss on devfsd

&lt;snip&gt;
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
&lt;/snip&gt;

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

</bugzilla>