+ LIBC_DIR=$(ldd /usr/sbin/dropbear | sed -n -e 's,.* => \(/lib.*\)/libc\.so\..*,\1,p')
+ for so in $(find "${LIBC_DIR}" -name 'libnss_compat*'); do
+ copy_exec "${so}"
+ done
+ echo 'passwd: compat' > "${DESTDIR}/etc/nsswitch.conf"
FWIW, this looks unnecessarily indirect; the libnss_compat should always be found in the same directory as libc itself, since they are both part of glibc, so the 'find' is a needless traversal of the /lib/* directory. But as this is the solution implemented already in Debian and raring, it's not a blocker for the SRU.
+ LIBC_DIR=$(ldd /usr/sbin/dropbear | sed -n -e 's,.* => \(/lib. *\)/libc\ .so\..* ,\1,p') /etc/nsswitch. conf"
+ for so in $(find "${LIBC_DIR}" -name 'libnss_compat*'); do
+ copy_exec "${so}"
+ done
+ echo 'passwd: compat' > "${DESTDIR}
FWIW, this looks unnecessarily indirect; the libnss_compat should always be found in the same directory as libc itself, since they are both part of glibc, so the 'find' is a needless traversal of the /lib/* directory. But as this is the solution implemented already in Debian and raring, it's not a blocker for the SRU.