This will cause that ccache creates any temporary files in /tmp instead
of the cache dir. This caused massive bandwidth and slightly slow builds
with a shared NFS cache.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
return 0;
}
+ // Set CCACHE_TEMPDIR
+ r = pakfire_jail_set_env(build->jail, "CCACHE_TEMPDIR", "/tmp");
+ if (r) {
+ ERROR(build->pakfire, "Could not set ccache tempdir: %m\n");
+ return r;
+ }
+
// Set a default path
r = pakfire_cache_path(build->pakfire, build->ccache_path, "%s", "ccache");
if (r)