From 4ba2700e2f947d4b3cc43902b1f7f506b3c661a4 Mon Sep 17 00:00:00 2001 From: Michal Nowikowski Date: Wed, 23 Jan 2019 11:26:33 +0100 Subject: [PATCH] hammer: various improvements - added sql script for mysql used on debian 9 to fix MariaDB issue - added enabling kea-shell feature - removed hack for detecting boost on FreeBSD as it is fixed in Kea now --- hammer.py | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/hammer.py b/hammer.py index c68749747e..09e955bd42 100755 --- a/hammer.py +++ b/hammer.py @@ -138,6 +138,8 @@ def get_system_revision(): if system == 'debian': if revision.startswith('8.'): revision = '8' + if revision.startswith('9.'): + revision = '9' elif system == 'redhat': system = 'rhel' if revision.startswith('8.'): @@ -409,7 +411,7 @@ def _install_gtest_sources(): os.unlink('/tmp/gtest.tar.gz') -def _configure_mysql(system): +def _configure_mysql(system, revision): if system in ['fedora', 'centos']: execute('sudo systemctl enable mariadb.service') execute('sudo systemctl start mariadb.service') @@ -429,6 +431,19 @@ def _configure_mysql(system): cmd += "EOF\n\"" execute(cmd) + log.info("FIX FOR ISSUE: %s %s", system, revision) + if system == 'debian' and revision == '9': + log.info("FIX FOR ISSUE 2: %s %s", system, revision) + # fix for issue: https://gitlab.isc.org/isc-projects/kea/issues/389 + cmd = "bash -c \"cat <