diff --git a/xbps-src/shutils/chroot.sh.in b/xbps-src/shutils/chroot.sh.in index 3ad1ba352a..d5ebf43dd9 100644 --- a/xbps-src/shutils/chroot.sh.in +++ b/xbps-src/shutils/chroot.sh.in @@ -276,6 +276,10 @@ xbps_chroot_handler() "cd /xbps/xbps-src && make IN_CHROOT=1 install clean" \ 2>&1 >/dev/null || return $? + # Update ld.so(8) cache + msg_normal "Updating ld.so(8) cache...\n" + ${chroot_cmd} $XBPS_MASTERDIR sh -c "ldconfig" || return $? + if [ "$action" = "chroot" ]; then env in_chroot=yes IN_CHROOT=1 LANG=C PATH=$path \ ${chroot_cmd} $XBPS_MASTERDIR /bin/sh || \