diff --git a/.github/workflows/build_test.sh b/.github/workflows/build_test.sh index 9f4ef79bbb..abf7c3a8a7 100755 --- a/.github/workflows/build_test.sh +++ b/.github/workflows/build_test.sh @@ -27,6 +27,7 @@ PACKAGES=( itstool kbd libblkid-dev + libbpf-dev libcap-dev libcurl4-gnutls-dev libfdisk-dev @@ -48,8 +49,8 @@ PACKAGES=( net-tools perl python3-evdev - python3-lxml python3-jinja2 + python3-lxml python3-pip python3-pyparsing python3-setuptools diff --git a/meson.build b/meson.build index 0eb89a7bbd..1230e7ff33 100644 --- a/meson.build +++ b/meson.build @@ -992,8 +992,17 @@ conf.set10('HAVE_LIBBPF', libbpf.found()) if want_bpf_framework == 'false' conf.set10('BPF_FRAMEWORK', 0) else - clang = find_program('clang', required : bpf_framework_required) - llvm_strip = find_program('llvm-strip', required : bpf_framework_required) + # Support 'versioned' clang/llvm-strip binaries, as seen on Debian/Ubuntu + # (like clang-10/llvm-strip-10) + clang_bin = cc.get_id() == 'clang' ? cc.cmd_array()[0] : 'clang' + clang = find_program(clang_bin, required : bpf_framework_required) + if clang.found() + llvm_strip_bin = run_command(clang, '--print-prog-name', 'llvm-strip', + check : true).stdout().strip() + else + llvm_strip_bin = 'llvm-strip' + endif + llvm_strip = find_program(llvm_strip_bin, required : bpf_framework_required) # Debian installs this in /usr/sbin/ which is not in $PATH. # We check for 'bpftool' first, honouring $PATH, and in /usr/sbin/ for Debian. diff --git a/src/analyze/analyze.c b/src/analyze/analyze.c index a641be4179..d5057bbe85 100644 --- a/src/analyze/analyze.c +++ b/src/analyze/analyze.c @@ -1959,7 +1959,7 @@ static int dump_filesystems(int argc, char *argv[], void *userdata) { const statfs_f_type_t *magic; bool is_primary = false; - assert(fs_type_from_string(*filesystem, &magic) >= 0); + assert_se(fs_type_from_string(*filesystem, &magic) >= 0); for (size_t i = 0; magic[i] != 0; i++) { const char *primary;