When QEMU shared folders feature is enabled (through QEMU_VIRTFS_ENABLE option) then QEMU is configured with the parameter --enable-virtfs which requires libcap-ng-dev package.
Without this package, it produces this error:
../meson.build:1467:0: ERROR: Feature virtfs cannot be enabled: virtio-9p (virtfs) on Linux requires libcap-ng-devel and libattr-devel
When QEMU shared folders feature is enabled (through QEMU_VIRTFS_ENABLE option) then QEMU is configured with the parameter --enable-virtfs which requires libcap-ng-dev package.
Without this package, it produces this error:
Steps to reproduce (inside docker image):