From patchwork Fri Sep 4 13:36:07 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 97309 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 85E5BC61DD6 for ; Fri, 4 Sep 2026 13:36:27 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.13854.1788528977114546955 for ; Fri, 04 Sep 2026 06:36:17 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@arm.com header.s=foss header.b=KD7zroDJ; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: ross.burton@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D9ECF152B for ; Fri, 4 Sep 2026 06:36:12 -0700 (PDT) Received: from cesw-amp-gbt-1s-m12830-04.lab.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 334933F7D8 for ; Fri, 4 Sep 2026 06:36:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1788528976; bh=OJDLPjjnIACLhS0hrM5tOYlwgDi+iesO84nKzAUHdHk=; h=From:To:Subject:Date:From; b=KD7zroDJbEuu2VxsMtfltHExY/APc9Ay0Cx0WuxaC3+WWVD363ZN1bznYRy/X11gY /JIP+3//HoGSlWamqMSJD6OQhYCoIm7SnQ187fN6jIgwUmuKCbiSBNTyhN2SWthZSH Ypjlzj77OrclfDI8mVnnEOuPMRAmU0BoTciZ7bP0= From: Ross Burton To: openembedded-core@lists.openembedded.org Subject: [PATCH 1/4] python/*: remove spurious CLEANBROKENs Date: Fri, 4 Sep 2026 14:36:07 +0100 Message-ID: <20260904133610.774110-1-ross.burton@arm.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 04 Sep 2026 13:36:27 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/245104 CLEANBROKEN doesn't do anything with the current build classes as they override base_do_configure(). Signed-off-by: Ross Burton --- meta/recipes-devtools/python/python3-babel_2.18.0.bb | 2 -- meta/recipes-devtools/python/python3-click_8.5.0.bb | 2 -- meta/recipes-devtools/python/python3-jinja2_3.1.6.bb | 2 -- meta/recipes-devtools/python/python3-lxml_6.1.2.bb | 2 -- 4 files changed, 8 deletions(-) diff --git a/meta/recipes-devtools/python/python3-babel_2.18.0.bb b/meta/recipes-devtools/python/python3-babel_2.18.0.bb index 26847372bf3..cf2752f6a23 100644 --- a/meta/recipes-devtools/python/python3-babel_2.18.0.bb +++ b/meta/recipes-devtools/python/python3-babel_2.18.0.bb @@ -11,8 +11,6 @@ CVE_PRODUCT = "pocoo:babel" S = "${UNPACKDIR}/babel-${PV}" -CLEANBROKEN = "1" - RDEPENDS:${PN} += " \ python3-codecs \ python3-difflib \ diff --git a/meta/recipes-devtools/python/python3-click_8.5.0.bb b/meta/recipes-devtools/python/python3-click_8.5.0.bb index 88844676928..05a8fb343a7 100644 --- a/meta/recipes-devtools/python/python3-click_8.5.0.bb +++ b/meta/recipes-devtools/python/python3-click_8.5.0.bb @@ -25,8 +25,6 @@ do_install_ptest:append() { cp -rf ${S}/docs ${D}${PTEST_PATH}/ } -CLEANBROKEN = "1" - RDEPENDS:${PN} += "\ python3-io \ python3-threading \ diff --git a/meta/recipes-devtools/python/python3-jinja2_3.1.6.bb b/meta/recipes-devtools/python/python3-jinja2_3.1.6.bb index 2e96eb0dcb3..add266095df 100644 --- a/meta/recipes-devtools/python/python3-jinja2_3.1.6.bb +++ b/meta/recipes-devtools/python/python3-jinja2_3.1.6.bb @@ -10,8 +10,6 @@ PYPI_PACKAGE = "jinja2" CVE_PRODUCT = "jinja2 jinja" -CLEANBROKEN = "1" - inherit pypi python_flit_core ptest-python-pytest do_install_ptest:append() { diff --git a/meta/recipes-devtools/python/python3-lxml_6.1.2.bb b/meta/recipes-devtools/python/python3-lxml_6.1.2.bb index a0162cab3ff..17c5d769a0c 100644 --- a/meta/recipes-devtools/python/python3-lxml_6.1.2.bb +++ b/meta/recipes-devtools/python/python3-lxml_6.1.2.bb @@ -40,5 +40,3 @@ BBCLASSEXTEND = "native nativesdk" RDEPENDS:${PN} += "libxml2 libxslt python3-compression" CVE_PRODUCT = "lxml:lxml" - -CLEANBROKEN = "1" From patchwork Fri Sep 4 13:36:08 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 97310 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 C3809C624D3 for ; Fri, 4 Sep 2026 13:36:27 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.13855.1788528977802758173 for ; Fri, 04 Sep 2026 06:36:17 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@arm.com header.s=foss header.b=W0xdmwyn; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: ross.burton@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9BCB3152B for ; Fri, 4 Sep 2026 06:36:13 -0700 (PDT) Received: from cesw-amp-gbt-1s-m12830-04.lab.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id E358D3F7D8 for ; Fri, 4 Sep 2026 06:36:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1788528977; bh=0dX4NtREhaRB/Aei7eEDxpMoK/NdbCQuToowNQ0MHQE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=W0xdmwynkrTf4C46UsqQ1knZminQePWIGFfC2P5FD0j4lBI2MiB3oqejqWMaFVPSb 4IwtMsgbkFvVbxr+oBgVb8B+shDHZmhvKwDhsZTRpvwXFpubAx5HqWKo+RbuBmcfpi 4U6X7Z79hnMyKhhdrVlQs+9VSS0Mr8AN2+heUWPY= From: Ross Burton To: openembedded-core@lists.openembedded.org Subject: [PATCH 2/4] classes/pypi: only set downloadprefix in SRC_URI if needed Date: Fri, 4 Sep 2026 14:36:08 +0100 Message-ID: <20260904133610.774110-2-ross.burton@arm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260904133610.774110-1-ross.burton@arm.com> References: <20260904133610.774110-1-ross.burton@arm.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 04 Sep 2026 13:36:27 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/245105 Don't bloat the SRC_URI by setting a redundant downloadprefix if it is not required. Signed-off-by: Ross Burton --- meta/classes-recipe/pypi.bbclass | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/meta/classes-recipe/pypi.bbclass b/meta/classes-recipe/pypi.bbclass index 0897994bb65..b42b171e151 100644 --- a/meta/classes-recipe/pypi.bbclass +++ b/meta/classes-recipe/pypi.bbclass @@ -25,8 +25,13 @@ def pypi_src_uri(d): """ package = d.getVar('PYPI_PACKAGE') archive_name = d.expand('${PYPI_PACKAGE}-${PV}.${PYPI_PACKAGE_EXT}') - archive_downloadname = d.getVar('PYPI_ARCHIVE_NAME_PREFIX') + archive_name - return 'https://files.pythonhosted.org/packages/source/%s/%s/%s;downloadfilename=%s' % (package[0], package, archive_name, archive_downloadname) + url = 'https://files.pythonhosted.org/packages/source/%s/%s/%s' % (package[0], package, archive_name) + + download_prefix = d.getVar("PYPI_ARCHIVE_NAME_PREFIX") + if download_prefix: + url += ";downloadfilename=" + download_prefix + archive_name + + return url def pypi_normalize(d): """" From patchwork Fri Sep 4 13:36:09 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 97312 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 E8412C79F82 for ; Fri, 4 Sep 2026 13:36:27 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.14030.1788528978598289964 for ; Fri, 04 Sep 2026 06:36:18 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@arm.com header.s=foss header.b=KN8N1h5O; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: ross.burton@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5E8DD152B for ; Fri, 4 Sep 2026 06:36:14 -0700 (PDT) Received: from cesw-amp-gbt-1s-m12830-04.lab.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id A7A373F7D8 for ; Fri, 4 Sep 2026 06:36:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1788528978; bh=CNgXIB5DljLDY3RSidcTRnJezIFFTRMq7gs4yZf+ZWw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=KN8N1h5OsbGM4UaaRcec9oTbIDeCxqNWFJx3PMx+jDSZ5ISVcwbPCUeexx1F6mqzQ CCgZxG1XaZUlor5ATfv0MThaOVFi3/G07jL3AcXVgcE1E20l58+LX5oDMpjzqobebg eMELljZERBtulPQ61UDdRz9vnCerTw7qPzHzL1tc= From: Ross Burton To: openembedded-core@lists.openembedded.org Subject: [PATCH 3/4] classes/pypi: rename pypi_package() to pypi_default_package() Date: Fri, 4 Sep 2026 14:36:09 +0100 Message-ID: <20260904133610.774110-3-ross.burton@arm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260904133610.774110-1-ross.burton@arm.com> References: <20260904133610.774110-1-ross.burton@arm.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 04 Sep 2026 13:36:27 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/245106 Make it clear that this function returns a default value. Signed-off-by: Ross Burton --- meta/classes-recipe/pypi.bbclass | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/meta/classes-recipe/pypi.bbclass b/meta/classes-recipe/pypi.bbclass index b42b171e151..eb13ffe7e71 100644 --- a/meta/classes-recipe/pypi.bbclass +++ b/meta/classes-recipe/pypi.bbclass @@ -4,7 +4,11 @@ # SPDX-License-Identifier: MIT # -def pypi_package(d): +def pypi_default_package(d): + """ + Return a reasonable guess for the PyPI package name by + stripping any python- prefix from PN. + """ bpn = d.getVar('BPN') if bpn.startswith('python-'): return bpn[7:] @@ -13,7 +17,7 @@ def pypi_package(d): return bpn # The PyPi package name (defaults to PN without the python3- prefix) -PYPI_PACKAGE ?= "${@pypi_package(d)}" +PYPI_PACKAGE ?= "${@pypi_default_package(d)}" # The file extension of the source archive PYPI_PACKAGE_EXT ?= "tar.gz" # An optional prefix for the download file in the case of name collisions From patchwork Fri Sep 4 13:36:10 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 97311 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 173B9C79F87 for ; Fri, 4 Sep 2026 13:36:28 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.14033.1788528979260041228 for ; Fri, 04 Sep 2026 06:36:19 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@arm.com header.s=foss header.b=Ajo1uFLg; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: ross.burton@arm.com) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 185EF152B for ; Fri, 4 Sep 2026 06:36:15 -0700 (PDT) Received: from cesw-amp-gbt-1s-m12830-04.lab.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 6C3B73F7D8 for ; Fri, 4 Sep 2026 06:36:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1788528978; bh=E5/MRC3VmyLlrpiARG380t/WVMNgY03GinhXcepp4aw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Ajo1uFLgWz0cbn05WJhww88KL6D+E+X/ZFb2PNsWN6V0vA+2Apugq6avIuC3AGbzw 1kBJpgTxw4PW+30dWJMIlTieys91a/wSMufRGgfm9RtrdT1bKH+g7WivAzq8r3Tl/e bsPHN/p+LTGvBOG1b2Sjo1BNKc+PbWcDgHafNGGs= From: Ross Burton To: openembedded-core@lists.openembedded.org Subject: [PATCH 4/4] pypi: improve upstream check regex Date: Fri, 4 Sep 2026 14:36:10 +0100 Message-ID: <20260904133610.774110-4-ross.burton@arm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260904133610.774110-1-ross.burton@arm.com> References: <20260904133610.774110-1-ross.burton@arm.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 04 Sep 2026 13:36:28 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/245107 Currently the upstream release checker fetches the Simple API release index which lists all of the uploaded files. However the naming rules have evolved over time[1] so matching the value of PYPI_PACKAGE fails if the sdist filename was not normalised but then is normalised. Remove UPSTREAM_CHECK_PYPI_PACKAGE which is mostly unused[2] and instead transform the PYPI_PACKAGE into a regular expression that handles both - and _ being used in the filename. Change the version number match so that it handles .postN suffixes, as defined in the Version Specifiers documentation[3]. We don't want to match any alphanumeric characters as this would also match development snapshots and release candidates. Finally escape the . between the version and the extension, so this matches a literal . and not any character. Across oe-core and meta-oe this improves the upstream detection quite significantly: - 93 recipes move from a broken check to up-to-date - 21 recipes move from a broken check to needing an update - 30 recipes move from up-to-date to needing an update [1] Specifically PEP-0427 introduced normalisation of special characters to underscores and lowercasing. [2] No users in oe-core, three in meta-oe which are no longer needed after this change. [3] https://packaging.python.org/en/latest/specifications/version-specifiers/ Signed-off-by: Ross Burton --- meta/classes-recipe/pypi.bbclass | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/meta/classes-recipe/pypi.bbclass b/meta/classes-recipe/pypi.bbclass index eb13ffe7e71..72e83e86cca 100644 --- a/meta/classes-recipe/pypi.bbclass +++ b/meta/classes-recipe/pypi.bbclass @@ -52,7 +52,10 @@ SECTION = "devel/python" SRC_URI:prepend = "${PYPI_SRC_URI} " S = "${UNPACKDIR}/${PYPI_PACKAGE}-${PV}" -UPSTREAM_CHECK_PYPI_PACKAGE ?= "${PYPI_PACKAGE}" +def pypi_normalize_regex(d): + # Use a regex wildcard instead of hyphen as the filenames + # may or may not have been normalised properly. + return pypi_normalize(d).replace("-", "[_-]") # Use the simple repository API rather than the potentially unstable project URL # More information on the pypi API specification is avaialble here: @@ -60,7 +63,7 @@ UPSTREAM_CHECK_PYPI_PACKAGE ?= "${PYPI_PACKAGE}" # # NOTE: All URLs for the simple API MUST request canonical normalized URLs per the spec UPSTREAM_CHECK_URI ?= "https://pypi.org/simple/${@pypi_normalize(d)}/" -UPSTREAM_CHECK_REGEX ?= "(?i)${UPSTREAM_CHECK_PYPI_PACKAGE}-(?P(\d+[\.\-_]*)+).(tar\.gz|tgz|zip|tar\.bz2)" +UPSTREAM_CHECK_REGEX ?= "(?i)${@pypi_normalize_regex(d)}-(?P(\d+(\.[\d\-]+)*(\.post\d+)?))\.(tar\.gz|tgz|zip|tar\.bz2)" CVE_PRODUCT ?= "python:${PYPI_PACKAGE}"