From c7a059d724acb3fe5f1189fe938f0c07f429e89c Mon Sep 17 00:00:00 2001
From: georg <georg@riseup.net>
Date: Sun, 24 Feb 2019 21:52:15 +0000
Subject: [PATCH] Fix ccache on gentoo

---
 gentoo | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gentoo b/gentoo
index 0e06d46..a05f2e8 100644
--- a/gentoo
+++ b/gentoo
@@ -4,9 +4,11 @@ FROM gentoo/stage3-amd64:latest
 COPY --from=portage /usr/portage /usr/portage
 
 ENV ACCEPT_KEYWORDS="~amd64" \
+    CCACHE_DIR="/gentoo/ccache" \
     EMERGE_DEFAULT_OPTS="--jobs=9 --load-average=8 --with-bdeps=y" \
     FEATURES="-sandbox -usersandbox" \
-    MAKEOPTS="-ccache -j9 -l8" \
+    MAKEOPTS="-j9 -l8" \
+    PATH="/usr/lib/ccache/bin${PATH:+:}$PATH" \
     USE="cairo introspection jpeg tiff"
 
 RUN eselect locale set en_US.utf8 \
-- 
GitLab