Skip to contentSkip to conversation

glibc: fixes for nscd and libnss-db

PATCH Superseded [email protected] 2 participants 7 messages Oct 31, 2017 – Nov 2, 2017

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

cover glibc: fixes for nscd and libnss-db

From: Jackie Huang <[email protected]>

--
The following changes since commit 514a808f21c37b6ad704ce397bb2740ecc9a93bc:

ref-manual: Updates to "Image Generation" section. (2017-10-30 15:55:08 +0000)

are available in the git repository at:

git://git.pokylinux.org/poky-contrib.git jhuang0/d_nscd_171031_0
http://git.pokylinux.org/cgit.cgi//log/?h=jhuang0/d_nscd_171031_0

Jackie Huang (2):
glibc: re-package for libnss-db glibc/nscd: do not cache for netgroup by default

 meta/recipes-core/glibc/glibc-package.inc | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/2 glibc: re-package for libnss-db

From: Jackie Huang <[email protected]>

On other distros like ubuntu/centos, libnss-db usually provides:
- The libraries
- The Makefile to create database
(in /var/db for centos, /var/lib/misc/ for ubuntu)
- The makedb command (it's in glibc-common for centos7)

What we had is:
- The libraries are in glibc-extra-nss
- The Makefile is removed
- The makedb command is in glibc-utils (lack of dependency)

So when glibc-extra-nss is installed but glibc-utils is not,
we see error like:
nscd[165]: 165 checking for monitored file /var/db/group.db': No such file or directory nscd[165]: 165 checking for monitored file /var/db/passwd.db': No such file or directory

And there is not an easy way to create these databases.

To fix the issue:
- Re-package the libraries into libnss-db
- Don't remove the Makefile and add it in libnss-db
- Add RDEPENDS for libnss-db on glibc-utils and make

---
 meta/recipes-core/glibc/glibc-package.inc | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
meta/recipes-core/glibc/glibc-package.inc +3 -2
index df3db2cc45..1c3782dbb0 100644
@@ -1,6 +1,6 @@
 INHIBIT_SYSROOT_STRIP = "1"
 
-PACKAGES = "${PN}-dbg catchsegv sln nscd ldd tzcode glibc-thread-db ${PN}-pic libcidn libmemusage libsegfault ${PN}-pcprofile libsotruss ${PN} ${PN}-utils glibc-extra-nss ${PN}-dev ${PN}-staticdev ${PN}-doc"
+PACKAGES = "${PN}-dbg catchsegv sln nscd ldd tzcode glibc-thread-db ${PN}-pic libcidn libmemusage libnss-db libsegfault ${PN}-pcprofile libsotruss ${PN} ${PN}-utils glibc-extra-nss ${PN}-dev ${PN}-staticdev ${PN}-doc"
 
 # The ld.so in this glibc supports the GNU_HASH
 RPROVIDES_${PN} = "eglibc rtld(GNU_HASH)"
@@ -23,6 +23,8 @@ FILES_ldd = "${bindir}/ldd"
 FILES_libsegfault = "${base_libdir}/libSegFault*"
 FILES_libcidn = "${base_libdir}/libcidn-*.so ${base_libdir}/libcidn.so.*"
 FILES_libmemusage = "${base_libdir}/libmemusage.so"
+FILES_libnss-db = "${base_libdir}/libnss_db.so.* ${base_libdir}/libnss_db-*.so ${localstatedir}/db/Makefile"
+RDEPENDS_libnss-db = "${PN}-utils make"
 FILES_glibc-extra-nss = "${base_libdir}/libnss_*-*.so ${base_libdir}/libnss_*.so.*"
 FILES_sln = "${base_sbindir}/sln"
 FILES_${PN}-pic = "${libdir}/*_pic.a ${libdir}/*_pic.map ${libdir}/libc_pic/*.o"
@@ -59,7 +61,6 @@ inherit libc-common multilib_header
 
 do_install_append () {
 	rm -f ${D}${sysconfdir}/localtime
-	rm -rf ${D}${localstatedir}
 
 	# remove empty glibc dir
 	if [ -d ${D}${libexecdir} ]; then
Signature · 1 line
2.11.0
#2 lore raw

Re: [PATCH 1/2] glibc: re-package for libnss-db

Quoted 18 lines · On Tue, Oct 31, 2017 at 12:20 AM, <[email protected]> wrote:

From: Jackie Huang <[email protected]>

On other distros like ubuntu/centos, libnss-db usually provides:
- The libraries
- The Makefile to create database
(in /var/db for centos, /var/lib/misc/ for ubuntu)
- The makedb command (it's in glibc-common for centos7)

What we had is:
- The libraries are in glibc-extra-nss
- The Makefile is removed
- The makedb command is in glibc-utils (lack of dependency)

So when glibc-extra-nss is installed but glibc-utils is not,
we see error like:
nscd[165]: 165 checking for monitored file /var/db/group.db': No such file or directory nscd[165]: 165 checking for monitored file /var/db/passwd.db': No such file or directory

Quoted 7 lines

And there is not an easy way to create these databases.

To fix the issue:
- Re-package the libraries into libnss-db
- Don't remove the Makefile and add it in libnss-db
- Add RDEPENDS for libnss-db on glibc-utils and make

this looks ok although, changing glibc packaging is a bit thorny for external toolchains and
other libraries. Would be better if this was added to commit saying that they have yet another
package that they need to provide if replacing glibc from core.

Quoted 42 lines
---
 meta/recipes-core/glibc/glibc-package.inc | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
meta/recipes-core/glibc/glibc-package.inc +3 -3
index df3db2cc45..1c3782dbb0 100644
@@ -1,6 +1,6 @@
 INHIBIT_SYSROOT_STRIP = "1"
 
-PACKAGES = "${PN}-dbg catchsegv sln nscd ldd tzcode glibc-thread-db ${PN}-pic libcidn libmemusage libsegfault ${PN}-pcprofile libsotruss ${PN} ${PN}-utils glibc-extra-nss ${PN}-dev ${PN}-staticdev ${PN}-doc"
+PACKAGES = "${PN}-dbg catchsegv sln nscd ldd tzcode glibc-thread-db ${PN}-pic libcidn libmemusage libnss-db libsegfault ${PN}-pcprofile libsotruss ${PN} ${PN}-utils glibc-extra-nss ${PN}-dev ${PN}-staticdev ${PN}-doc"
 
 # The ld.so in this glibc supports the GNU_HASH
 RPROVIDES_${PN} = "eglibc rtld(GNU_HASH)"
@@ -23,6 +23,8 @@ FILES_ldd = "${bindir}/ldd"
 FILES_libsegfault = "${base_libdir}/libSegFault*"
 FILES_libcidn = "${base_libdir}/libcidn-*.so ${base_libdir}/libcidn.so.*"
 FILES_libmemusage = "${base_libdir}/libmemusage.so"
+FILES_libnss-db = "${base_libdir}/libnss_db.so.* ${base_libdir}/libnss_db-*.so ${localstatedir}/db/Makefile"
+RDEPENDS_libnss-db = "${PN}-utils make"
 FILES_glibc-extra-nss = "${base_libdir}/libnss_*-*.so ${base_libdir}/libnss_*.so.*"
 FILES_sln = "${base_sbindir}/sln"
 FILES_${PN}-pic = "${libdir}/*_pic.a ${libdir}/*_pic.map ${libdir}/libc_pic/*.o"
@@ -59,7 +61,6 @@ inherit libc-common multilib_header
 
 do_install_append () {
        rm -f ${D}${sysconfdir}/localtime
-       rm -rf ${D}${localstatedir}
 
        # remove empty glibc dir
        if [ -d ${D}${libexecdir} ]; then
--

2.11.0

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#3 lore raw

Re: [PATCH 1/2] glibc: re-package for libnss-db

Quoted 38 lines

-----Original Message-----
From: Khem Raj [mailto:[email protected]]
Sent: Wednesday, November 01, 2017 03:40
To: Huang, Jie (Jackie)
Cc: Patches and discussions about the oe-core layer
Subject: Re: [OE-core] [PATCH 1/2] glibc: re-package for libnss-db

Quoted 8 lines · On Tue, Oct 31, 2017 at 12:20 AM, <[email protected]> wrote:

From: Jackie Huang <[email protected]>

On other distros like ubuntu/centos, libnss-db usually provides:
- The libraries
- The Makefile to create database
(in /var/db for centos, /var/lib/misc/ for ubuntu)
- The makedb command (it's in glibc-common for centos7)

Quoted 8 lines

What we had is:
- The libraries are in glibc-extra-nss
- The Makefile is removed
- The makedb command is in glibc-utils (lack of dependency)

So when glibc-extra-nss is installed but glibc-utils is not,
we see error like:
nscd[165]: 165 checking for monitored file `/var/db/group.db': No such file or

directory

Quoted 1 line

nscd[165]: 165 checking for monitored file `/var/db/passwd.db': No such file

or directory

Quoted 8 lines

And there is not an easy way to create these databases.

To fix the issue:
- Re-package the libraries into libnss-db
- Don't remove the Makefile and add it in libnss-db
- Add RDEPENDS for libnss-db on glibc-utils and make

Quoted 5 lines

this looks ok although, changing glibc packaging is a bit thorny for external toolchains and
other libraries. Would be better if this was added to commit saying that they have yet another
package that they need to provide if replacing glibc from core.

Sorry I'm not sure I understand correctly, did you mean I just need to add words in the commit message like the following?

"For external toolchain, an extra package 'libnss-db' need to be provided If replacing glibc from core."

Thanks,
Jackie

Quoted 50 lines

meta/recipes-

Quoted 7 lines
---
 meta/recipes-core/glibc/glibc-package.inc | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
meta/recipes- renamed from meta/recipes-core/glibc/glibc-package.inc +0 -0

core/glibc/glibc-package.inc

meta/recipes-core/glibc/glibc-package.inc line 3

Quoted 7 lines

index df3db2cc45..1c3782dbb0 100644

meta/recipes-core/glibc/glibc-package.inc +0 -1
@@ -1,6 +1,6 @@
 INHIBIT_SYSROOT_STRIP = "1"
 
-PACKAGES = "${PN}-dbg catchsegv sln nscd ldd tzcode glibc-thread-db ${PN}-

pic libcidn libmemusage libsegfault ${PN}-pcprofile libsotruss ${PN} ${PN}-utils glibc-extra-nss ${PN}-dev ${PN}-staticdev ${PN}-doc"

meta/recipes-core/glibc/glibc-package.inc line 3

Quoted 1 line
meta/recipes-core/glibc/glibc-package.inc +1 -0
+PACKAGES = "${PN}-dbg catchsegv sln nscd ldd tzcode glibc-thread-db ${PN}-

pic libcidn libmemusage libnss-db libsegfault ${PN}-pcprofile libsotruss ${PN} ${PN}-utils glibc-extra-nss ${PN}-dev ${PN}-staticdev ${PN}-doc"

meta/recipes-core/glibc/glibc-package.inc FILES_ldd = "${bindir}/ldd" · line 26

Quoted 8 lines
meta/recipes-core/glibc/glibc-package.inc +1 -0
 # The ld.so in this glibc supports the GNU_HASH
 RPROVIDES_${PN} = "eglibc rtld(GNU_HASH)"
@@ -23,6 +23,8 @@ FILES_ldd = "${bindir}/ldd"
 FILES_libsegfault = "${base_libdir}/libSegFault*"
 FILES_libcidn = "${base_libdir}/libcidn-*.so ${base_libdir}/libcidn.so.*"
 FILES_libmemusage = "${base_libdir}/libmemusage.so"
+FILES_libnss-db = "${base_libdir}/libnss_db.so.* ${base_libdir}/libnss_db-*.so

${localstatedir}/db/Makefile"

meta/recipes-core/glibc/glibc-package.inc FILES_ldd = "${bindir}/ldd" · line 28

Quoted 2 lines
meta/recipes-core/glibc/glibc-package.inc +1 -0
+RDEPENDS_libnss-db = "${PN}-utils make"
 FILES_glibc-extra-nss = "${base_libdir}/libnss_*-*.so

${base_libdir}/libnss_*.so.*"

Quoted 18 lines
meta/recipes-core/glibc/glibc-package.inc +0 -2
 FILES_sln = "${base_sbindir}/sln"
 FILES_${PN}-pic = "${libdir}/*_pic.a ${libdir}/*_pic.map ${libdir}/libc_pic/*.o"
@@ -59,7 +61,6 @@ inherit libc-common multilib_header
 
 do_install_append () {
        rm -f ${D}${sysconfdir}/localtime
-       rm -rf ${D}${localstatedir}
 
        # remove empty glibc dir
        if [ -d ${D}${libexecdir} ]; then
--

2.11.0

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#4 lore raw

Re: [PATCH 1/2] glibc: re-package for libnss-db

Quoted 44 lines · Jie (Jackie)
Quoted 38 lines

-----Original Message-----
From: Khem Raj [mailto:[email protected]]
Sent: Wednesday, November 01, 2017 03:40
To: Huang, Jie (Jackie)
Cc: Patches and discussions about the oe-core layer
Subject: Re: [OE-core] [PATCH 1/2] glibc: re-package for libnss-db

Quoted 8 lines · On Tue, Oct 31, 2017 at 12:20 AM, <[email protected]> wrote:

From: Jackie Huang <[email protected]>

On other distros like ubuntu/centos, libnss-db usually provides:
- The libraries
- The Makefile to create database
(in /var/db for centos, /var/lib/misc/ for ubuntu)
- The makedb command (it's in glibc-common for centos7)

Quoted 8 lines

What we had is:
- The libraries are in glibc-extra-nss
- The Makefile is removed
- The makedb command is in glibc-utils (lack of dependency)

So when glibc-extra-nss is installed but glibc-utils is not,
we see error like:
nscd[165]: 165 checking for monitored file `/var/db/group.db': No such file or

directory

Quoted 1 line

nscd[165]: 165 checking for monitored file `/var/db/passwd.db': No such file

or directory

Quoted 8 lines

And there is not an easy way to create these databases.

To fix the issue:
- Re-package the libraries into libnss-db
- Don't remove the Makefile and add it in libnss-db
- Add RDEPENDS for libnss-db on glibc-utils and make

Quoted 5 lines

this looks ok although, changing glibc packaging is a bit thorny for external toolchains and
other libraries. Would be better if this was added to commit saying that they have yet another
package that they need to provide if replacing glibc from core.

Quoted 5 lines

Sorry I'm not sure I understand correctly, did you mean I just need to add words in the commit message like the following?

"For external toolchain, an extra package 'libnss-db' need to be provided If replacing glibc from core."

yes, someway for folks to notice the change for external layer maintainers.

Quoted 53 lines

Thanks,
Jackie

Quoted 50 lines

meta/recipes-

Quoted 7 lines
---
 meta/recipes-core/glibc/glibc-package.inc | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
meta/recipes- renamed from meta/recipes-core/glibc/glibc-package.inc +0 -0

core/glibc/glibc-package.inc

meta/recipes-core/glibc/glibc-package.inc line 3

Quoted 7 lines

index df3db2cc45..1c3782dbb0 100644

meta/recipes-core/glibc/glibc-package.inc +0 -1
@@ -1,6 +1,6 @@
 INHIBIT_SYSROOT_STRIP = "1"
 
-PACKAGES = "${PN}-dbg catchsegv sln nscd ldd tzcode glibc-thread-db ${PN}-

pic libcidn libmemusage libsegfault ${PN}-pcprofile libsotruss ${PN} ${PN}-utils glibc-extra-nss ${PN}-dev ${PN}-staticdev ${PN}-doc"

meta/recipes-core/glibc/glibc-package.inc line 3

Quoted 1 line
meta/recipes-core/glibc/glibc-package.inc +1 -0
+PACKAGES = "${PN}-dbg catchsegv sln nscd ldd tzcode glibc-thread-db ${PN}-

pic libcidn libmemusage libnss-db libsegfault ${PN}-pcprofile libsotruss ${PN} ${PN}-utils glibc-extra-nss ${PN}-dev ${PN}-staticdev ${PN}-doc"

meta/recipes-core/glibc/glibc-package.inc FILES_ldd = "${bindir}/ldd" · line 26

Quoted 8 lines
meta/recipes-core/glibc/glibc-package.inc +1 -0
 # The ld.so in this glibc supports the GNU_HASH
 RPROVIDES_${PN} = "eglibc rtld(GNU_HASH)"
@@ -23,6 +23,8 @@ FILES_ldd = "${bindir}/ldd"
 FILES_libsegfault = "${base_libdir}/libSegFault*"
 FILES_libcidn = "${base_libdir}/libcidn-*.so ${base_libdir}/libcidn.so.*"
 FILES_libmemusage = "${base_libdir}/libmemusage.so"
+FILES_libnss-db = "${base_libdir}/libnss_db.so.* ${base_libdir}/libnss_db-*.so

${localstatedir}/db/Makefile"

meta/recipes-core/glibc/glibc-package.inc FILES_ldd = "${bindir}/ldd" · line 28

Quoted 2 lines
meta/recipes-core/glibc/glibc-package.inc +1 -0
+RDEPENDS_libnss-db = "${PN}-utils make"
 FILES_glibc-extra-nss = "${base_libdir}/libnss_*-*.so

${base_libdir}/libnss_*.so.*"

Quoted 18 lines
meta/recipes-core/glibc/glibc-package.inc +0 -2
 FILES_sln = "${base_sbindir}/sln"
 FILES_${PN}-pic = "${libdir}/*_pic.a ${libdir}/*_pic.map ${libdir}/libc_pic/*.o"
@@ -59,7 +61,6 @@ inherit libc-common multilib_header
 
 do_install_append () {
        rm -f ${D}${sysconfdir}/localtime
-       rm -rf ${D}${localstatedir}
 
        # remove empty glibc dir
        if [ -d ${D}${libexecdir} ]; then
--

2.11.0

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#5 lore raw

Re: [PATCH 1/2] glibc: re-package for libnss-db

Quoted 57 lines

-----Original Message-----
From: Khem Raj [mailto:[email protected]]
Sent: Wednesday, November 01, 2017 16:35
To: Huang, Jie (Jackie)
Cc: Patches and discussions about the oe-core layer
Subject: Re: [OE-core] [PATCH 1/2] glibc: re-package for libnss-db

Quoted 18 lines · Jie (Jackie)
Quoted 18 lines

-----Original Message-----
From: Khem Raj [mailto:[email protected]]
Sent: Wednesday, November 01, 2017 03:40
To: Huang, Jie (Jackie)
Cc: Patches and discussions about the oe-core layer
Subject: Re: [OE-core] [PATCH 1/2] glibc: re-package for libnss-db

Quoted 8 lines · On Tue, Oct 31, 2017 at 12:20 AM, <[email protected]> wrote:

From: Jackie Huang <[email protected]>

On other distros like ubuntu/centos, libnss-db usually provides:
- The libraries
- The Makefile to create database
(in /var/db for centos, /var/lib/misc/ for ubuntu)
- The makedb command (it's in glibc-common for centos7)

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

What we had is:
- The libraries are in glibc-extra-nss
- The Makefile is removed
- The makedb command is in glibc-utils (lack of dependency)

So when glibc-extra-nss is installed but glibc-utils is not,
we see error like:
nscd[165]: 165 checking for monitored file `/var/db/group.db': No such file

or

Quoted 2 lines
Quoted 2 lines

directory

Quoted 1 line

nscd[165]: 165 checking for monitored file `/var/db/passwd.db': No such

file

Quoted 16 lines
Quoted 15 lines

or directory

Quoted 8 lines

And there is not an easy way to create these databases.

To fix the issue:
- Re-package the libraries into libnss-db
- Don't remove the Makefile and add it in libnss-db
- Add RDEPENDS for libnss-db on glibc-utils and make

this looks ok although, changing glibc packaging is a bit thorny for external toolchains and
other libraries. Would be better if this was added to commit saying that they have yet another
package that they need to provide if replacing glibc from core.

Quoted 8 lines
Quoted 4 lines

Sorry I'm not sure I understand correctly, did you mean I just need to add words in the commit message like the following?

"For external toolchain, an extra package 'libnss-db' need to be provided If

replacing glibc from core."

Quoted 1 line

yes, someway for folks to notice the change for external layer maintainers.

Got it, I added the note and sent v2 for this.

Thanks,
Jackie

Quoted 59 lines
Quoted 12 lines

Thanks,
Jackie

Quoted 8 lines

meta/recipes-

Quoted 7 lines
---
 meta/recipes-core/glibc/glibc-package.inc | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
meta/recipes- renamed from meta/recipes-core/glibc/glibc-package.inc +0 -0

core/glibc/glibc-package.inc

Quoted 7 lines
Quoted 7 lines

meta/recipes-core/glibc/glibc-package.inc line 3

Quoted 7 lines

index df3db2cc45..1c3782dbb0 100644

meta/recipes-core/glibc/glibc-package.inc +0 -1
@@ -1,6 +1,6 @@
 INHIBIT_SYSROOT_STRIP = "1"
 
-PACKAGES = "${PN}-dbg catchsegv sln nscd ldd tzcode glibc-thread-db

${PN}-

Quoted 1 line
Quoted 1 line

pic libcidn libmemusage libsegfault ${PN}-pcprofile libsotruss ${PN} ${PN}-

utils

Quoted 2 lines
Quoted 2 lines

glibc-extra-nss ${PN}-dev ${PN}-staticdev ${PN}-doc"

Quoted 1 line
meta/recipes-core/glibc/glibc-package.inc +1 -0
+PACKAGES = "${PN}-dbg catchsegv sln nscd ldd tzcode glibc-thread-db

${PN}-

Quoted 10 lines
Quoted 10 lines

pic libcidn libmemusage libnss-db libsegfault ${PN}-pcprofile libsotruss ${PN} ${PN}-utils glibc-extra-nss ${PN}-dev ${PN}-staticdev ${PN}-doc"

meta/recipes-core/glibc/glibc-package.inc FILES_ldd = "${bindir}/ldd" · line 26

Quoted 8 lines
meta/recipes-core/glibc/glibc-package.inc +1 -0
 # The ld.so in this glibc supports the GNU_HASH
 RPROVIDES_${PN} = "eglibc rtld(GNU_HASH)"
@@ -23,6 +23,8 @@ FILES_ldd = "${bindir}/ldd"
 FILES_libsegfault = "${base_libdir}/libSegFault*"
 FILES_libcidn = "${base_libdir}/libcidn-*.so ${base_libdir}/libcidn.so.*"
 FILES_libmemusage = "${base_libdir}/libmemusage.so"
+FILES_libnss-db = "${base_libdir}/libnss_db.so.* ${base_libdir}/libnss_db-

*.so

Quoted 6 lines
Quoted 6 lines

${localstatedir}/db/Makefile"

meta/recipes-core/glibc/glibc-package.inc FILES_ldd = "${bindir}/ldd" · line 28

Quoted 2 lines
meta/recipes-core/glibc/glibc-package.inc +1 -0
+RDEPENDS_libnss-db = "${PN}-utils make"
 FILES_glibc-extra-nss = "${base_libdir}/libnss_*-*.so

${base_libdir}/libnss_*.so.*"

Quoted 2 lines
meta/recipes-core/glibc/glibc-package.inc +0 -0
 FILES_sln = "${base_sbindir}/sln"
 FILES_${PN}-pic = "${libdir}/*_pic.a ${libdir}/*_pic.map

${libdir}/libc_pic/*.o"

Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
meta/recipes-core/glibc/glibc-package.inc +0 -2
@@ -59,7 +61,6 @@ inherit libc-common multilib_header
 
 do_install_append () {
        rm -f ${D}${sysconfdir}/localtime
-       rm -rf ${D}${localstatedir}
 
        # remove empty glibc dir
        if [ -d ${D}${libexecdir} ]; then
--

2.11.0

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#6 lore raw

PATCH 2/2 glibc/nscd: do not cache for netgroup by default

In reply to [email protected]

From: Jackie Huang <[email protected]>

We don't have /etc/netgroup by default, so do not
cache for netgroup by default to avoid:
nscd[529]: 529 disabled inotify-based monitoring for file /etc/netgroup': No such file or directory nscd[529]: 529 stat failed for file /etc/netgroup'; will try again later: No such file or directory

---
 meta/recipes-core/glibc/glibc-package.inc | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-core/glibc/glibc-package.inc +1 -0
index 1c3782dbb0..c4ca94c981 100644
@@ -98,6 +98,7 @@ do_install_append () {
 	install -m 0755 ${S}/nscd/nscd.init ${D}${sysconfdir}/init.d/nscd
 	install -m 0755 ${S}/nscd/nscd.conf ${D}${sysconfdir}/nscd.conf
 	sed -i "s%daemon%start-stop-daemon --start --exec%g" ${D}${sysconfdir}/init.d/nscd
+	sed -i "s|\(enable-cache\t\+netgroup\t\+\)yes|\1no|" ${D}${sysconfdir}/nscd.conf
 
 	install -d ${D}${systemd_unitdir}/system
 	install -m 0644 ${S}/nscd/nscd.service ${D}${systemd_unitdir}/system/
Signature · 1 line
2.11.0