From: Michael Tremer Date: Sat, 13 Feb 2021 13:18:55 +0000 (+0000) Subject: builder: Remove ccache settings in environment X-Git-Tag: 0.9.28~1285^2~737 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=72db741422b288bf79bde5fbffbb6be2c039b262;p=pakfire.git builder: Remove ccache settings in environment This is something that we should do elsewhere Signed-off-by: Michael Tremer --- diff --git a/src/pakfire/builder.py b/src/pakfire/builder.py index eb6b57c8d..b65018f69 100644 --- a/src/pakfire/builder.py +++ b/src/pakfire/builder.py @@ -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: