From nobody Mon Feb 9 11:33:12 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1608198768; cv=none; d=zohomail.com; s=zohoarc; b=WD2y2dEZR6/UPXTljcTMUsV40HANgS3lcU0SgKW0z1ZJwH1caXFUH7w2ZzGiSDEotm3vJSy4XqxbjPtvMtb9cxwEIkbV578wSEXYCJjQ3yOmFsO8KpoZH0y7QjkgQ/RnfPucFGzxASWZO6XlnVO+rwvC1WfzkhKsuRf7D6kXS20= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1608198768; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=askZ63rhvBcn5/LKEeuQq1hjhGHYv5aruqKs/lccbAg=; b=auDaQzIhDm+Dw2m7XYS0xhRH1fX2AUUrLkkRpGH2avAisRIqipQGTsJgGoeRpRRUZj0r7QLSmzxVKlei+Ne9khu3DT3IHzeymVPujuUEGBvwMOD3VNFIuwbe4UVU2+g6OKhsOYu7vcyNaF5pkvecn+eHlt25RDEGIcIe1VV/wZM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1608198768528446.12077699288136; Thu, 17 Dec 2020 01:52:48 -0800 (PST) Received: from localhost ([::1]:47556 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kppxm-0000Bz-0M for importer@patchew.org; Thu, 17 Dec 2020 04:52:47 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:47698) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kppmL-0004hr-7t for qemu-devel@nongnu.org; Thu, 17 Dec 2020 04:40:57 -0500 Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]:43533) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kppmJ-0007jX-30 for qemu-devel@nongnu.org; Thu, 17 Dec 2020 04:40:56 -0500 Received: by mail-ed1-x52f.google.com with SMTP id q16so27921776edv.10 for ; Thu, 17 Dec 2020 01:40:54 -0800 (PST) Received: from avogadro.lan ([2001:b07:6468:f312:c8dd:75d4:99ab:290a]) by smtp.gmail.com with ESMTPSA id rs27sm3463677ejb.21.2020.12.17.01.40.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Dec 2020 01:40:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=askZ63rhvBcn5/LKEeuQq1hjhGHYv5aruqKs/lccbAg=; b=U2W571SAvHdbXt0OY/hD9mJ+dvD9P7lxctOXAjrxudkwlOq9v3SQsqa0qAQzJmp603 viDSkU7qiV7hgNhe7vAl5KAdwK2HDravAHFrTBMt7orclKEgdTUiqAm7TtqLeOEjTFfS 0NIHYyRZ9s60nAtH3Wy9YNOcHRQSGl7DNFKg7J8pIm20YaIbMkEx+vn6Hqq2RNgGP6gF 2GnYy6cbAIg6pe6uKYPGYuRmLcapwefsmUo9o7E12LESXmN7Sf4FucZRHozkGYJaqPFe zAk+dhHF0G9k0gewe6XIiAb6Aqc89rfy9j/bw/1ki+ChsxA26NUXsAUhO9CMSPOGBEWK 8Q9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=askZ63rhvBcn5/LKEeuQq1hjhGHYv5aruqKs/lccbAg=; b=Er4GP8Qn8m6Z0wFlOxecJ97hf7yPsNJGzVpV3YQDZn9d3xBW8PRFJcmPgYLW2MozmP bSuy4jgVBH7Czv5u6+jHoOhKPOIY+uNa+i1vEE9RWrsWcjP9Pyuag0D2YkOM7FYz7pPQ IXsHQCmXyCgi0LCGxCNbOLPC0AU1P2WxFNGpC4GJdmZ8s+1ucQWhw7rNJJtqrlEKj+Jc 5OF/9EtQSNWk5RlgMOkxv2Rp+v0W2R7869251zlMDjCNqawt7lN/DF2qDrCb8yAUh8cd p5jjnfRTZw8P4jP4A1jHIC52t0vDViPuuJsnshZl6/Js7eFqMB+VjK0svnE1wMXZL6KM gN0g== X-Gm-Message-State: AOAM533kEhoq/PRnHQUi6EEBcn7W2b8gd1yjoIVNgo6SNZy7pBOmV9UU xUwgUCgqwrK3tJz7TQBJOzdcGncnFAQ= X-Google-Smtp-Source: ABdhPJxRw2WsRNFM/9UzuGq8KNFlLnvk47xzlQ74hOF9NMuHNwbD3J5W6ODRjI6Y+Lzu+37IqVaDww== X-Received: by 2002:aa7:dacf:: with SMTP id x15mr37213768eds.134.1608198053304; Thu, 17 Dec 2020 01:40:53 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 07/18] libnfs: convert to meson Date: Thu, 17 Dec 2020 10:40:33 +0100 Message-Id: <20201217094044.46462-8-pbonzini@redhat.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201217094044.46462-1-pbonzini@redhat.com> References: <20201217094044.46462-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::52f; envelope-from=paolo.bonzini@gmail.com; helo=mail-ed1-x52f.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Marc-Andr=C3=83=C2=A9=20Lureau?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini Reviewed-by: Marc-Andr=C3=A9 Lureau --- configure | 27 ++++----------------------- meson.build | 9 ++++++--- meson_options.txt | 2 ++ 3 files changed, 12 insertions(+), 26 deletions(-) diff --git a/configure b/configure index e22c56e8f6..c404252b17 100755 --- a/configure +++ b/configure @@ -407,7 +407,7 @@ vss_win32_sdk=3D"$default_feature" win_sdk=3D"no" want_tools=3D"$default_feature" libiscsi=3D"auto" -libnfs=3D"$default_feature" +libnfs=3D"auto" coroutine=3D"" coroutine_pool=3D"$default_feature" debug_stack_usage=3D"no" @@ -1143,9 +1143,9 @@ for opt do ;; --enable-libiscsi) libiscsi=3D"enabled" ;; - --disable-libnfs) libnfs=3D"no" + --disable-libnfs) libnfs=3D"disabled" ;; - --enable-libnfs) libnfs=3D"yes" + --enable-libnfs) libnfs=3D"enabled" ;; --enable-profiler) profiler=3D"yes" ;; @@ -5561,20 +5561,6 @@ if test "$have_ubsan" =3D "yes"; then QEMU_LDFLAGS=3D"-fsanitize=3Dundefined $QEMU_LDFLAGS" fi =20 -########################################## -# Do we have libnfs -if test "$libnfs" !=3D "no" ; then - if $pkg_config --atleast-version=3D1.9.3 libnfs; then - libnfs=3D"yes" - libnfs_libs=3D$($pkg_config --libs libnfs) - else - if test "$libnfs" =3D "yes" ; then - feature_not_found "libnfs" "Install libnfs devel >=3D 1.9.3" - fi - libnfs=3D"no" - fi -fi - ########################################## =20 # Exclude --warn-common with TSan to suppress warnings from the TSan libra= ries. @@ -6216,11 +6202,6 @@ if test "$zstd" =3D "yes" ; then echo "ZSTD_LIBS=3D$zstd_libs" >> $config_host_mak fi =20 -if test "$libnfs" =3D "yes" ; then - echo "CONFIG_LIBNFS=3Dy" >> $config_host_mak - echo "LIBNFS_LIBS=3D$libnfs_libs" >> $config_host_mak -fi - if test "$seccomp" =3D "yes"; then echo "CONFIG_SECCOMP=3Dy" >> $config_host_mak echo "SECCOMP_CFLAGS=3D$seccomp_cflags" >> $config_host_mak @@ -6782,7 +6763,7 @@ NINJA=3D$ninja $meson setup \ -Dgettext=3D$gettext -Dxkbcommon=3D$xkbcommon -Du2f=3D$u2f -Dvirti= ofsd=3D$virtiofsd \ -Dcapstone=3D$capstone -Dslirp=3D$slirp -Dfdt=3D$fdt -Dbrlapi=3D$b= rlapi \ -Dcurl=3D$curl -Dglusterfs=3D$glusterfs -Dbzip2=3D$bzip2 -Dlibiscs= i=3D$libiscsi \ - -Diconv=3D$iconv -Dcurses=3D$curses -Dlibudev=3D$libudev\ + -Dlibnfs=3D$libnfs -Diconv=3D$iconv -Dcurses=3D$curses -Dlibudev= =3D$libudev\ -Ddocs=3D$docs -Dsphinx_build=3D$sphinx_build -Dinstall_blobs=3D$b= lobs \ -Dvhost_user_blk_server=3D$vhost_user_blk_server \ -Dfuse=3D$fuse -Dfuse_lseek=3D$fuse_lseek \ diff --git a/meson.build b/meson.build index 3f53a7f1b2..0b8c9c5917 100644 --- a/meson.build +++ b/meson.build @@ -319,8 +319,10 @@ if 'CONFIG_LIBXML2' in config_host link_args: config_host['LIBXML2_LIBS'].spli= t()) endif libnfs =3D not_found -if 'CONFIG_LIBNFS' in config_host - libnfs =3D declare_dependency(link_args: config_host['LIBNFS_LIBS'].spli= t()) +if not get_option('libnfs').auto() or have_block + libnfs =3D dependency('libnfs', version: '>=3D1.9.3', + required: get_option('libnfs'), + method: 'pkg-config', static: enable_static) endif libattr =3D not_found if 'CONFIG_ATTR' in config_host @@ -928,6 +930,7 @@ config_host_data.set('CONFIG_GLUSTERFS_ZEROFILL', glust= erfs.version().version_co config_host_data.set('CONFIG_GLUSTERFS_FTRUNCATE_HAS_STAT', glusterfs_ftru= ncate_has_stat) config_host_data.set('CONFIG_GLUSTERFS_IOCB_HAS_STAT', glusterfs_iocb_has_= stat) config_host_data.set('CONFIG_LIBISCSI', libiscsi.found()) +config_host_data.set('CONFIG_LIBNFS', libnfs.found()) config_host_data.set('CONFIG_SDL', sdl.found()) config_host_data.set('CONFIG_SDL_IMAGE', sdl_image.found()) config_host_data.set('CONFIG_VHOST_USER_BLK_SERVER', have_vhost_user_blk_s= erver) @@ -2286,7 +2289,7 @@ summary_info +=3D {'usb net redir': config_host.h= as_key('CONFIG_USB_REDIR')} summary_info +=3D {'OpenGL support': config_host.has_key('CONFIG_OPENGL= ')} summary_info +=3D {'OpenGL dmabufs': config_host.has_key('CONFIG_OPENGL= _DMABUF')} summary_info +=3D {'libiscsi support': libiscsi.found()} -summary_info +=3D {'libnfs support': config_host.has_key('CONFIG_LIBNFS= ')} +summary_info +=3D {'libnfs support': libnfs.found()} summary_info +=3D {'build guest agent': config_host.has_key('CONFIG_GUEST_= AGENT')} if targetos =3D=3D 'windows' if 'WIN_SDK' in config_host diff --git a/meson_options.txt b/meson_options.txt index b562d4f1a6..4535bc4dc2 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -52,6 +52,8 @@ option('glusterfs', type : 'feature', value : 'auto', description: 'Glusterfs block device driver') option('libiscsi', type : 'feature', value : 'auto', description: 'libiscsi userspace initiator') +option('libnfs', type : 'feature', value : 'auto', + description: 'libnfs block device driver') option('mpath', type : 'feature', value : 'auto', description: 'Multipath persistent reservation passthrough') option('iconv', type : 'feature', value : 'auto', --=20 2.29.2