From 80f784e0eb683db10388faabf6eff1e50167ad6f Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 26 May 2011 10:14:39 +0200 Subject: [PATCH] shutils/chroot.sh: update ld.so(8) before entering the chroot. --- xbps-src/shutils/chroot.sh.in | 4 ++++ 1 file changed, 4 insertions(+) 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 || \