xbps-src: Use CCACHE_PREFIX for ccache+distcc

closes #1468
This commit is contained in:
jbu 2015-05-02 17:09:37 +02:00
parent 3df87d8016
commit e4900a7e80

View file

@ -535,10 +535,14 @@ else
mkdir -p $CCACHE_DIR
fi
if [ -n "$XBPS_DISTCC" ]; then
DISTCCPATH="/usr/lib/distcc/bin"
if [ -n "$XBPS_CCACHE" ]; then
export CCACHE_PREFIX="/usr/bin/distcc"
else
DISTCCPATH="/usr/lib/distcc/bin"
export PATH="$DISTCCPATH:$PATH"
fi
export DISTCC_DIR="$XBPS_HOSTDIR/distcc-${XBPS_CROSS_BUILD:-${XBPS_MACHINE}}"
export DISTCC_HOSTS="$XBPS_DISTCC_HOSTS"
export PATH="$DISTCCPATH:$PATH"
mkdir -p $DISTCC_DIR
fi
fi