2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 05:55:28 +00:00

[#2503] Workaround to fix alpine 3.16 packaging by fetching sphinx from pip

This commit is contained in:
Dan Theisen
2022-07-26 15:58:37 -07:00
parent 80c19f385c
commit 66b88fd5ae

View File

@@ -1825,6 +1825,8 @@ def prepare_system_local(features, check_times):
packages.extend(['py-sphinx', 'py-sphinx_rtd_theme'])
elif revision == '3.11':
packages.extend(['py3-sphinx'])
elif revision == '3.16':
packages.extend(['py3-pip'])
else:
packages.extend(['py3-sphinx', 'py3-sphinx_rtd_theme'])
@@ -1860,6 +1862,10 @@ def prepare_system_local(features, check_times):
install_pkgs(packages, env=env, timeout=6 * 60, check_times=check_times)
# work around outdated sphinx packages on alpine 3.16
if 'docs' in features and revision == '3.16':
execute('sudo pip3 install -U sphinx sphinx_rtd_theme')
# check for existence of 'vagrant' user and 'abuild' group before adding him to the group
try:
pwd.getpwnam('vagrant')