summaryrefslogtreecommitdiffstats
path: root/hammer.py
diff options
context:
space:
mode:
authorAndrei Pavel <andrei@isc.org>2022-09-05 21:32:58 +0200
committerAndrei Pavel <andrei@isc.org>2022-10-07 14:06:27 +0200
commit033ae2e37f2cc5dff4b83ed3ad6b94eb2c43ac26 (patch)
treec071191325350174c97f0db0b1ad8f9a48f29625 /hammer.py
parent[#2539] hammer.py: use venv or packages instead of virtualenv (diff)
downloadkea-033ae2e37f2cc5dff4b83ed3ad6b94eb2c43ac26.tar.xz
kea-033ae2e37f2cc5dff4b83ed3ad6b94eb2c43ac26.zip
[#2539] hammer.py: reinstall pkg to update repositories
This way, a pkg-search command will find package versions that can be installed rather than outdated versions. Solves errors like the following. pkg: No packages available to install matching 'py38-sphinx' have been found in the repositories
Diffstat (limited to 'hammer.py')
-rwxr-xr-xhammer.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/hammer.py b/hammer.py
index 06e72a2fe1..b66ff0f946 100755
--- a/hammer.py
+++ b/hammer.py
@@ -1799,6 +1799,13 @@ def prepare_system_local(features, check_times):
# prepare freebsd
elif system == 'freebsd':
+ # Packages are already upgraded by default when installing a package,
+ # so to avoid mismatching dependency versions, inaccurate dynamic
+ # version fetching and other troubles, clean up local cache and
+ # install an arbitrary package to fetch remote first.
+ execute('sudo pkg clean -a -y')
+ execute('sudo pkg install -y pkg')
+
packages = ['autoconf', 'automake', 'libtool', 'openssl', 'log4cplus', 'boost-libs', 'wget']
if 'docs' in features: