Package: libnss-ldap
Version: 264-2.5
Severity: normal
Hi,
libnss-ldap fails to install in a chroot (like with e.g. live-build)
Excerpt from the live-bild logfile:
-----8<------
Setting up libnss-ldap:amd64 (264-2.5) ...^M
invoke-rc.d: unknown initscript, /etc/init.d/nscd not found.^M
dpkg: error processing libnss-ldap:amd64 (--configure):^M
subprocess installed post-installation script returned error exit status 100^M
-----8<------
I have an nscd running on the host, outside the chroot.
Now within the chroot, libnss-ldap and nscd get installed during the same run
of dpkg. When libnss-ldap's postinst script runs, nscd has only been extracted
but not yet been configured, so there only exists /etc/init.d/nscd.dpkg-new and
not yet the final version. Now the postinst script checks for a running nscd,
stumbles over the nscd PID of the host (outisde the chroot) an checks the
existence of the nscd binary whithin the chroot - and triggers the restart...
script not found -> *boom*
To circumvent this instead of checking for /usr/sbin/nscd I suggest to check for
[ -s /etc/init.d/nscd ]
Cheers
Daniel
-- System Information:
Debian Release: 7.1
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Versions of packages libnss-ldap depends on:
ii debconf [debconf-2.0] 1.5.49
ii libc6 2.13-38
ii libcomerr2 1.42.5-1.1
ii libgssapi-krb5-2 1.10.1+dfsg-5+deb7u1
ii libkrb5-3 1.10.1+dfsg-5+deb7u1
ii libldap-2.4-2 2.4.31-1+nmu2
ii libsasl2-2 2.1.25.dfsg1-6+deb7u1
ii multiarch-support 2.13-38
Versions of packages libnss-ldap recommends:
iu libpam-ldap 184-8.6
iu nscd 2.13-38
libnss-ldap suggests no packages.
-- debconf information excluded
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]