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 aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id E24F8CCF9EE for ; Wed, 29 Oct 2025 17:26:29 +0000 (UTC) Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) by mx.groups.io with SMTP id smtpd.web01.10784.1761758781193900511 for ; Wed, 29 Oct 2025 10:26:21 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=V3ZPVkgr; spf=pass (domain: linuxfoundation.org, ip: 209.85.221.48, mailfrom: richard.purdie@linuxfoundation.org) Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-4298bada5bdso79962f8f.2 for ; Wed, 29 Oct 2025 10:26:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1761758779; x=1762363579; darn=lists.openembedded.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=SKgWePM3N+jmj5izvG4xDXQlpJSs9l6LdOPt/tJOMNo=; b=V3ZPVkgrFjDv9EwG0NNS53ELAPwZuQ0ca/kbG5X/yiGK2lJL4JB5YLvVzfA/n1KNZA oNRKxmEIdQNajHo8RFXfU/bDHATYhmdWJmqrDR10kpXJXCsYtIhHh5xFAvwVTGRr8Yfs QruaiiOTO7zngo3cuU/liQyGJ2J+SkqiGmPz0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761758779; x=1762363579; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=SKgWePM3N+jmj5izvG4xDXQlpJSs9l6LdOPt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eWvpzoziRRssZB83oIGUlBPrV1mugG4UWPBgtWUe9WoPq75rfe X-Google-Smtp-Source: AGHT+IF5w/YoF/l4YnOghW3t05bnka4pN6WE7be1pmQOQO0/B1OqzfxBtxbyELav4S3GQ0OrfrmJSA== X-Received: by 2002:a05:6000:2f86:b0:426:dbef:9abf with SMTP id ffacd0b85a97d-429aef7e610mr3128194f8f.23.1761758779487; Wed, 29 Oct 2025 10:26:19 -0700 (PDT) Received: from ?IPv6:2001:8b0:aba:5f3c:20a6:9403:5f14:a9f7? ([2001:8b0:aba:5f3c:20a6:9403:5f14:a9f7]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-429952da645sm26114361f8f.30.2025.10.29.10.26.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Oct 2025 10:26:18 -0700 (PDT) Message-ID: Subject: Re: [bitbake-devel] [PATCH] parse: add bitbake version check via bitbake_min_version keyword From: Richard Purdie To: alex.kanavin@gmail.com, bitbake-devel@lists.openembedded.org Cc: Alexander Kanavin Date: Wed, 29 Oct 2025 17:26:17 +0000 In-Reply-To: <20251027181206.3798705-1-alex.kanavin@gmail.com> References: <20251027181206.3798705-1-alex.kanavin@gmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.56.0-1 MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 29 Oct 2025 17:26:29 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/bitbake-devel/message/18224 On Mon, 2025-10-27 at 19:12 +0100, Alexander Kanavin via lists.openembedded= .org wrote: From: Alexander Kanavin Layers (e.g. openembedded-core) can specify in conf/layer.conf: bitbake_min_version 2.15.2 and if bitbake has a lesser version it will stop itself, as early as possible, to avoid hitting cryptic compatibility issues later on, with this error: bb.parse.ParseError: ParseError at /home/alex/bitbake-builds/poky-master-po= ky-distro_poky-machine_qemux86-64/layers/openembedded-core/meta/conf/layer.= conf:1: Bitbake version 2.15.3 is required and version 2.15.2 is used Note that sanity.bbclass in oe-core has a similar check, but as this thread [1] highlighted, compatibility issues can stop bitbake sooner and the check is never reached, leaving the user with confusing errors. [1] https://lists.openembedded.org/g/openembedded-core/topic/115724008 Signed-off-by: Alexander Kanavin --- =C2=A0bitbake/lib/bb/parse/ast.py=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | 12 +++++++++= +++ =C2=A0bitbake/lib/bb/parse/parse_py/ConfHandler.py | 10 ++++++++++ =C2=A02 files changed, 22 insertions(+) Why not just allow a BB_MINVERSION variable in layer.conf which we check? Do we really need a special new syntax just for this which then has to be documented? Cheers, Richard