Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3D4C3C4332F for ; Wed, 8 Nov 2023 19:53:32 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r0obI-00074s-QN; Wed, 08 Nov 2023 14:52:33 -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 1r0obH-00074W-0U for qemu-devel@nongnu.org; Wed, 08 Nov 2023 14:52:31 -0500 Received: from zero.eik.bme.hu ([152.66.115.2]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r0obE-00080I-ML for qemu-devel@nongnu.org; Wed, 08 Nov 2023 14:52:30 -0500 Received: from zero.eik.bme.hu (localhost [127.0.0.1]) by zero.eik.bme.hu (Postfix) with ESMTP id 29CF075A4B9; Wed, 8 Nov 2023 20:52:43 +0100 (CET) Received: by zero.eik.bme.hu (Postfix, from userid 432) id 1D2C875A4B8; Wed, 8 Nov 2023 20:52:43 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by zero.eik.bme.hu (Postfix) with ESMTP id 1A999756094; Wed, 8 Nov 2023 20:52:43 +0100 (CET) Date: Wed, 8 Nov 2023 20:52:43 +0100 (CET) From: BALATON Zoltan To: Peter Maydell cc: =?ISO-8859-15?Q?Philippe_Mathieu-Daud=E9?= , qemu-devel@nongnu.org, Paolo Bonzini , John Snow , =?ISO-8859-15?Q?Daniel_P_=2E_Berrang=E9?= , Wainer dos Santos Moschetta , Rene Engel , =?ISO-8859-15?Q?Alex_Benn=E9e?= , Beraldo Leal , Thomas Huth , Howard Spoelstra Subject: Re: [NOTFORMERGE PATCH 1/2] configure: Use distrib meson In-Reply-To: Message-ID: <44d8c245-122a-47f0-25e2-eae1dac8ac18@eik.bme.hu> References: <20231108183251.80572-1-philmd@linaro.org> <20231108183251.80572-2-philmd@linaro.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="3866299591-1472163992-1699473163=:15444" X-Virus-Scanned: ClamAV using ClamSMTP Received-SPF: pass client-ip=152.66.115.2; envelope-from=balaton@eik.bme.hu; helo=zero.eik.bme.hu X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, 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+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --3866299591-1472163992-1699473163=:15444 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT On Wed, 8 Nov 2023, Peter Maydell wrote: > On Wed, 8 Nov 2023 at 18:33, Philippe Mathieu-Daudé wrote: >> >> Signed-off-by: Philippe Mathieu-Daudé >> --- >> configure | 9 +-------- >> 1 file changed, 1 insertion(+), 8 deletions(-) >> >> diff --git a/configure b/configure >> index f1456f6123..93735b7661 100755 >> --- a/configure >> +++ b/configure >> @@ -955,15 +955,8 @@ if $python -c 'import sys; sys.exit(sys.version_info >= (3,11))'; then >> $mkvenv ensure --dir "${source_path}/python/wheels" \ >> 'tomli>=1.2.0' || exit 1 >> fi >> -$mkvenv ensuregroup --dir "${source_path}/python/wheels" \ >> - ${source_path}/pythondeps.toml meson || exit 1 >> >> -# At this point, we expect Meson to be installed and available. >> -# We expect mkvenv or pip to have created pyvenv/bin/meson for us. >> -# We ignore PATH completely here: we want to use the venv's Meson >> -# *exclusively*. >> - >> -meson="$(cd pyvenv/bin; pwd)/meson" >> +meson="$(which meson)" Doesn't this revert 66e2c6cbace ? > Presumably the other approach would be to make the pythondeps.toml > say "on macos we need at least version X of meson" ? > > Do we know what the upstream meson issue is that we're running into > with the older version on this host ? Linked from the QEMU ticket in the cover letter: https://github.com/mesonbuild/meson/issues/12399 AFAIU the problem is that macOS has system python in /Library/Frameworks/python.framework (or something like that) but homebrew does not use that but installs its own python somewhere in /opt and meson from homebrew uses that python but configure finds the system python which does not have meson so it then downloads its own meson but that's too old for macOS Sonoma. It should probably check for homebrew or macports locations too or check for meson and get the python that's using. A workaround apparently is to pass --python with the right path to configure. Regards, BALATON Zoltan --3866299591-1472163992-1699473163=:15444--