From nobody Tue Sep 9 19:12:40 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass(p=reject dis=none) header.from=lists.libvirt.org ARC-Seal: i=1; a=rsa-sha256; t=1752845721; cv=none; d=zohomail.com; s=zohoarc; b=j2YO/Huf8rlzkZuNenYVzIo3fojdiDgHPck+8FV4c6bLypq5b/6gmyS0o8zhaC6u5uFdTMxCLpPYL9J0VeCHXNY5Il2RQS12oNRHcxK/uAIaVIHl73XsgnaJpKhxW7XNKcnh6sbCL2GFb4ei//Ec3siaTyk6Z6axqxue4hV25P0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1752845721; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Reply-To:References:Subject:Subject:To:To:Message-Id:Cc; bh=x9xAvRuZadEIJsMw1EYZ7+B10RFutxsLzcBed34tF7I=; b=EOA4H5MbPE7A63B+HWG2JmWVtc29WAtCk/W5LSRGsyCEgfjV3YwABzrC2TO08xhXExY9DgSgZKyy8Xq1FiD8t3quBs+nUjV6Em01nOjAGJyR7+/6v7bi1FEgsxYEVbzHcXViA+gdmwFhOFMSR/ajkWFL4r5mnluj0cMq8FG1tyQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1752845721265381.8837082280186; Fri, 18 Jul 2025 06:35:21 -0700 (PDT) Received: by lists.libvirt.org (Postfix, from userid 996) id 4DEAB1594; Fri, 18 Jul 2025 09:35:20 -0400 (EDT) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id 3E92A15EC; Fri, 18 Jul 2025 09:34:42 -0400 (EDT) Received: by lists.libvirt.org (Postfix, from userid 996) id D054812A8; Fri, 18 Jul 2025 09:34:36 -0400 (EDT) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id E33421557 for ; Fri, 18 Jul 2025 09:34:28 -0400 (EDT) Received: from mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-68-tb-MR4MdO2abUtIQH_Ns6Q-1; Fri, 18 Jul 2025 09:34:27 -0400 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 178E7195608F for ; Fri, 18 Jul 2025 13:34:26 +0000 (UTC) Received: from localhost.localdomain (unknown [10.43.3.236]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 5D38A195608D for ; Fri, 18 Jul 2025 13:34:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1752845668; h=from:from: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: in-reply-to:in-reply-to:references:references; bh=OnQSHYbbLGXBHc6NICtwdaNOyJ1WkMKSohLvBR97uH8=; b=I3i4VXRn83km9SnVm8FixwC7tWkqaVo5hfokOrd/6E2Avfthz5eUOv91KuSDUWx81ae2nZ M7xzEL5CDS9zuNqm56EgZPc8DKfkmGlBWnuRSCJj9XBU4Zz4nV+69+W9Y/lZkAhSQxucpM zO0Pn8pyRjZ7lSW8VlYXIfkf2jwnMqs= X-MC-Unique: tb-MR4MdO2abUtIQH_Ns6Q-1 X-Mimecast-MFC-AGG-ID: tb-MR4MdO2abUtIQH_Ns6Q_1752845666 To: devel@lists.libvirt.org Subject: [PATCH 1/2] meson: Convert attr_dep to dependency() Date: Fri, 18 Jul 2025 15:34:20 +0200 Message-ID: <001b8d2619ba71159ecce55e517d57fc85a05363.1752845615.git.mprivozn@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: YG0VUQDGhcWEkgsnmMwYniyKTONvp72tnpeJ8AAOmjs_1752845666 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Message-ID-Hash: ELQKL7MHNJ7YI22JPIV2M27O2Y6EXBM7 X-Message-ID-Hash: ELQKL7MHNJ7YI22JPIV2M27O2Y6EXBM7 X-MailFrom: mprivozn@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; header-match-config-2; header-match-config-3; header-match-devel.lists.libvirt.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.2 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: From: Michal Privoznik via Devel Reply-To: Michal Privoznik X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1752845723035116600 Content-Type: text/plain; charset="utf-8"; x-default="true" From: Michal Privoznik Currently, libattr is detected using cc.find_library() because at historically, the library was lacking pkg-config file. But that changed with libattr-2.4.48 (released 7+ years ago) and even prehistoric distros have it now. Switch to dependency(). Signed-off-by: Michal Privoznik --- meson.build | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 08521fe7ea..7fd0e835e9 100644 --- a/meson.build +++ b/meson.build @@ -919,8 +919,7 @@ if not get_option('apparmor_profiles').disabled() endif endif =20 -# FIXME rewrite to use dependency() once we can use 2.4.48 -attr_dep =3D cc.find_library('attr', required: get_option('attr')) +attr_dep =3D dependency('libattr', required: get_option('attr')) if attr_dep.found() conf.set('WITH_LIBATTR', 1) endif --=20 2.49.1