mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-03-20 09:20:40 +01:00
gitlab-ci: disable CLAT if required libraries are missing
Old Alpine and Debian release don't have the required libraries,
disable CLAT on them.
Fixes: dd3758dd80 ('contrib: Add libbpf and libxdp to dependencies')
This commit is contained in:
parent
62997ac8c0
commit
4e3371964c
1 changed files with 10 additions and 0 deletions
|
|
@ -55,6 +55,7 @@ _WITH_LIBTEAM="true"
|
|||
_WITH_DOCS="true"
|
||||
_WITH_SYSTEMD_LOGIND="true"
|
||||
_WITH_NBFT="true"
|
||||
_WITH_CLAT="true"
|
||||
if [ $IS_ALPINE = 1 ]; then
|
||||
_WITH_SYSTEMD_LOGIND="false"
|
||||
fi
|
||||
|
|
@ -63,6 +64,14 @@ if ! pkgconf 'libnvme >= 1.5'; then
|
|||
_WITH_NBFT="false"
|
||||
fi
|
||||
|
||||
if ! pkgconf 'libndp >= 1.9'; then
|
||||
_WITH_CLAT="false"
|
||||
fi
|
||||
|
||||
if ! pkgconf 'libbpf >= 1.3'; then
|
||||
_WITH_CLAT="false"
|
||||
fi
|
||||
|
||||
if [ -z "${NMTST_SEED_RAND+x}" ]; then
|
||||
NMTST_SEED_RAND="$SRANDOM"
|
||||
if [ -z "$NMTST_SEED_RAND" ]; then
|
||||
|
|
@ -195,6 +204,7 @@ meson setup build \
|
|||
-D ifupdown=true \
|
||||
\
|
||||
-D nbft=$_WITH_NBFT \
|
||||
-D clat=$_WITH_CLAT \
|
||||
\
|
||||
#end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue