When not explicitly select a sysemu target and building virtiofsd, the seccomp/cap-ng libraries are not resolved, leading to this error:
$ configure --target-list=i386-linux-user --disable-tools --enable-virtiofsd tools/meson.build:12:6: ERROR: Problem encountered: virtiofsd requires libcap-ng-devel and seccomp-devel Fix by enabling sysemu (have_system) when virtiofsd is built. Reported-by: Mahmoud Mandour <ma.mando...@gmail.com> Signed-off-by: Philippe Mathieu-Daudé <phi...@redhat.com> --- meson.build | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meson.build b/meson.build index c6f4b0cf5e8..f858935ad95 100644 --- a/meson.build +++ b/meson.build @@ -51,6 +51,8 @@ have_system = have_system or target.endswith('-softmmu') endforeach have_tools = 'CONFIG_TOOLS' in config_host +# virtiofsd depends on sysemu +have_system = have_system or not get_option('virtiofsd').disabled() have_block = have_system or have_tools python = import('python').find_installation() -- 2.26.3