]> git.ipfire.org Git - pakfire.git/commitdiff
builder: Remove ccache settings in environment
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 13 Feb 2021 13:18:55 +0000 (13:18 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 13 Feb 2021 13:18:55 +0000 (13:18 +0000)
This is something that we should do elsewhere

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/builder.py

index eb6b57c8dece0787aabc6dd1d83424313f42316d..b65018f69b5e97c00f4d1b21d3f5cc69babacf43 100644 (file)
@@ -77,12 +77,6 @@ class Builder(object):
                        "buildroot_tmpfs"     : self.config.get_bool("builder", "use_tmpfs", False),
                }
 
-               # Get ccache settings.
-               if self.settings.get("enable_ccache", False):
-                       self.settings.update({
-                               "ccache_compress" : self.config.get_bool("ccache", "compress", True),
-                       })
-
                # Add settings from keyword arguments
                self.settings.update(kwargs)
 
@@ -333,15 +327,6 @@ class BuilderContext(object):
                # Inherit environment from distro
                env.update(self.pakfire.distro.environ)
 
-               # ccache environment settings
-               if self.builder.settings.get("enable_ccache", False):
-                       compress = self.builder.settings.get("ccache_compress", False)
-                       if compress:
-                               env["CCACHE_COMPRESS"] = "1"
-
-                       # Let ccache create its temporary files in /tmp.
-                       env["CCACHE_TEMPDIR"] = "/tmp"
-
                # Fake UTS_MACHINE, when we cannot use the personality syscall and
                # if the host architecture is not equal to the target architecture.
                if not _pakfire.native_arch() == self.pakfire.arch: