From nobody Mon Feb 9 20:10:36 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 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=1569940149; cv=none; d=zoho.com; s=zohoarc; b=HXCyNDGQq06rVA2ketEKF4lKjmoeDAtJiUEEk9+zKyZJNtgUND1vSCpDoNe9MbL3pcuJFNGkrXIJdKXWx5pQwLsWCCYu6b8B04uXOxdOhu6bV6ZCnlGK4huLJRM0ngrfmxNvDwOhTeo8rm+P1/uU+N7zuulH9p5DHPZNviBOOIc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1569940149; h=Content-Type: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:ARC-Authentication-Results; bh=ozqz5Bmc76x4rT5eZgl9rAj8B12pbRvX8kzQChFnr+c=; b=cF1a+qOzCJn+srY2vOMMcWy4n5/DMQmDGbqf8jlWeap6B4L4dd+tGGumnIZz4QVyRG2tqY+aEDDRhSnYstrlRyIxGaD268/hzauQoJUlFVs9A76iPKuuWb/v4L8cQsXrGVi/e6P5p/J72+bd4IVdTur4riL88uSClCSMxC4FBJI= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1569940149700372.3157164947396; Tue, 1 Oct 2019 07:29:09 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id DD373550CF; Tue, 1 Oct 2019 14:29:07 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id AE52360BE0; Tue, 1 Oct 2019 14:29:07 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 544B1180BAA2; Tue, 1 Oct 2019 14:29:07 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x91ET5ua029685 for ; Tue, 1 Oct 2019 10:29:05 -0400 Received: by smtp.corp.redhat.com (Postfix) id 6149F60468; Tue, 1 Oct 2019 14:29:05 +0000 (UTC) Received: from laerte.brq.redhat.com (unknown [10.43.2.64]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8DE7B60464; Tue, 1 Oct 2019 14:29:04 +0000 (UTC) From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= To: libvir-list@redhat.com Date: Tue, 1 Oct 2019 16:28:29 +0200 Message-Id: <20191001142833.314631-14-fidencio@redhat.com> In-Reply-To: <20191001142833.314631-1-fidencio@redhat.com> References: <20191001142833.314631-1-fidencio@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: libvir-list@redhat.com Cc: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= , abologna@redhat.com Subject: [libvirt] [jenkins-ci PATCH 13/17] guests: Install meson via pip X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Tue, 01 Oct 2019 14:29:08 +0000 (UTC) Let's install meson via pip whenever meson is not available at all or does not match the minimum required version. Signed-off-by: Fabiano Fid=C3=AAncio --- guests/lcitool | 13 +++++++++++++ guests/playbooks/update/tasks/packages.yml | 8 ++++++++ 2 files changed, 21 insertions(+) diff --git a/guests/lcitool b/guests/lcitool index 5b5b622..6be396c 100755 --- a/guests/lcitool +++ b/guests/lcitool @@ -625,6 +625,11 @@ class Application: else: keys =3D base_keys + [self._native_arch + "-" + k for k in bas= e_keys] =20 + pip_install =3D [] + pip_mappings =3D { + "meson" : "meson=3D=3D0.49.0", + } + # We need to add the base project manually here: the standard # machinery hides it because it's an implementation detail for project in projects + ["base"]: @@ -644,6 +649,8 @@ class Application: =20 if package not in pkgs: continue + if package in pip_mappings and pkgs[package] is None: + pip_install +=3D [pip_mappings[package]] if cross_policy =3D=3D "foreign" and pkgs[package] is not = None: cross_pkgs[package] =3D pkgs[package] if pkgs[package] is None or cross_policy in ["skip", "fore= ign"]: @@ -714,6 +721,12 @@ class Application: {package_manager} clean all -y """).format(**varmap)) =20 + if pip_install: + varmap["pip_install"] =3D " ".join(sorted(pip_install)) + sys.stdout.write(textwrap.dedent(""" + RUN pip3 install {pip_install} + """).format(**varmap)) + def run(self): args =3D self._parser.parse_args() if args.debug: diff --git a/guests/playbooks/update/tasks/packages.yml b/guests/playbooks/= update/tasks/packages.yml index ec8a4c4..f2603f8 100644 --- a/guests/playbooks/update/tasks/packages.yml +++ b/guests/playbooks/update/tasks/packages.yml @@ -100,3 +100,11 @@ package: name: '{{ flattened|sort }}' state: '{{ state }}' + +- name: '{{ project }}: Install meson from pip' + command: pip3 install meson=3D=3D0.49.0 + args: + creates: /usr/local/bin/meson + when: + - temp["meson"] is defined + - temp["meson"] =3D=3D None --=20 2.23.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list