]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1429] hammer: added support for building Kea on Alpine 3.12
authorMichal Nowikowski <godfryd@isc.org>
Wed, 23 Sep 2020 15:50:08 +0000 (17:50 +0200)
committerMichal Nowikowski <godfryd@isc.org>
Thu, 1 Oct 2020 08:39:30 +0000 (08:39 +0000)
hammer.py

index c479324aead7089335f762cdcba0f95b555d941b..5671437212121ed9753520d314dc0432d8a14aa9 100755 (executable)
--- a/hammer.py
+++ b/hammer.py
@@ -58,7 +58,8 @@ SYSTEMS = {
                 '12.0'],
     'alpine': [
         '3.10',
-        '3.11'
+        '3.11',
+        '3.12'
     ]
 }
 
@@ -101,13 +102,14 @@ IMAGE_TEMPLATES = {
     'freebsd-12.0-virtualbox': {'bare': 'generic/freebsd12',           'kea': 'godfryd/kea-freebsd-12.0'},
     'alpine-3.10-lxc':         {'bare': 'godfryd/lxc-alpine-3.10',     'kea': 'godfryd/kea-alpine-3.10'},
     'alpine-3.11-lxc':         {'bare': 'isc/lxc-alpine-3.11',         'kea': 'isc/kea-alpine-3.11'},
+    'alpine-3.12-lxc':         {'bare': 'isc/lxc-alpine-3.12',         'kea': 'isc/kea-alpine-3.12'},
 }
 
 # NOTES
 # ** Alpine **
 # 1. Extracting rootfs is failing:
 #    It requires commenting out checking if rootfs has been extraced as it checks for file /bin/true which is a link.
-#    Comment out in ~/.vagrant.d/gems/2.4.9/gems/vagrant-lxc-1.4.3/scripts/lxc-template near 'Failed to extract rootfs'
+#    Comment out in ~/.vagrant.d/gems/2.X.Y/gems/vagrant-lxc-1.4.3/scripts/lxc-template near 'Failed to extract rootfs'
 
 
 LXC_VAGRANTFILE_TPL = """# -*- mode: ruby -*-
@@ -1406,8 +1408,10 @@ def prepare_system_local(features, check_times):
         if 'docs' in features:
             if revision == '3.10':
                 packages.extend(['py-sphinx', 'py-sphinx_rtd_theme'])
-            else:
+            elif revision == '3.11':
                 packages.extend(['py3-sphinx'])
+            else:
+                packages.extend(['py3-sphinx', 'py3-sphinx_rtd_theme'])
 
         if 'unittest' in features:
             _install_gtest_sources()