]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: require bpftool version >= 5.6
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 12 Jan 2022 13:42:18 +0000 (22:42 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 14 Jan 2022 07:43:31 +0000 (16:43 +0900)
Closes #22051.

meson.build

index 910862ed367bcc337a97966ab0daa0480b622bbd..a0ce462f317ddc627e59e12fb3d40e88b0b943dc 100644 (file)
@@ -1005,7 +1005,11 @@ else
 
         # Debian installs this in /usr/sbin/ which is not in $PATH.
         # We check for 'bpftool' first, honouring $PATH, and in /usr/sbin/ for Debian.
-        bpftool = find_program('bpftool', '/usr/sbin/bpftool', required : bpf_framework_required)
+        # We use 'bpftool gen' subcommand, it was added by 985ead416df39d6fe8e89580cc1db6aa273e0175 (v5.6).
+        bpftool = find_program('bpftool',
+                               '/usr/sbin/bpftool',
+                               required : bpf_framework_required,
+                               version : '>= 5.6')
 
         deps_found = libbpf.found() and clang.found() and llvm_strip.found() and bpftool.found()
         # Can build BPF program from source code in restricted C