diff options
author | Ilya Maximets <i.maximets@ovn.org> | 2021-05-06 14:27:23 +0200 |
---|---|---|
committer | Ilya Maximets <i.maximets@ovn.org> | 2021-05-11 16:32:20 +0200 |
commit | b03daccfdad380331f7db76aaff1e9c3743cd1ae (patch) | |
tree | 5c02c79c063fd3b46138207d45ca18853ad4c94a /.cirrus.yml | |
parent | 721488d4a5f497f5693e286cf6f1916804bce2eb (diff) | |
download | openvswitch-b03daccfdad380331f7db76aaff1e9c3743cd1ae.tar.gz |
cirrus: Look up existing versions of python dependencies.
FreeBSD sometimes changes the base version of python3 that is
used for packages. This affects package names. For example,
currently CI is broken, because there is no more py37- versions
of sphinx and openssl available, only py38- ones:
pkg: No packages available to install matching 'py37-openssl'
have been found in the repositories
pkg: No packages available to install matching 'py37-sphinx'
have been found in the repositories
We had the same issue last year with 3.6 -> 3.7 transition:
dfa2e3d04948 ("cirrus: Use python 3.7 packages on FreeBSD.")
Fixing that by searching for a package instead of using a specific
version. This should help to avoid same issues in the future.
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Reviewed-by: Aaron Conole <aconole@redhat.com>
Acked-by: Kevin Traynor <ktraynor@redhat.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
Diffstat (limited to '.cirrus.yml')
-rw-r--r-- | .cirrus.yml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/.cirrus.yml b/.cirrus.yml index 2caf36b85..358f2ba25 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -8,8 +8,8 @@ freebsd_build_task: memory: 8G env: - DEPENDENCIES: automake libtool gmake gcc wget openssl - python3 py37-openssl py37-sphinx + DEPENDENCIES: automake libtool gmake gcc wget openssl python3 + PY_DEPS: sphinx|openssl matrix: COMPILER: gcc COMPILER: clang @@ -18,6 +18,7 @@ freebsd_build_task: - sysctl -w kern.coredump=0 - pkg update -f - pkg install -y ${DEPENDENCIES} + $(pkg search -xq "^py3[0-9]+-(${PY_DEPS})-[0-9]+" | xargs) configure_script: - ./boot.sh |