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:
Beniamino Galvani 2026-02-17 15:06:55 +01:00
parent 62997ac8c0
commit 4e3371964c

View file

@ -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