Skip to contentSkip to conversation

shadow: disable nscd feature when glibc is not built with spawn posix functions

PATCH New Baptiste DURAND 1 participant 1 message Dec 12, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 shadow: disable nscd feature when glibc is not built with spawn posix functions

shadow package configure step fails with this log output :

| checking location of faillog/lastlog/wtmp... (cached) /var/log
| checking location of the passwd program... (cached) /usr/bin
| checking for posix_spawn... no
| configure: error: posix_spawn is needed for nscd support
| Configure failed. The contents of all config.log files follows to aid debugging
| ERROR: oe_runconf failed
---
 meta/recipes-extended/shadow/shadow.inc | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-extended/shadow/shadow.inc +1 -0
index 14c7281..bb3a927 100644
@@ -60,6 +60,7 @@ NSCDOPT = ""
 NSCDOPT_class-native = "--without-nscd"
 NSCDOPT_class-nativesdk = "--without-nscd"
 NSCDOPT_libc-uclibc = " --without-nscd"
+NSCDOPT_libc-glibc = "${@bb.utils.contains('DISTRO_FEATURES', 'libc-spawn', '--with-nscd', '--without-nscd', d)}"
           
 PAM_PLUGINS = "libpam-runtime \
                pam-plugin-faildelay \
Signature · 1 line
1.8.1.4