qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Don't require libcap-ng for virtfs support
@ 2023-04-21 13:53 Peter Foley
  2023-04-24  9:04 ` Christian Schoenebeck
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Foley @ 2023-04-21 13:53 UTC (permalink / raw)
  To: qemu-devel
  Cc: venture, Peter Foley, Paolo Bonzini, Marc-André Lureau,
	Daniel P. Berrangé, Thomas Huth, Philippe Mathieu-Daudé

It's only required for the proxy helper.

Signed-off-by: Peter Foley <pefoley@google.com>
---
 meson.build | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/meson.build b/meson.build
index c44d05a13f..1d4888b1c0 100644
--- a/meson.build
+++ b/meson.build
@@ -1759,12 +1759,12 @@ have_virtfs = get_option('virtfs') \
              error_message: 'virtio-9p (virtfs) requires Linux or macOS') \
     .require(targetos == 'linux' or cc.has_function('pthread_fchdir_np'),
              error_message: 'virtio-9p (virtfs) on macOS requires the presence of pthread_fchdir_np') \
-    .require(targetos == 'darwin' or (libattr.found() and libcap_ng.found()),
-             error_message: 'virtio-9p (virtfs) on Linux requires libcap-ng-devel and libattr-devel') \
+    .require(targetos == 'darwin' or libattr.found(),
+             error_message: 'virtio-9p (virtfs) on Linux requires libattr-devel') \
     .disable_auto_if(not have_tools and not have_system) \
     .allowed()
 
-have_virtfs_proxy_helper = targetos != 'darwin' and have_virtfs and have_tools
+have_virtfs_proxy_helper = targetos != 'darwin' and have_virtfs and have_tools and libcap_ng.found()
 
 if get_option('block_drv_ro_whitelist') == ''
   config_host_data.set('CONFIG_BDRV_RO_WHITELIST', '')
-- 
2.40.0.634.g4ca3ef3211-goog



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-04-28 13:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-21 13:53 [PATCH] Don't require libcap-ng for virtfs support Peter Foley
2023-04-24  9:04 ` Christian Schoenebeck
2023-04-28 13:34   ` [PATCH v2] " Peter Foley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).