]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
hammer: fixed ccache for alpine 935-hammer-ccache-is-broken-on-alpine
authorMichal Nowikowski <godfryd@isc.org>
Tue, 1 Oct 2019 04:12:53 +0000 (06:12 +0200)
committerMichal Nowikowski <godfryd@isc.org>
Tue, 1 Oct 2019 04:12:53 +0000 (06:12 +0200)
hammer.py

index fafe9d12877daa980c659a5124dc820a5e83a9f5..09b94cb8d51066ca3b9067af9f5e3210c408e9fd 100755 (executable)
--- a/hammer.py
+++ b/hammer.py
@@ -1355,6 +1355,9 @@ def prepare_system_local(features, check_times):
         if 'native-pkg' in features:
             packages.extend(['alpine-sdk'])
 
+        if 'ccache' in features:
+            packages.extend(['ccache'])
+
         install_pkgs(packages, env=env, timeout=6 * 60, check_times=check_times)
 
         # log4cplus needs to be taken from extra repository, edge testing
@@ -1406,6 +1409,9 @@ def _prepare_ccache_if_needed(system, ccache_dir, env):
             ccache_bin_path = '/usr/lib64/ccache'
             env['CC'] = 'ccache gcc'
             env['CXX'] = 'ccache g++'
+        elif system == 'alpine':
+            # TODO: it doesn't work yet, new abuild is needed and add 'USE_CCACHE=1' to /etc/abuild.conf
+            ccache_bin_path = '/usr/lib/ccache/bin'
         env['PATH'] = ccache_bin_path + ':' + env['PATH']
         env['CCACHE_DIR'] = ccache_dir
     return env