summaryrefslogtreecommitdiff
path: root/abuild.in
diff options
context:
space:
mode:
Diffstat (limited to 'abuild.in')
-rw-r--r--abuild.in15
1 files changed, 2 insertions, 13 deletions
diff --git a/abuild.in b/abuild.in
index 7a919fd..38a6570 100644
--- a/abuild.in
+++ b/abuild.in
@@ -2196,7 +2196,7 @@ rootbld() {
--bind "$REPODEST" "$REPODEST" \
--hostname "build-$buildhost-$CARCH" \
--chdir "$startdir" \
- --setenv PATH /bin:/usr/bin:/sbin:/usr/sbin \
+ --setenv PATH ${USE_CCACHE:+/usr/lib/ccache/bin:}/bin:/usr/bin:/sbin:/usr/sbin \
/usr/bin/abuild $force rootbld_actions
update_abuildrepo_index
cleanup $CLEANUP
@@ -2501,18 +2501,7 @@ fi
# check for ccache presence and maybe export its path
if [ -n "$USE_CCACHE" ]; then
- if ! command -v ccache >/dev/null; then
- die "Ccache is enabled; however, the binary can not be found."
- fi
-
- if [ ! -d "$HOME/.ccache" ]; then
- die "Ccache is enabled; however, the user cache directory is not found."
- fi
-
- if [ ! -f "$HOME/.ccache/ccache.conf" ]; then
- die "Ccache is enabled; however, the ccache configuration file is not found."
- fi
-
+ mkdir -p "$HOME/.ccache"
# prepend ccache path
export PATH="/usr/lib/ccache/bin:$PATH"
fi