From nobody Sat Sep 6 16:57:43 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1756973892; cv=none; d=zohomail.com; s=zohoarc; b=D1bdGUaxbDYc0eAJ4OU5/ImZ5qmz2MeDVybCKBJzJmDgzcey2jpJc+jqQRpHWpkBfg3USf0PX2E5Tr3BLX28rz8kOCIsD/7SRZjDDNaK5dP3VQUNsZtlcPWvnzsPfv2wTfzf1ceedOj+dM+8qQgMjvrDTAqFTPL2d+DkI8X7bsQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1756973892; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=Wv6wFcI7G6DdUK88SJsbLfMk3oLK1TTP1R3ujLyoIqI=; b=VEDWwWF9pzkSn6+PO7tWXjLwPr6EGXtwFOcMYhKecp6/Si0qSaJA9eUTAcvbnMEu294CR0OY6HDEVe7jetVZgkIxIF9tYxrVP5t/dMuxKOPcut3yr5r5T2ZNzmj4STy/JZ/YWoGexesrJWz9dfuU0tzxOAyaWhTxiE2HXL4GZXA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1756973892742818.0678978709142; Thu, 4 Sep 2025 01:18:12 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uu54S-00065K-3T; Thu, 04 Sep 2025 04:11:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uu54O-00061n-J9 for qemu-devel@nongnu.org; Thu, 04 Sep 2025 04:11:48 -0400 Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uu54E-0003yB-AL for qemu-devel@nongnu.org; Thu, 04 Sep 2025 04:11:48 -0400 Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-b0411b83aafso113382266b.1 for ; Thu, 04 Sep 2025 01:11:37 -0700 (PDT) Received: from draig.lan ([185.126.160.19]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b0484e8a4a1sm55305766b.83.2025.09.04.01.11.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Sep 2025 01:11:32 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 9A3B85F92F; Thu, 04 Sep 2025 09:11:28 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1756973496; x=1757578296; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Wv6wFcI7G6DdUK88SJsbLfMk3oLK1TTP1R3ujLyoIqI=; b=xND+ov8P5ZGHcV+/GUR6bYVVW/kDrnqx9OdTmD2lEtbKBiz4kdH43aFg5jj1zD7BXY YvV2pTdq4ND9bLAUUTo0YTcojSdb5doPjPpsQA3SCQx9VBASE7zw5Yji0DhWXJ4TYLTB 4e0mfeuiDaUIPuzygT/7L284IcYAuiACsrDoIpoQcRBE6oGncIGkveTbBEPIuuMEqOoW s7YCKNTVVF3q60ECjtsa9O3lL6u2p+wa3TUFytmk53K/5d1O0FiS2dCw14yRD0SNy719 0nxjtUwrct++lR7VP+2OYkbUk6pH7z9wzAZvITB3A+GYXSlbuJgg2Laizv3yz0YvF7Lr HhLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1756973496; x=1757578296; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Wv6wFcI7G6DdUK88SJsbLfMk3oLK1TTP1R3ujLyoIqI=; b=eFWrj8Zi5lf0IqWwA02reZ1z3Y7Eit6awMq6VFgbfdMVWXKEunbzbOCSRZzrr3R0oO v5ROKmG67C1vEj59qX1SacTi0NkbAAJpfdH3EY9fQ7RC3/vSp/Yrtux57y24By7p5INs lEeBDsB5JlAEGRgVpGC3ypu2BNLbcLdRVWOM4yJQPONeVI9a2PRs0lfQ8RkpzUtYoGzJ 9GMFqDKfxnOFNml1LcUfcSSHbLq67Btw19m3le2C5gNW3oniry/PCzr/VhNPP9u2PYFv goPSpoPJPiVrntsBIbDzSDSPdhAxe6ZsAk+TMxyiL5Ym/QilFoD1aiKbUxECht60ON4x FzQg== X-Gm-Message-State: AOJu0Ywi0WQ3EjOR8V6XN9fiJVTh/DuR6k7WnLHLZMNew1E6dVtbeghl rwX9EWoV4iSJZumKIMxq/MiLU5u3DVq/0CKRb+y2QUHhTG53+g6NGlX1XhR8XNdkD1ByMcPqab9 m/HREfG1O1A== X-Gm-Gg: ASbGncv1D+hMngSUXA0BRQO4Qrf4wcorfo0Mp6Pg+EyLkHedfx+xmzn/qA4CAPEIEUc JlQfROksu98PoskHf7xsXLQS9wdJWe1WRPUXQ46AL72K3FcjWvTYPf+ojcYwMX29pjFn9MuYLtO 4afEYPEoR5iqglqt1rwSx5QlUfYnSQcvaFkfYAeVv5nFCNvjQeDGShpNDF7sNCoCQSXe8IA9p+j 9oMscJrGfKULX27wdMFNSCdEDN6FPbsJA5fxHGI8JHCeGufPCxnnh/bvlzU5bGQZRWUqMk+0jAW PwHN1bOod3cB6q/kV2RywkBPDr3gJF5uW4ENN1SpHc0oeIgO+GhCppqWxKT+z/bhaAssXKVKb7W RE3IxiPJetZCk0XPV7ze53XH1yTO44o62Iw== X-Google-Smtp-Source: AGHT+IElPpn0KvMqOR0Q75Gfkj0ncOLp1bLOMMk7oeP9JIeBPVNdyXvx2TH7ciqYVtSvBIeB+x6WBg== X-Received: by 2002:a17:906:7953:b0:b04:813e:491 with SMTP id a640c23a62f3a-b04813e1a1amr139359366b.12.1756973495570; Thu, 04 Sep 2025 01:11:35 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Reinoud Zandijk , =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= , Huacai Chen , Zhao Liu , Paolo Bonzini , Alistair Francis , qemu-arm@nongnu.org, Fam Zheng , Helge Deller , Matthew Rosato , Fabiano Rosas , qemu-rust@nongnu.org, Bibo Mao , qemu-riscv@nongnu.org, Thanos Makatos , Liu Zhiwei , Riku Voipio , Cameron Esfahani , Alexander Graf , Laurent Vivier , Harsh Prateek Bora , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , qemu-ppc@nongnu.org, Stafford Horne , Sunil Muthuswamy , Jagannathan Raman , Igor Mammedov , Brian Cain , Phil Dennis-Jordan , devel@lists.libvirt.org, Mads Ynddal , Elena Ufimtseva , Peter Xu , Jason Herne , Michael Rolnik , Weiwei Li , Laurent Vivier , Ilya Leoshkevich , qemu-block@nongnu.org, Peter Maydell , Kostiantyn Kostiuk , Kyle Evans , David Hildenbrand , "Edgar E. Iglesias" , Warner Losh , Daniel Henrique Barboza , John Snow , Yoshinori Sato , Aleksandar Rikalo , Alistair Francis , Marcelo Tosatti , Yonggang Luo , Radoslaw Biernacki , Artyom Tarasenko , Yanan Wang , Eduardo Habkost , Aurelien Jarno , Richard Henderson , qemu-s390x@nongnu.org, Alex Williamson , "Michael S. Tsirkin" , Ani Sinha , Roman Bolshakov , Manos Pitsidianakis , Chinmay Rath , Thomas Huth , Cleber Rosa , kvm@vger.kernel.org, Song Gao , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Halil Pasic , Eric Farman , Palmer Dabbelt , Leif Lindholm , Christian Borntraeger , Michael Roth , Mauro Carvalho Chehab , Jiaxun Yang , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Mark Cave-Ayland , Marcel Apfelbaum , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Nicholas Piggin , John Levon , qemu-stable@nongnu.org Subject: [PATCH v2 004/281] python: mkvenv: fix messages printed by mkvenv Date: Thu, 4 Sep 2025 09:06:38 +0100 Message-ID: <20250904081128.1942269-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250904081128.1942269-1-alex.bennee@linaro.org> References: <20250904081128.1942269-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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::632; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x632.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1756973894802124100 From: Paolo Bonzini The new Matcher class does not have a __str__ implementation, and therefore it prints the debugging representation of the internal object: $ ../configure --enable-rust && make qemu-system-arm --enable-download python determined to be '/usr/bin/python3' python version: Python 3.13.6 mkvenv: Creating non-isolated virtual environment at 'pyvenv' mkvenv: checking for LegacyMatcher('meson>=3D1.5.0') mkvenv: checking for LegacyMatcher('pycotap>=3D1.1.0') Add the method to print the nicer mkvenv: checking for meson>=3D1.5.0 mkvenv: checking for pycotap>=3D1.1.0 Cc: qemu-stable@nongnu.org Cc: John Snow Reviewed-by: Manos Pitsidianakis Reviewed-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Paolo Bonzini --- python/scripts/mkvenv.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python/scripts/mkvenv.py b/python/scripts/mkvenv.py index f102527c4de..9aed266df1b 100644 --- a/python/scripts/mkvenv.py +++ b/python/scripts/mkvenv.py @@ -184,6 +184,10 @@ def match(self, version_str: str) -> bool: ) ) =20 + def __str__(self) -> str: + """String representation delegated to the backend.""" + return str(self._m) + def __repr__(self) -> str: """Stable debug representation delegated to the backend.""" return repr(self._m) --=20 2.47.2