From patchwork Thu Nov 9 15:09:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 742585 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:110f:b0:32d:baff:b0ca with SMTP id z15csp889838wrw; Thu, 9 Nov 2023 07:09:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IF6WQllHdzqyhU2qkuhD3U51UuSajg0kfIFt+Nn8VGnhxE2NVnoRZlhkG35/l3cLMglUyqs X-Received: by 2002:a05:620a:30f:b0:767:2a66:b792 with SMTP id s15-20020a05620a030f00b007672a66b792mr4163087qkm.42.1699542568898; Thu, 09 Nov 2023 07:09:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699542568; cv=none; d=google.com; s=arc-20160816; b=tS2CackVfVjIVfdIQz+ODUgdBIMA71yxb2VbfCpI3ATP2YyGSQ17+6CW2GdNQtu3LH 5rWTwgVqpPJoT8plk6HbZIuEl9cycD/KaaWnk2pvBS+CiW76gI8TcVvuRICYyefqzwHK E6C+kr8XSJCdx8zH9jnco22lOaQ1+cVrRjQHoUw1P/u5L0yWgS1a7O2itUX3c8ddTqSy OSqHLhIdIWm3FxHq89940fd8d69eZ7ahus8ZLhOMsFnhvPc2qUt7gRwAbsSVDa6gWLrz nu7GxS+tJY+2P64QY7K3JQwwUmnBgRp676zaxRBuC29VG9TuxiA9Wq2RP8sPUD5qLOrI 34nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=RkxZjLdrSTnFJIKsHkOj6x9DC0DNlMhc61gK75HiHJU=; fh=JSezWimOwH4V5CoCoj4muITBCubBgvZnjyBKzYlOxdE=; b=KroY3Xr9gDni8kCu3lByrvdQExrECZ9HqZ2mKVwCYye984fiO+/Lb2np8uDHCZVPpi ZgiAxrwE96seOif6FPqYE65s3w/eDfxKoGstq7PXNbVVl0nJ03rWsUKHQSdhFZrrIUdK vGuyYW+QIoTBdSEyLYMm/yfauPKbevylNDwzq2Pv60Po0vXT+f9VC6vT60IfR9yxoGxf nNyVMHhpnt25npxrDOkkaabAKk1tbJrz5lWO5dMiCJiy30cD+vN4pr7l51SDmRI6nY+c nYFgfuAP35ZJsLMihfFRdBN0VzNZTwesWlGOcu5WcDnMdHI2yFIM2eCo0JvHoBovNqw7 7LIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=D8QAvTcY; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id qs8-20020a05620a394800b007756e8cfa8bsi3011014qkn.409.2023.11.09.07.09.28 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 09 Nov 2023 07:09:28 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=D8QAvTcY; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r16eb-0007We-8o; Thu, 09 Nov 2023 10:09:09 -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 1r16eZ-0007Sq-Dt for qemu-devel@nongnu.org; Thu, 09 Nov 2023 10:09:07 -0500 Received: from mail-ej1-x633.google.com ([2a00:1450:4864:20::633]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r16eX-0006hz-QW for qemu-devel@nongnu.org; Thu, 09 Nov 2023 10:09:07 -0500 Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-9de7a43bd1aso156235666b.3 for ; Thu, 09 Nov 2023 07:09:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699542543; x=1700147343; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=RkxZjLdrSTnFJIKsHkOj6x9DC0DNlMhc61gK75HiHJU=; b=D8QAvTcY3x1U09RAIvuskMi9ZW2kPLwjaJ2JDXlDLMi79RhqjX+f8PASqQlMw7tVLM iEAnxKricZLrKWk7oqhKOvBy8G+OODCvAOm0IDu54CWl4IBp1mHJno/O6MX5ONvDIrVP 1SMVEx18ttL6vEMUHfPlxIGqA7fsIRyE5GRgZTveiez33tK63IDdru+AIaEZavLkLMMC yFPVqrVzwt7oQH91957ebBatDkE1FKW1sQ7d0xfJnljXKPOYoN1pVKfQr5c+PE3Ownj4 MRAYsvjE6PsPm4f0rIAuJroQ1Zsh15ngPVUo+GY/vOqxjzXO/7IuxCgDjp3RA3gWEfla yyPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699542543; x=1700147343; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=RkxZjLdrSTnFJIKsHkOj6x9DC0DNlMhc61gK75HiHJU=; b=cD/qXCXUlkDdfoNvONE+E8/suuyv0rWBLamQJ9xQMONDTv+CLJFb3YKUIGePFTXFDU EuBubQGEO9DoFPFkuz6rltOLM8HzvLkpeO/BWGV/4RlMM86nfvSKZShRfOBOQKGkBRId 2NsjvGbOgj4V2L/QMotdIMfqESTu7TzRGSFhTa+moiSsyOfaUaG2qu2AqBlDRyL7DyGS wCH2Bzmg258flvmuvEz5eMjGAgli84QYnPwz/0iZXLkQQOY5LCEWVSQh3VDJs0Ydf7p2 mFC8uKkiBCujN/sUcvvm35oa84M22leQo/R/DRr39K3vPhdxcukV3nDD0ZzP0qvXL2FI tSPQ== X-Gm-Message-State: AOJu0Yxqvrn2dUs3NaiGBvFB8lkgEDXpwZ04vuIcHOTKALZ2RsXso2xC siQ2Iq9G9Y6s1nILYLYzqy7znbhtWNjHrXqO2npd6w== X-Received: by 2002:a17:907:3ea4:b0:9e2:af56:c380 with SMTP id hs36-20020a1709073ea400b009e2af56c380mr4283099ejc.6.1699542543397; Thu, 09 Nov 2023 07:09:03 -0800 (PST) Received: from m1x-phil.lan ([176.187.199.161]) by smtp.gmail.com with ESMTPSA id qt19-20020a170906ecf300b009a1be9c29d7sm2670716ejb.179.2023.11.09.07.09.01 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 09 Nov 2023 07:09:02 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Ryo ONODERA , Wainer dos Santos Moschetta , Kyle Evans , =?utf-8?q?Alex_Benn=C3=A9e?= , Beraldo Leal , Reinoud Zandijk , Warner Losh , Thomas Huth , =?utf-8?q?Phi?= =?utf-8?q?lippe_Mathieu-Daud=C3=A9?= Subject: [PATCH-for-8.2] tests/vm/netbsd: Use Python v3.11 Date: Thu, 9 Nov 2023 16:09:00 +0100 Message-ID: <20231109150900.91186-1-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::633; envelope-from=philmd@linaro.org; helo=mail-ej1-x633.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, T_SCC_BODY_TEXT_LINE=-0.01 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org We requiere the 'ninja-build', which depends on 'python311': $ pkgin show-deps ninja-build direct dependencies for ninja-build-1.11.1nb1 python311>=3.11.0 So we end up installing both Python v3.10 and v3.11: [31/76] installing python311-3.11.5... [54/76] installing python310-3.10.13... [74/76] installing py310-expat-3.10.13nb1... Then the build system picks Python v3.11, and doesn't find py-expat because we only installed the 3.10 version: python determined to be '/usr/pkg/bin/python3.11' python version: Python 3.11.5 *** Ouch! *** Python's pyexpat module is not found. It's normally part of the Python standard library, maybe your distribution packages it separately? Either install pyexpat, or alleviate the need for it in the first place by installing pip and setuptools for '/usr/pkg/bin/python3.11'. (Hint: NetBSD's pkgsrc debundles this to e.g. 'py310-expat'.) ERROR: python venv creation failed Fix by installing py-expat for v3.11. Remove the v3.10 packages since we aren't using them anymore. Signed-off-by: Philippe Mathieu-Daudé Tested-by: Thomas Huth --- tests/vm/netbsd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/vm/netbsd b/tests/vm/netbsd index 40b27a3469..649fcad353 100755 --- a/tests/vm/netbsd +++ b/tests/vm/netbsd @@ -30,8 +30,8 @@ class NetBSDVM(basevm.BaseVM): "git-base", "pkgconf", "xz", - "python310", - "py310-expat", + "python311", + "py311-expat", "ninja-build", # gnu tools