From nobody Mon Sep 8 17:11:52 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 Reviewed-by: Pavel Hrdina --- 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 From nobody Mon Sep 8 17:11:52 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=1752845746; cv=none; d=zohomail.com; s=zohoarc; b=OEQskTWOu6PDwbYI1vadKhW3yqHXaYOjyPXJApgQ+4dZ3dHlT4Tc7ekUfg3AtwrlX7eyf+tPbwVoMg0xavSErJFxQ3IqGAWPBjCJ+huVtXH9HM/nVysVuOZjHkca45QUf8PAAwILVOPln1iPtEYu6IOSFZ+ebt1CCdHqUaB102g= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1752845746; 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=Nm5UQu5jAHiFXrg1WHqJxm8S2zyTMIklHG8M86xWJfU=; b=jGZ4Y6Zgag3iH3XoK5u3rzucHAGzGVxyTbqkTEzhBKmHatdnLj2Jie0qIHteWOFpMeDr3dNceaXnvbwgVy5sBBM9wiAwWd7/6kxmmGyTVdd5ZV5jOe+EkVDYVINm//CDFwh7BlJV1+CpgLgb8vULhyZkhmyvzo2fUur49l2w+v8= 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 1752845746239548.8867035921592; Fri, 18 Jul 2025 06:35:46 -0700 (PDT) Received: by lists.libvirt.org (Postfix, from userid 996) id 067EB12D2; Fri, 18 Jul 2025 09:35:45 -0400 (EDT) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id D6E3A162A; Fri, 18 Jul 2025 09:34:44 -0400 (EDT) Received: by lists.libvirt.org (Postfix, from userid 996) id 04D0412B1; 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.129.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 C6BD8130D for ; Fri, 18 Jul 2025 09:34:32 -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-691-qdloKI4zNwq3kWyzGwbx1Q-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 2F06C19560A7 for ; Fri, 18 Jul 2025 13:34:27 +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 7DF6A195608D for ; Fri, 18 Jul 2025 13:34:26 +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=1752845672; 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=WBTna/LRGZbH4fEJ4uLqsSUzLg+5qh+3ExVTBlYNSQI=; b=VF0WNPOu1HyE6egpBoyMnGZuBHKWyfG9H7RGEM40s5hMVyRMbqy7FYV9ldHjbsUQjNZlkN o71uvqnggnc9rx+FUBGdwMeuqXEof5vljJpgu8Ffa6d86Z3GmA03GGZ3/uNF1MrD7O+ERj Wtg43kdYjjupZIFPlhazIOd4ykzqFtc= X-MC-Unique: qdloKI4zNwq3kWyzGwbx1Q-1 X-Mimecast-MFC-AGG-ID: qdloKI4zNwq3kWyzGwbx1Q_1752845667 To: devel@lists.libvirt.org Subject: [PATCH 2/2] meson: Report library versions in the summary Date: Fri, 18 Jul 2025 15:34:21 +0200 Message-ID: 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: l2RuoUhpjfrrRHgaQVeR9oFLXn9VFFQO_XWFkGZ9Vuc_1752845667 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Message-ID-Hash: UFUCZ22ISZIZBTBM4J7QFANVIXPORFHE X-Message-ID-Hash: UFUCZ22ISZIZBTBM4J7QFANVIXPORFHE 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: 1752845749522116600 Content-Type: text/plain; charset="utf-8"; x-default="true" From: Michal Privoznik The summary() directive accepts dependency() too [1] in which case it also prints version of the dependency found. This may come handy when reading build process transcripts. 1: https://mesonbuild.com/Reference-manual_functions.html#summary Signed-off-by: Michal Privoznik Reviewed-by: Pavel Hrdina --- meson.build | 74 ++++++++++++++++++++++++++--------------------------- 1 file changed, 37 insertions(+), 37 deletions(-) diff --git a/meson.build b/meson.build index 7fd0e835e9..deb4ac952f 100644 --- a/meson.build +++ b/meson.build @@ -2,7 +2,7 @@ project( 'libvirt', 'c', version: '11.6.0', license: 'LGPLv2+', - meson_version: '>=3D 0.56.0', + meson_version: '>=3D 0.57.0', default_options: [ 'buildtype=3Ddebugoptimized', 'b_pie=3Dtrue', @@ -2239,43 +2239,43 @@ drivermod_summary =3D { summary(drivermod_summary, section: 'Driver Loadable Modules', bool_yn: tr= ue) =20 libs_summary =3D { - 'acl': acl_dep.found(), - 'apparmor': apparmor_dep.found(), - 'attr': attr_dep.found(), - 'audit': audit_dep.found(), - 'bash_completion': bash_completion_dep.found(), - 'blkid': blkid_dep.found(), - 'capng': capng_dep.found(), - 'curl': curl_dep.found(), - 'devmapper': devmapper_dep.found(), - 'dlopen': dlopen_dep.found(), - 'fuse': fuse_dep.found(), - 'glusterfs': glusterfs_dep.found(), - 'json-c': json_c_dep.found(), - 'libbsd': libbsd_dep.found(), - 'libiscsi': libiscsi_dep.found(), - 'libkvm': libkvm_dep.found(), - 'libnbd': libnbd_dep.found(), - 'libnl': libnl_dep.found(), - 'libparted': libparted_dep.found(), - 'libpcap': libpcap_dep.found(), - 'libssh': libssh_dep.found(), - 'libssh2': libssh2_dep.found(), - 'libutil': libutil_dep.found(), - 'netcf': netcf_dep.found(), + 'acl': acl_dep, + 'apparmor': apparmor_dep, + 'attr': attr_dep, + 'audit': audit_dep, + 'bash_completion': bash_completion_dep, + 'blkid': blkid_dep, + 'capng': capng_dep, + 'curl': curl_dep, + 'devmapper': devmapper_dep, + 'dlopen': dlopen_dep, + 'fuse': fuse_dep, + 'glusterfs': glusterfs_dep, + 'json-c': json_c_dep, + 'libbsd': libbsd_dep, + 'libiscsi': libiscsi_dep, + 'libkvm': libkvm_dep, + 'libnbd': libnbd_dep, + 'libnl': libnl_dep, + 'libparted': libparted_dep, + 'libpcap': libpcap_dep, + 'libssh': libssh_dep, + 'libssh2': libssh2_dep, + 'libutil': libutil_dep, + 'netcf': netcf_dep, 'NLS': have_gnu_gettext_tools, - 'numactl': numactl_dep.found(), - 'openwsman': openwsman_dep.found(), - 'parallels-sdk': parallels_sdk_dep.found(), - 'pciaccess': pciaccess_dep.found(), + 'numactl': numactl_dep, + 'openwsman': openwsman_dep, + 'parallels-sdk': parallels_sdk_dep, + 'pciaccess': pciaccess_dep, 'polkit': conf.has('WITH_POLKIT'), - 'rbd': rbd_dep.found(), - 'readline': readline_dep.found(), - 'sanlock': sanlock_dep.found(), - 'sasl': sasl_dep.found(), - 'selinux': selinux_dep.found(), - 'udev': udev_dep.found(), - 'xdr': xdr_dep.found(), + 'rbd': rbd_dep, + 'readline': readline_dep, + 'sanlock': sanlock_dep, + 'sasl': sasl_dep, + 'selinux': selinux_dep, + 'udev': udev_dep, + 'xdr': xdr_dep, } summary(libs_summary, section: 'Libraries', bool_yn: true) =20 @@ -2325,7 +2325,7 @@ endif summary(misc_summary, section: 'Miscellaneous', bool_yn: true, list_sep: '= ') =20 devtools_summary =3D { - 'wireshark_dissector': wireshark_dep.found(), + 'wireshark_dissector': wireshark_dep, } summary(devtools_summary, section: 'Developer Tools', bool_yn: true) =20 --=20 2.49.1