]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#2534] FreeBSD 13/sphinx/python version fix
authorTomek Mrugalski <tomek@isc.org>
Thu, 18 Aug 2022 12:22:57 +0000 (14:22 +0200)
committerAndrei Pavel <andrei@isc.org>
Mon, 10 Jul 2023 06:24:31 +0000 (09:24 +0300)
hammer.py

index 4fc493e469ae7875bacedded3bf21636b4d390a3..984fbaf8d78d51e12ce5e9248abf805dd5a09c4a 100755 (executable)
--- a/hammer.py
+++ b/hammer.py
@@ -1762,10 +1762,16 @@ def prepare_system_local(features, check_times):
         packages = ['autoconf', 'automake', 'libtool', 'openssl', 'log4cplus', 'boost-libs', 'wget']
 
         if 'docs' in features:
+            # FreeBSD 11 and earlier should have python 3.7
+            # FreeBSD 12 seems to have python 3.8
+            # FreeBSD 13 has python 3.9
             if float(revision.split('.')[0]) < 12.0:
                 packages.extend(['py37-sphinx', 'py37-sphinx_rtd_theme'])
             else:
-                packages.extend(['py38-sphinx', 'py38-sphinx_rtd_theme'])
+                if revision.startswith(('12')):
+                    packages.extend(['py38-sphinx', 'py38-sphinx_rtd_theme'])
+                else:
+                    packages.extend(['py39-sphinx', 'py39-sphinx_rtd_theme'])
 
         if 'mysql' in features:
             if revision.startswith(('11', '12')):