From patchwork Sun Nov 29 19:21:03 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tim Orling X-Patchwork-Id: 3236 Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.17987.1795980082572082851 for ; Sun, 29 Nov 2026 11:21:22 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@konsulko.com header.s=google header.b=R/M/Eed8; spf=pass (domain: konsulko.com, ip: 209.85.210.175, mailfrom: tim.orling@konsulko.com) Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-8b9c51097e2so3833310b3a.1 for ; Sun, 29 Nov 2026 11:21:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1795980082; x=1796584882; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=KK70fK326tZDY//6WZtqb25Y6Un2Si/GQCOBEA5sKA4=; b=R/M/Eed8e4v49NmwxLAXJnkWEy42aRL9Rcgg339v9lOB95dtnG6F58sA6CnWKSwEnC sopWpiYwfR0Gz9GtfxVLv6Mqp3bWC3sx9KJRgBioZ827yXUFppie1OnsNc7LUC3MfNwR fUE5wUCUBXNsFx1eHTnpuSXH0K8E+KWG2y0ZY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795980082; x=1796584882; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=KK70fK326tZDY//6WZtqb25Y6Un2Si/GQCOBEA5sKA4=; b=L2JYDBSOlw8VCwJ4/Z139P1W+6LrDQfDNDcGFX/73ZHS2YxgxFLKyds2qmD0VqX+6T RSL/vcjE4hBTb2Qr6K8Ml+kh0qLH6Z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AxgtgnBMPBs hWzvkaNW3JCuz2iQ3SU9tm6B5BuX7FrXr2SX8BMdDiticmBYRQjrtunjpUCd0BN/kfDh67hOtVL gyATP+i1n+Qzg= X-Received: by 2002:a05:6a00:4109:b0:8b6:54c2:a760 with SMTP id d2e1a72fcca58-8c87bcbdd7amr30091577b3a.13.1795980081747; Sun, 29 Nov 2026 11:21:21 -0800 (PST) Return-Path: Received: from localhost (c-24-20-171-118.hsd1.or.comcast.net. [24.20.171.118]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-8c86d821637sm16603978b3a.0.2026.11.29.11.21.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2026 11:21:21 -0800 (PST) From: Tim Orling To: openembedded-core@lists.openembedded.org Cc: Tim Orling Subject: [PATCH 00/11] python3-flit-core: upgrade to 4.2.0, fix recipes that pin flit_core <4 Date: Sun, 29 Nov 2026 11:21:03 -0800 Message-ID: <20261129192114.12997-1-tim.orling@konsulko.com> X-Mailer: git-send-email 2.56.1 MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Sun, 29 Nov 2026 19:21:30 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251535 We have been talking about the python3-flit-core move to 4.x.y since August. I have been working on this patch series for a month. flit_core 4 drops the [tool.flit.metadata] table, the --setup-py option and VCS-based sdists. Many projects that already use the standard [project] table still pin flit_core <4 in their build requires, so pyproject-build rejects them once flit-core 4 is in the sysroot. This series fixes those recipes one at a time, as suggested in the review of the class-wide approach [1], then upgrades flit-core and more-itertools (11.2.x requires flit_core >=4). Where upstream already has a fix it is backported; otherwise the patch only raises the upper bound to <5, as the flit 4.0 release notes suggest [2], and the Upstream-Status says whether it was submitted or declined upstream. The recipe fixes also build with flit-core 3.12.0, so they do not depend on the upgrade. Earlier attempts to upgrade flit-core on its own, to 4.1.0 [3] and to 4.2.0 [4], failed on the AutoBuilder because python3-typing-extensions, python3-pip, python3-docutils, python3-jinja2 and others pinned flit_core <4. Khem then proposed dropping the upper bound in the python_flit_core class [5], along with the 4.2.0 upgrade [6]. Alexander objected that flit_core 4 has incompatible changes and that the pins should be fixed per recipe and upstream, and Khem agreed [1]. This series takes that approach and replaces both of Khem's patches (same flit-core version and checksum). The meta-python recipes are fixed in a separate series to openembedded-devel, which depends on this one. Testing: all 118 python_flit_core targets in oe-core and meta-python (target and native) build with flit-core 4.2.0. The ptests of python3-click, python3-jinja2 and python3-more-itertools pass on qemux86-64, as do those of the meta-python recipes in the companion series. I do not personally intend to send the fixes upstream. There are simply too many of them and some of the projects are openly hostile to AI submissions. I have zero interest in fighting upstream. If we do find issues in these recipes that are proven to be caused by the flit-core >4 change I will do my best to help. If someone else wants to track down patches from other distros or submit them upstream, please feel free to send follow up patches for these recipes to change the Upstream-Status. Otherwise, my hope is that upstreams will either upgrade to flit-core >4 or will move on to other PEP-517 backends and avoid the problem entirely. [1] https://lore.kernel.org/all/CANNYZj88T40VtCacwAGP6_=RoyHhC1E5OV7aQCZaoguZM_h-Kg@mail.gmail.com/ [2] https://flit.pypa.io/en/stable/history.html#version-4-0 [3] https://lore.kernel.org/all/20261014153344.81727-1-jaipaul.cheernam@est.tech/ [4] https://lore.kernel.org/all/20261028070350.13243-6-jaipaul.cheernam@est.tech/ [5] https://lore.kernel.org/all/20261129070552.3072212-1-khem.raj@oss.qualcomm.com/ [6] https://lore.kernel.org/all/20261129073235.3077566-1-khem.raj@oss.qualcomm.com/ Tim Orling (11): python3-click: allow building with flit_core 4 python3-coherent-licensed: allow building with flit_core 4 python3-docutils: allow building with flit_core 4 python3-jinja2: allow building with flit_core 4 python3-roman-numerals: allow building with flit_core 4 python3-sphinx-argparse: allow building with flit_core 4 python3-typing-extensions: allow building with flit_core 4 python3-unittest-automake-output: allow building with flit_core 4 python3-sphinx-tags: allow building with flit_core 4 python3-flit-core: upgrade 3.12.0 -> 4.2.0 python3-more-itertools: upgrade 11.1.0 -> 11.2.1 ...toml-allow-building-with-flit_core-4.patch | 29 +++++++++++++++++++ .../python/python3-click_8.5.1.bb | 1 + ...toml-allow-building-with-flit_core-4.patch | 23 +++++++++++++++ .../python/python3-coherent-licensed_0.5.2.bb | 1 + ...toml-allow-building-with-flit_core-4.patch | 25 ++++++++++++++++ .../python/python3-docutils_0.23.bb | 1 + ...e_3.12.0.bb => python3-flit-core_4.2.0.bb} | 2 +- ...toml-allow-building-with-flit_core-4.patch | 25 ++++++++++++++++ .../python/python3-jinja2_3.1.6.bb | 1 + ....0.bb => python3-more-itertools_11.2.1.bb} | 11 +++---- ...toml-allow-building-with-flit_core-4.patch | 25 ++++++++++++++++ .../python/python3-roman-numerals_4.1.0.bb | 1 + ...toml-allow-building-with-flit_core-4.patch | 23 +++++++++++++++ .../python/python3-sphinx-argparse_0.6.1.bb | 1 + ...toml-allow-building-with-flit_core-4.patch | 23 +++++++++++++++ .../python/python3-sphinx-tags_0.4.bb | 1 + ...ng-this-package-with-flit-core-4-787.patch | 19 ++++++++++++ .../python3-typing-extensions_4.16.0.bb | 1 + ...toml-allow-building-with-flit_core-4.patch | 23 +++++++++++++++ .../python3-unittest-automake-output_0.4.bb | 1 + 20 files changed, 231 insertions(+), 6 deletions(-) create mode 100644 meta/recipes-devtools/python/python3-click/0001-pyproject.toml-allow-building-with-flit_core-4.patch create mode 100644 meta/recipes-devtools/python/python3-coherent-licensed/0001-pyproject.toml-allow-building-with-flit_core-4.patch create mode 100644 meta/recipes-devtools/python/python3-docutils/0001-pyproject.toml-allow-building-with-flit_core-4.patch rename meta/recipes-devtools/python/{python3-flit-core_3.12.0.bb => python3-flit-core_4.2.0.bb} (90%) create mode 100644 meta/recipes-devtools/python/python3-jinja2/0001-pyproject.toml-allow-building-with-flit_core-4.patch rename meta/recipes-devtools/python/{python3-more-itertools_11.1.0.bb => python3-more-itertools_11.2.1.bb} (71%) create mode 100644 meta/recipes-devtools/python/python3-roman-numerals/0001-pyproject.toml-allow-building-with-flit_core-4.patch create mode 100644 meta/recipes-devtools/python/python3-sphinx-argparse/0001-pyproject.toml-allow-building-with-flit_core-4.patch create mode 100644 meta/recipes-devtools/python/python3-sphinx-tags/0001-pyproject.toml-allow-building-with-flit_core-4.patch create mode 100644 meta/recipes-devtools/python/python3-typing-extensions/0001-Allow-building-this-package-with-flit-core-4-787.patch create mode 100644 meta/recipes-devtools/python/python3-unittest-automake-output/0002-pyproject.toml-allow-building-with-flit_core-4.patch