<?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>48210</bug_id>
          
          <creation_ts>2004-04-18 05:30 0000</creation_ts>
          <short_desc>media-sound/mpd ebuild: please get rid of the Gentoo config file</short_desc>
          <delta_ts>2004-04-20 11:12:48 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>Applications</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>shank@mercury.chem.pitt.edu</reporter>
          <assigned_to>eradicator@gentoo.org</assigned_to>
          <cc>FunkieDaMouse@hotmail.com</cc>
    
    <cc>nathan.brown@tufts.edu</cc>
    
    <cc>Qball@qballcow.nl</cc>
    
    <cc>sbh@gawab.com</cc>
    
    <cc>sound@gentoo.org</cc>
    
    <cc>starz@antisocial.com</cc>

      

      
          <long_desc isprivate="0">
            <who>shank@mercury.chem.pitt.edu</who>
            <bug_when>2004-04-18 05:30:01 0000</bug_when>
            <thetext>The current ebuilds for mpd install a &quot;gentoo&quot; config file in /etc/conf.d

Please remove this config file!  It causes me too many support headaches, as ppl need to work around problems or change config settings by creating a &quot;real&quot; mpd config file.  So, commonly they add new config options to the gentoo config file, and obviously they do not affect in mpd at all!

Please remove the gentoo config file!  If a default config file is to be installed, use the default one from the mpd source package. and place it at /etc/mpd.conf (or whereever you see fit, and change the init.d scripts appropriatly).

Reproducible: Always
Steps to Reproduce:
1.
2.
3.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>nathan.brown@tufts.edu</who>
            <bug_when>2004-04-18 15:06:47 0000</bug_when>
            <thetext>Created an attachment (id=29579)
new mpd ebuild

This is a new version of the mpd-0.10.3 ebuild that installs the config file to
/etc/mpd.conf and uses the author&apos;s example from the source.  Only thing to
think about is why did the previous version install to /etc/conf.d/mpd and
should the defaults (for example the log file and error file location) be
changed to match Gentoo ideas.

Hope this helps</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>nathan.brown@tufts.edu</who>
            <bug_when>2004-04-18 15:11:23 0000</bug_when>
            <thetext>Oh and here&apos;s the diff between the original version 0.10.3 ebuild and my new version if you&apos;d rather see that:

&lt;       insinto /etc/conf.d
&lt;       newins ${FILESDIR}/mpd.conf mpd
---
&gt;       insinto /etc
&gt;       newins ${S}/doc/mpdconf.example mpd.conf
56c56
&lt;       einfo &quot; LOG_FILE and ERROR_FILE in /etc/conf.d/mpd&quot;
---
&gt;       einfo &quot; LOG_FILE and ERROR_FILE in /etc/mpd.conf&quot;
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>eradicator@gentoo.org</who>
            <bug_when>2004-04-19 13:38:17 0000</bug_when>
            <thetext>the gentoo way works... if users want to do it another way, they&apos;re free to change the init scripts to suit their needs.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>shank@mercury.chem.pitt.edu</who>
            <bug_when>2004-04-19 13:59:27 0000</bug_when>
            <thetext>Then in the next release, I will remove the ability to start mpd with command arguments.  Then the &quot;gentoo way&quot; will not work.

Thank you,
-shank

PS: I don&apos;t find it acceptable, that gentoo must have their own config file, that does not work with the config paramters specified in the mpd manpage!  It is entirely too confusing to users to remember there is a &quot;real&quot; mpd config file, for which there is documentation for in the mpd man page, and there is a &quot;gentto&quot; config file that has nothing todo with the mpd config file.  In fact, if a sure specifies a real config file, it will not use gentoo&apos;s at all!  At the very least, until i break the gentoo config file in the next release, a note should be specified in the gentoo config file that this is not a real config file, and that the parameters in the mpd man page will not work with the gentoo config file!  

Or you can simply just remove the gentoo config file and install a default config file.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>normalperson@yhbt.net</who>
            <bug_when>2004-04-19 14:45:29 0000</bug_when>
            <thetext>There&apos;s absolutely no reason to have a redundant, and more importantly:  incompatible_ configuration file anywhere in /etc when MPD has a perfectly good config file already.

Check out the init script (mpd.init), mpd.postinst, and the libmpdconf shell function library I did for the Debian MPD package if you want some ideas:

http://des.petta-tech.bogomips.org/~eric/viewarch.cgi/eric@petta-tech.com--2004a

Although I maintain Debian packages, I wrote the functions of libmpdconf with ALL distributions in mind and plan on submitting it to be included with MPD itself soon.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>normalperson@yhbt.net</who>
            <bug_when>2004-04-19 15:02:32 0000</bug_when>
            <thetext>Ugh, URL got truncated, sorry about that:

