From a37c42c94ddb20f664cd9514a0b673b5585119a7 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 17 Nov 2008 09:17:02 +0100 Subject: [PATCH] Do not override PATH in chroot and always make lib64 -> lib symlinks on x86_64. --HG-- extra : convert_revision : 48d28cff104a1cc8d8a57cef299b08bdc4edb272 --- xbps.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/xbps.sh b/xbps.sh index 389d0aa01c0..1ccc77ac161 100755 --- a/xbps.sh +++ b/xbps.sh @@ -213,6 +213,16 @@ check_config_vars() [ $? -ne 0 ] && msg_error "couldn't create '$f' directory" fi done + + if [ "$xbps_machine" = "x86_64" ]; then + [ ! -d $XBPS_MASTERDIR/lib ] && mkdir -p $XBPS_MASTERDIR/lib + [ ! -h $XBPS_MASTERDIR/lib64 ] && \ + cd $XBPS_MASTERDIR && ln -s lib lib64 + [ ! -d $XBPS_MASTERDIR/usr/lib ] && \ + mkdir -p $XBPS_MASTERDIR/usr/lib + [ ! -h $XBPS_MASTERDIR/usr/lib64 ] && \ + cd $XBPS_MASTERDIR/usr && ln -s lib lib64 + fi } # @@ -306,8 +316,8 @@ prepare_tmpl() if [ -z "$in_chroot" ]; then export PATH="$XBPS_MASTERDIR/bin:$XBPS_MASTERDIR/sbin" export PATH="$PATH:$XBPS_MASTERDIR/usr/bin:$XBPS_MASTERDIR/usr/sbin" + export PATH="$PATH:/bin:/sbin:/usr/bin:/usr/sbin" fi - export PATH="$PATH:/bin:/sbin:/usr/bin:/usr/sbin" } #