Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 24822 - glibc-2.3.2-r1 comes without nscd.conf
Summary: glibc-2.3.2-r1 comes without nscd.conf
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-19 12:06 UTC by Andreas Simon
Modified: 2004-09-21 01:26 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 Andreas Simon 2003-07-19 12:06:46 UTC
Summary:
/etc/init.d/nscd fails (without indication) because of missing config file.

What's wrong:
nscd is part of glibc and cannot run without a /etc/nscd.conf file.
The glibc ebuild doesn't install glibc's default nscd.conf file, thus running
'/etc/init.d/nscd start' will start the nscd daemon but the daemon will exit
instantaneous, although the /etc/init.d/nscd script doesn't show any error.

Fix:
I think the default config file should be installed to /etc/nscd.conf. If not it
should at least be found in /usr/share/doc/${P} (but than the init.d script
should have a check for the config file). 

The default nscd.conf can be found under ./nscd/nscd.conf in glibc's source dir.
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2003-07-22 08:23:53 UTC
Check that you did not delete it by accident.

----------------------------------------------------------
workshop glibc # grep nscd *.ebuild
glibc-2.2.5-r8.ebuild:		# Install nscd config file
glibc-2.2.5-r8.ebuild:		doins ${S}/nscd/nscd.conf
glibc-2.3.1-r4.ebuild:		# Install nscd config file
glibc-2.3.1-r4.ebuild:		doins ${S}/nscd/nscd.conf
glibc-2.3.2-r1.ebuild:		# Install nscd config file
glibc-2.3.2-r1.ebuild:		doins ${FILESDIR}/nscd.conf
glibc-2.3.2-r2.ebuild:		# Install nscd config file
glibc-2.3.2-r2.ebuild:		doins ${FILESDIR}/nscd.conf
workshop glibc # epm -qf /etc/nscd.conf 
glibc-2.3.2-r2
workshop glibc # 
Comment 2 Andreas Simon 2003-07-22 08:51:41 UTC
Somehow nscd.conf did not get installed when I installed glibc-2.3.2-r1 last time: 
 
# grep nscd /var/db/pkg/sys-libs/glibc-2.3.2-r1/CONTENTS 
obj /usr/sbin/nscd ba21757a1861da3d8fa56658a947c487 1052573299 
obj /usr/sbin/nscd_nischeck 8e72fa416e36db5e8d0a81a75c28f11a 1052573299 
 
But it's there after reinstalling glibc: 
# grep nscd /var/db/pkg/sys-libs/glibc-2.3.2-r1/CONTENTS 
obj /etc/nscd.conf 2013443f5192d4b999953ba4248d288c 1058879722 
obj /usr/sbin/nscd 15c9f7293168a523da46079d2080eab2 1058879722 
obj /usr/sbin/nscd_nischeck bb7433275ea4af3262f431f5add00581 1058879722 
 
Sorry for this timewaster.