Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 45873

Summary: sys-libs/libnss-mysql configuration..
Product: Gentoo Linux Reporter: Asbjorn Sannes <ace>
Component: [OLD] LibraryAssignee: Max Kalika (RETIRED) <max>
Status: RESOLVED WONTFIX    
Severity: trivial    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: libnss-mysql-1.1.ebuild.diff

Description Asbjorn Sannes 2004-03-27 02:42:24 UTC
Move the configuration files /etc/libnss-mysql.cfg and /etc/libnss-mysql-root.cfg
to /etc/libnss-mysql/

Makes it look cleaner, especially since there are more than one configuration file. The patch for the ebuild is easy just add:

src_compile() {
   econf --sysconfdir=/etc/libnss-mysql
   emake
}

Tested it and works like a charm..


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Max Kalika (RETIRED) gentoo-dev 2004-03-27 23:27:27 UTC
I don't really see the point of having /etc/libnss-mysql/libnss-mysql.cfg...seems redundant...and it's only two conf files.  Is this really necessary?  Besides, this change will break current installations, which is something to avoid...
Comment 2 Christian Skarby 2004-03-29 13:48:40 UTC
Created attachment 28316 [details, diff]
libnss-mysql-1.1.ebuild.diff

This patch adds support for "/etc/libnss-mysql"-directory w/o breaking backward
compability. Further default config-files are added as
/etc/libnss-mysql/*.dist, this is more like the behavior for e.g. portage where
/etc/make.conf.dist is now provided rather than /etc/make.conf.
Comment 3 Max Kalika (RETIRED) gentoo-dev 2004-03-30 08:22:19 UTC
I still don't think this is necessary.  I haven't heard a good argument as to why these two files should be in their own directory.  What is the point?  This just adds clutter to the ebuild for not much gain.
Comment 4 Asbjorn Sannes 2004-03-31 05:36:00 UTC
Well, first of all it is cleaner for the admins and the extra cludge to the ebuild can be removed over time (this is just to make a transition smooth for those admins that don't look over the ChangeLog file before installing mission critical applications/librarys).
I think it is about beeing persistent about packages that have more than one configuration file, like samba, apache, cups, openssl, php, syslog-ng .. and so on and so on.. and it looks better :) and it is easier to put a sample configuration file right there with it.. without cludging up /etc .. it is more structured .. it is any sys-admins wet dream? :) I think there is a Gentoo policy somewhere for it, but I havn't been able to locate it, maybe my mind is just pulling tricks on me..
Comment 5 Max Kalika (RETIRED) gentoo-dev 2004-04-24 11:52:12 UTC
sorry, I'm not convinced this is necessary.  It's two simple files.