]> git.ipfire.org Git - pakfire.git/commitdiff
build: Set CCACHE_DIR
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 30 May 2023 18:14:08 +0000 (18:14 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 30 May 2023 18:14:08 +0000 (18:14 +0000)
This is mostly for completeness and not to cause any problems when there
is a custom ccache configuration inside the jail.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/build.c

index c4e89640ce59e861c74a3764b5f28ef29b56bc1e..f7a020932d767bd2f69cb4a8b68d4494ee352318 100644 (file)
@@ -1504,6 +1504,13 @@ static int pakfire_build_setup_ccache(struct pakfire_build* build) {
                return 0;
        }
 
+       // Set CCACHE_DIR
+       r = pakfire_jail_set_env(build->jail, "CCACHE_DIR", CCACHE_DIR);
+       if (r) {
+               ERROR(build->pakfire, "Could not set ccache directory: %m\n");
+               return r;
+       }
+
        // Set CCACHE_TEMPDIR
        r = pakfire_jail_set_env(build->jail, "CCACHE_TEMPDIR", "/tmp");
        if (r) {