From nobody Wed May 15 11:24:00 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1648119196; cv=none; d=zohomail.com; s=zohoarc; b=M+tL0Y9qhxhaGX1HrKlvVrbQ9eRaCVfKVhNxnUipRV1BrT623vuwrKM16WI/4B/iSHaH3Sq0/Ryfs+f/VqsFtGxgNAr7WGCr4bK+psbKu2vHw8VVBoZMfrpc0tgBKu/xpuH+3dsKYFKeD+XAhiZiS3zjvgTHDf5tkqM4GzTC0X8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1648119196; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=BNjIuUx/ecUk7WCmr7z1dHMeujLVQ+POl+yQmUlYVt8=; b=Q/TCnu1GWzyf7Tjob4lAl6YmkFJXk7Cx7MfRGCymczJVBniL1X8SdFtX4rfXnspRSESSzGnyUAJiWvhdHEAiChsB3JK3hZBWc38SSwzUUJ2AP84TR7eLsYgIEAUGMiPExFmho/1LSiZt+k1aimYw82nAHv1EB1oRQb9nIL1V6Ck= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 164811919650692.5239570872368; Thu, 24 Mar 2022 03:53:16 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-660-nIsLZ4p5OsaZX7AAT5u90A-1; Thu, 24 Mar 2022 06:53:14 -0400 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 868DA185A7A4; Thu, 24 Mar 2022 10:53:11 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 81345492CA3; Thu, 24 Mar 2022 10:53:07 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 1E0F8194034F; Thu, 24 Mar 2022 10:53:07 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 9A10D194034E for ; Thu, 24 Mar 2022 10:53:05 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 7732A5844B8; Thu, 24 Mar 2022 10:53:05 +0000 (UTC) Received: from avogadro.lan (unknown [10.39.195.210]) by smtp.corp.redhat.com (Postfix) with ESMTP id 08619492CA3 for ; Thu, 24 Mar 2022 10:53:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1648119195; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=BNjIuUx/ecUk7WCmr7z1dHMeujLVQ+POl+yQmUlYVt8=; b=K3b24kreyhbS9wGbX0LAclyoTK7ULC/UuN4FtHSRrNJfXtZQwPIanR3cODsGKmwREcC6bG UMniqm04ZyJHI2b+mX3+mC5Ol0cHXLmjQmXNyiu0/8tlDHDXi1ghkEGp6Uktap3tvTHDcv Wj0TMJak2vbEQQBpL6MhjcQgFIYH6YE= X-MC-Unique: nIsLZ4p5OsaZX7AAT5u90A-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Paolo Bonzini To: libvir-list@redhat.com Subject: [PATCH] meson: do not look for librbd/librados if not requested Date: Thu, 24 Mar 2022 11:53:03 +0100 Message-Id: <20220324105304.142101-1-pbonzini@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.9 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 2.85 on 10.11.54.9 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1648119198119100001 Content-Type: text/plain; charset="utf-8"; x-default="true" rbd_dep is not used if -Dstorage_rbd=3Ddisabled. Do not bother looking for the libraries that compose it if the rbd storage backend was not requested. Signed-off-by: Paolo Bonzini Reviewed-by: Michal Privoznik --- meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 2c1d3bc64d..eb13c7efa4 100644 --- a/meson.build +++ b/meson.build @@ -1127,8 +1127,8 @@ parallels_sdk_dep =3D dependency('parallels-sdk', ver= sion: '>=3D' + parallels_sdk_ve pciaccess_version =3D '0.10.0' pciaccess_dep =3D dependency('pciaccess', version: '>=3D' + pciaccess_vers= ion, required: get_option('pciaccess')) =20 -rbd_dep =3D cc.find_library('rbd', required: false) -rados_dep =3D cc.find_library('rados', required: false) +rbd_dep =3D cc.find_library('rbd', required: get_option('storage_rbd')) +rados_dep =3D cc.find_library('rados', required: get_option('storage_rbd')) if rbd_dep.found() and not cc.has_function('rbd_get_features', dependencie= s: rbd_dep) rbd_dep =3D dependency('', required: false) endif --=20 2.35.1