From 3f8dfb2920d84767e889ac56db1a4b1408b5369e Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Tue, 17 Feb 2026 15:06:55 +0100 Subject: [PATCH 1/2] 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: dd3758dd8082 ('contrib: Add libbpf and libxdp to dependencies') --- contrib/scripts/nm-ci-run.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/contrib/scripts/nm-ci-run.sh b/contrib/scripts/nm-ci-run.sh index 4fd47c1980..1f2b44e69f 100755 --- a/contrib/scripts/nm-ci-run.sh +++ b/contrib/scripts/nm-ci-run.sh @@ -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 From fa1c5fa9c187c2d61ea528ecdddbef9779e72d69 Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Tue, 17 Feb 2026 15:10:55 +0100 Subject: [PATCH 2/2] build: require libbpf 1.3.0 Version 1.3.0 of the library is needed to support "tcx" program types. --- meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 8b0334240d..a0511309a4 100644 --- a/meson.build +++ b/meson.build @@ -517,8 +517,8 @@ config_h.set10('HAVE_SELINUX', enable_selinux) # CLAT support enable_clat = get_option('clat') if enable_clat - libbpf = dependency('libbpf', version: '>= 0.1.0', required: false) - assert(libbpf.found(), 'You must have libbpf installed to build. Use -Dclat=false to disable use of it') + libbpf = dependency('libbpf', version: '>= 1.3.0', required: false) + assert(libbpf.found(), 'You must have libbpf >= 1.3.0 installed to build. Use -Dclat=false to disable use of it') libndp_dep = dependency('libndp', version: '>= 1.9', required: false) assert(libndp_dep.found(), 'You must have libndp >= 1.9 installed to build with CLAT support. Use -Dclat=false to disable it') endif