]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
ci: Disable bpf-framework option for build and unit test jobs
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 17 Oct 2025 09:53:48 +0000 (11:53 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 27 Feb 2026 21:57:05 +0000 (21:57 +0000)
/usr/sbin/bpftool is completely broken inside containers on
Ubuntu which makes meson blow up so disable the bpf-framework
stuff to avoid the issue.

TODO: Drop when we move off Ubuntu Noble as this will be fixed
in the next Ubuntu LTS release.

(cherry picked from commit cc814110af7a453db898ea2990a0281616d5ceff)
(cherry picked from commit 279465a212a18f8d58fd1ef1df33bec2d740f757)

.github/workflows/build-test.sh
.github/workflows/unit-tests.sh

index fe27e617840e2d52e55838f9b665cdfb7a274419..1e8daeac2c5ec4341a62a1f3b2c9a4e3c1d252a1 100755 (executable)
@@ -169,6 +169,7 @@ for args in "${ARGS[@]}"; do
          meson setup \
                -Dtests=unsafe -Dslow-tests=true -Dfuzz-tests=true --werror \
                -Dnobody-group=nogroup -Dcryptolib="${CRYPTOLIB:?}" -Ddebug=false \
+               -Dbpf-framework=disabled \
                $args build; then
 
         cat build/meson-logs/meson-log.txt
index 908682669a7c118d52d16ae011930c694943763a..b7bafa0249416e56e7c50b1c97cdce75e2a55d4f 100755 (executable)
@@ -92,7 +92,7 @@ for phase in "${PHASES[@]}"; do
                 fi
             fi
             MESON_ARGS+=(--fatal-meson-warnings)
-            run_meson -Dnobody-group=nogroup --werror -Dtests=unsafe -Dslow-tests=true -Dfuzz-tests=true "${MESON_ARGS[@]}" build
+            run_meson -Dnobody-group=nogroup --werror -Dtests=unsafe -Dslow-tests=true -Dfuzz-tests=true -Dbpf-framework=disabled "${MESON_ARGS[@]}" build
             ninja -C build -v
             # Ensure setting a timezone (like the reproducible build tests do) does not break time/date unit tests
             TZ=GMT+12 meson test -C build --print-errorlogs
@@ -115,7 +115,7 @@ for phase in "${PHASES[@]}"; do
                 fi
             fi
             MESON_ARGS+=(--fatal-meson-warnings)
-            run_meson -Dnobody-group=nogroup --werror -Dtests=unsafe -Db_sanitize=address,undefined "${MESON_ARGS[@]}" build
+            run_meson -Dnobody-group=nogroup --werror -Dtests=unsafe -Db_sanitize=address,undefined -Dbpf-framework=disabled "${MESON_ARGS[@]}" build
             ninja -C build -v
 
             export ASAN_OPTIONS=strict_string_checks=1:detect_stack_use_after_return=1:check_initialization_order=1:strict_init_order=1