From nobody Tue Feb 10 01:35:54 2026 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=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1675769988; cv=none; d=zohomail.com; s=zohoarc; b=KnkwCdbay78T3qgUzb4TK5OijcP89ZsgElifAgbqGvWFuH3O6tdDIhF5e1V1ZYjPExg7cGPkdE4zkrqctrVbinEPJ7kPFTfHOGiX73Q6djbxaQuPejbHUhK++wrDL/MfkRI7G6WA2TSNU71YGTbPmv5aDk1R/Srbe+gQ7LYkUUs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1675769988; 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; bh=II189Xqfh2KwOI8i867CY98ugqcT+WoinR52GUJAUtE=; b=Enq0w6nQ/Oy41l6klZM4H5VUZGbBYWS5v1YsD56kX33M4f83MT+vs7P/MbvqRbSqPmXReN/HBk7sCerNMTLB9H2cG2jrmx7r4Dylj4zTqYZlj0/fs9zL8H37+duX+fRtytEB2mG+mvjRne/oSuCspPSV4gIcSdHeXuYuJKYhhwQ= 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 1675769988806198.8110640104262; Tue, 7 Feb 2023 03:39:48 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pPMIv-0001xO-It; Tue, 07 Feb 2023 06:38:29 -0500 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 1pPMIt-0001xA-DY for qemu-devel@nongnu.org; Tue, 07 Feb 2023 06:38:27 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pPMIr-00041c-Uq for qemu-devel@nongnu.org; Tue, 07 Feb 2023 06:38:27 -0500 Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-517-yX77ZZFbMLumZjBozijgyg-1; Tue, 07 Feb 2023 06:38:24 -0500 Received: by mail-ej1-f69.google.com with SMTP id 21-20020a170906225500b0088b953a6df6so11034596ejr.20 for ; Tue, 07 Feb 2023 03:38:24 -0800 (PST) Received: from avogadro.local ([2001:b07:6468:f312:9af8:e5f5:7516:fa89]) by smtp.gmail.com with ESMTPSA id qp22-20020a170907207600b0087862f45a29sm6860299ejb.174.2023.02.07.03.38.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Feb 2023 03:38:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1675769905; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=II189Xqfh2KwOI8i867CY98ugqcT+WoinR52GUJAUtE=; b=OABzOTqi5qFAfpQMhGEAs7XVfajH+5anXfgK84dhjjvo3+X22dZYk0QiyQOXWI9QKcRm1W 0/mUAgUMZmto23qZp2/Z9l1Mb+eaOPdDnTbBZQcE7IKUbk/R+lzgwr+lU4IAGBxz5rPemr cmhnwPfDI3KEKkVxhfkmShXQQ5JNbTA= X-MC-Unique: yX77ZZFbMLumZjBozijgyg-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=II189Xqfh2KwOI8i867CY98ugqcT+WoinR52GUJAUtE=; b=U1MdLSIw4VLj00jbbOJJpMjR+thU9ywyaeg7aM4mDdihh/FRdWOHgX4LbaBGgTr8t/ J8YwInGvr+yueOk1n4LLcHCZi54KwPfeyNZU+Xf7j5UuW5P1kRC98b96vVJ1Qn2AxYnS zN4URc6a+OHKZWVJ4yopokoG7g12DII7tDASfEuQZoFmDon3d1Hfn0taT9agaMYgsCMc /vxihtGKAW8enFMIb2Hy2jNAJ9n6l/WLjjgTAsb1Y5MydqWBPcOCXcO6GKaB8BaqRQl7 IEGN7GL/j7APcDZYh+iVBGGym2i46XJ9ZAEd5WkzssHW7lStwLV6MnimJBC0MEdM0dq+ 4WRw== X-Gm-Message-State: AO0yUKUBU7tR6wMSVaPyhRD/MQJxse+9VqkFnG0U5ZtTbez47bfDdJzG rkdJOwCVVYWlPiT9eBolo+W5nYAWCyTL+dpyIS76GOMtgRhzbJEDNsZ9SZ1NRhoVZPK6Mh7/hK+ PRm4ZpQx74Ybb5X5yCw5FNUXVGKQSM1q8aIWGpA6+WnMZFl6yeBe0apPsFrk4X8Xkkfno/8I5 X-Received: by 2002:a17:906:9b8b:b0:895:58be:96b with SMTP id dd11-20020a1709069b8b00b0089558be096bmr4236480ejc.3.1675769902793; Tue, 07 Feb 2023 03:38:22 -0800 (PST) X-Google-Smtp-Source: AK7set+gR1RjpXQFvLvL2lTfXdlVEWGmBwS3Wv1/nUwXrRIBazIWaaC3P8XvgehBgBZkFecOBPsoLA== X-Received: by 2002:a17:906:9b8b:b0:895:58be:96b with SMTP id dd11-20020a1709069b8b00b0089558be096bmr4236461ejc.3.1675769902584; Tue, 07 Feb 2023 03:38:22 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Cc: crosa@redhat.com Subject: [PULL 5/5] scripts/ci: bump CentOS Python to 3.8 Date: Tue, 7 Feb 2023 12:38:07 +0100 Message-Id: <20230207113807.67322-6-pbonzini@redhat.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230207113807.67322-1-pbonzini@redhat.com> References: <20230207113807.67322-1-pbonzini@redhat.com> MIME-Version: 1.0 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=170.10.129.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.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, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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 @redhat.com) X-ZM-MESSAGEID: 1675769990674100005 Content-Type: text/plain; charset="utf-8" Signed-off-by: Paolo Bonzini --- .../ci/org.centos/stream/8/build-environment.yml | 2 +- scripts/ci/org.centos/stream/8/x86_64/configure | 1 + scripts/ci/setup/build-environment.yml | 14 +++++++++++++- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/scripts/ci/org.centos/stream/8/build-environment.yml b/scripts= /ci/org.centos/stream/8/build-environment.yml index b1768d18afac..0d094d70c3b3 100644 --- a/scripts/ci/org.centos/stream/8/build-environment.yml +++ b/scripts/ci/org.centos/stream/8/build-environment.yml @@ -65,7 +65,7 @@ - nmap-ncat - numactl-devel - pixman-devel - - python36 + - python38 - python3-sphinx - rdma-core-devel - redhat-rpm-config diff --git a/scripts/ci/org.centos/stream/8/x86_64/configure b/scripts/ci/o= rg.centos/stream/8/x86_64/configure index 75882faa9ca5..65eacf3c56bb 100755 --- a/scripts/ci/org.centos/stream/8/x86_64/configure +++ b/scripts/ci/org.centos/stream/8/x86_64/configure @@ -16,6 +16,7 @@ # that patches adding downstream specific devices are not available. # ../configure \ +--python=3D/usr/bin/python3.8 \ --prefix=3D"/usr" \ --libdir=3D"/usr/lib64" \ --datadir=3D"/usr/share" \ diff --git a/scripts/ci/setup/build-environment.yml b/scripts/ci/setup/buil= d-environment.yml index 2274f736f7de..78b1021cd420 100644 --- a/scripts/ci/setup/build-environment.yml +++ b/scripts/ci/setup/build-environment.yml @@ -191,7 +191,7 @@ - nmap-ncat - numactl-devel - pixman-devel - - python36 + - python38 - python3-sphinx - rdma-core-devel - redhat-rpm-config @@ -217,3 +217,15 @@ - ansible_facts['distribution_file_variety'] in ['RedHat', 'CentOS= '] - ansible_facts['distribution_version'] =3D=3D '8' - ansible_facts['architecture'] =3D=3D 'aarch64' or ansible_facts[= 'architecture'] =3D=3D 'x86_64' + + - name: Check whether the Python runtime version is managed by alterna= tives + stat: + path: /etc/alternatives/python3 + register: python3 + + - name: Set default Python runtime to 3.8 on EL8 + command: alternatives --set python3 /usr/bin/python3.8 + when: + - ansible_facts['distribution_file_variety'] in ['RedHat', 'CentOS= '] + - ansible_facts['distribution_version'] =3D=3D '8' + - python3.stat.islnk and python3.stat.lnk_target !=3D '/usr/bin/py= thon3.8' --=20 2.38.1