http://des.petta-tech.bogomips.org/~eric/viewarch.cgi/eric@petta-tech.com--2004a-ordinary/debian-mpd--devel--0.1--patch-11/</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>FunkieDaMouse@hotmail.com</who>
            <bug_when>2004-04-19 15:15:10 0000</bug_when>
            <thetext>I have used mpd under gentoo for some time and found it necessary to rewrite the init script so that it would work correctly with mpd&apos;s standard configuration file. I have uploaded the new /etc/init.d/mpd script to http://www.maltastart.com/~whitelynx/programming/downloads/mpd . The current state of the gentoo ebuild for mpd is not only confusing for new users (finding that they have to put the configuration options in a completely different file than the one they first had to edit), it also causes problems for the mpd devs having to explain the whole situation to other users. mpd already has its own configuration file (/etc/mpd.conf) and it should _not_ require any command-line arguments to run, as this was meant for debugging purposes or for running multiple mpd daemons at different ports. It was not meant to take the place of mpd&apos;s original configuration file. Please remove the /etc/conf.d/mpd file and instead copy the example configuration file from mpd&apos;s manpage to /etc/mpd.conf .</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>nathan.brown@tufts.edu</who>
            <bug_when>2004-04-19 18:52:50 0000</bug_when>
            <thetext>Jeremy, the current init scripts will use the correct /etc/mpd.conf file and ignor the conf.d if the /etc/mpd.conf exists.  There&apos;s no need for the init scripts to change, the only thing is that the /etc/conf.d file doesn&apos;t support all of the options available in the mpd man pages.  Thus when I tried to add more options, they were ignored and my attempts to debug only led to me frustrating the developer.  Now maybe I should have come here first, but once the developer and I figured it out, I rewrote the ebuild to use the config file suggested by the mpd dev.

Is there any reason why the gentoo way is better?
To me it only seems to add layers of confusion.  Can someone explain why gentoo chose to go this way?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>starz@antisocial.com</who>
            <bug_when>2004-04-19 19:13:10 0000</bug_when>
            <thetext>Yes, the current init script _does_ break mpd. Please see why this bug came into existance: http://www.musicpd.org/forum/viewtopic.php?t=242 . This is not the first time this has happened. It&apos;s just confusing, and there is really no reason it should be like this.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>eradicator@gentoo.org</who>
            <bug_when>2004-04-19 21:14:25 0000</bug_when>
            <thetext>re: comment #4

All the configuration information for /etc/init.d/&lt;init script&gt; is contained in /etc/conf.d/&lt;init script&gt; when possible.  It is too confusing for users to have a different configuration script in a different location for every package they install.

the /etc/conf.d/&lt;init script&gt; file sets environment variables for the init script.

Additionally, intentionally breaking a distribution&apos;s init script because you do not like the way the distribution handles things is not very professional.

re comment #5, #6, #7:

Thanks, I&apos;ll take a look at Eric&apos;s Debian script and David&apos;s modified gentoo script alternatives...
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>eradicator@gentoo.org</who>
            <bug_when>2004-04-20 00:50:21 0000</bug_when>
            <thetext>ok, i&apos;ve reworked the init script.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>shank@mercury.chem.pitt.edu</who>
            <bug_when>2004-04-20 04:24:40 0000</bug_when>
            <thetext>Thanks for your help Jeremy, and I&apos;m sorry for being an ass.

As far as the &quot;location&quot; of the config script, i personally do not care where it is, so long as the config script can take the same configuration parameters in the manpage of mpd, or it is clearly marked in the config file, where to put those paramters.

I&apos;m sorry for acting childish.

Thanks,
-shank</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>eradicator@gentoo.org</who>
            <bug_when>2004-04-20 08:02:34 0000</bug_when>
            <thetext>thanks... no hard feelings ;)</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>29579</attachid>
            <date>2004-04-18 15:06 0000</date>
            <desc>new mpd ebuild</desc>
            <filename>mpd-0.10.3.ebuild</filename>
            <type>text/plain</type>
            <data encoding="base64">IyBDb3B5cmlnaHQgMTk5OS0yMDA0IEdlbnRvbyBUZWNobm9sb2dpZXMsIEluYy4KIyBEaXN0cmli
dXRlZCB1bmRlciB0aGUgdGVybXMgb2YgdGhlIEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlIHYy
CiMgJEhlYWRlcjogL2hvbWUvY3Zzcm9vdC9nZW50b28teDg2L21lZGlhLXNvdW5kL21wZC9tcGQt
MC4xMC4zLmVidWlsZCx2IDEuMiAyMDA0LzA0LzAzIDE0OjE1OjQyIG1ob2x6ZXIgRXhwICQKCklV
U0U9Im9nZ3ZvcmJpcyBtYWQgYWFjIGF1ZGlvZmlsZSBpcHY2IgoKREVTQ1JJUFRJT049Ik11c2lj
IFBsYXllciBEYWVtb24gKG1wZCkiClNSQ19VUkk9Im1pcnJvcjovL3NvdXJjZWZvcmdlL211c2lj
cGQvJHtQfS50YXIuZ3oiClJFU1RSSUNUPSJub21pcnJvciIKSE9NRVBBR0U9Imh0dHA6Ly93d3cu
bXVzaWNwZC5vcmciCgpLRVlXT1JEUz0ifng4NiB+YW1kNjQiClNMT1Q9IjAiCkxJQ0VOU0U9IkdQ
TC0yIgoKREVQRU5EPSJvZ2d2b3JiaXM/ICggbWVkaWEtbGlicy9saWJ2b3JiaXMgKQoJbWFkPyAo
IG1lZGlhLXNvdW5kL21hZCApCglhYWM/ICggPj1tZWRpYS1saWJzL2ZhYWQyLTIuMF9yYzIgKQoJ
YXVkaW9maWxlPyAoIG1lZGlhLWxpYnMvYXVk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