From patchwork Thu Nov 19 16:31:12 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 104924 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.1882.1795105883268856444 for ; Thu, 19 Nov 2026 08:31:23 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@arm.com header.s=foss header.b=m//z9KJ8; 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 7036C1575 for ; Thu, 19 Nov 2026 08:31:19 -0800 (PST) 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 153863F673 for ; Thu, 19 Nov 2026 08:31:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1795105882; bh=FuKJesH0Mb4KnkYp4yVJYfatM5ZOdrV/CtoILlLq4qw=; h=From:To:Subject:Date:From; b=m//z9KJ80IYhmeLPS1YDq34ElvQDJkr8OXj9nN8WYcttBMmOiLc+nmsMFdjZZPW5M CL3xjvdul8sKOjbP3dQPvIRhUZwfH4/7+Vq82x4PAoCjsSDlmQq/pjYEtuycWX6hh2 psKaI65OytshFtIFoK20GAUOHDCiwaPZOOIcbJKI= From: Ross Burton To: openembedded-core@lists.openembedded.org Subject: [PATCH v2 1/6] python3: support setting RPROVIDES in the manifest Date: Thu, 19 Nov 2026 16:31:12 +0000 Message-ID: <20261119163117.2242351-1-ross.burton@arm.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-ARM-No-Footer: NoDisclaimer 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 ; Thu, 19 Nov 2026 16:31:32 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/250703 Allow modules to have a 'rprovides' key, that sets RPROVIDES for the generated package. Signed-off-by: Ross Burton --- .../python/python3/create_manifest3.py | 23 ++++++++++++------- .../recipes-devtools/python/python3_3.15.2.bb | 9 ++++++++ 2 files changed, 24 insertions(+), 8 deletions(-) diff --git a/meta/recipes-devtools/python/python3/create_manifest3.py b/meta/recipes-devtools/python/python3/create_manifest3.py index 9ce04fdd2aa..8ba51a2a0c3 100644 --- a/meta/recipes-devtools/python/python3/create_manifest3.py +++ b/meta/recipes-devtools/python/python3/create_manifest3.py @@ -229,9 +229,20 @@ for pypkg in old_manifest: # will RDEPEND on it for pypkg in old_manifest: + # Handle special cases, we assume that when they were manually added + # to the manifest we knew what we were doing. + special_packages = ['misc', 'modules', 'dev', 'tests'] + if pypkg in special_packages or 'staticdev' in pypkg: + print_indent('Passing %s package directly' % pypkg, 2) + new_manifest[pypkg] = old_manifest[pypkg] + if 'rprovides' not in new_manifest[pypkg]: + new_manifest[pypkg]['rprovides'] = [] + continue + # Use an empty dict as data structure to hold data for each package and fill it up new_manifest[pypkg] = {} new_manifest[pypkg]['summary'] = old_manifest[pypkg]['summary'] + new_manifest[pypkg]['rprovides'] = old_manifest[pypkg].get('rprovides', []) new_manifest[pypkg]['rdepends'] = [] if "skip_depends" in old_manifest[pypkg]: new_manifest[pypkg]['skip_depends'] = old_manifest[pypkg]['skip_depends'] @@ -248,14 +259,6 @@ for pypkg in old_manifest: print('Handling package %s' % pypkg) print('--------------------------') - # Handle special cases, we assume that when they were manually added - # to the manifest we knew what we were doing. - special_packages = ['misc', 'modules', 'dev', 'tests'] - if pypkg in special_packages or 'staticdev' in pypkg: - print_indent('Passing %s package directly' % pypkg, 2) - new_manifest[pypkg] = old_manifest[pypkg] - continue - for filedep in old_manifest[pypkg]['files']: # We already handled core on the first pass, we can ignore it now if pypkg == 'core': @@ -440,6 +443,10 @@ for pypkg in new_manifest: new_manifest[pypkg]['files'].sort() new_manifest[pypkg]['cached'].sort() new_manifest[pypkg]['rdepends'].sort() + new_manifest[pypkg]['rprovides'].sort() + # Remove empty sections + if not new_manifest[pypkg]['rprovides']: + new_manifest[pypkg].pop('rprovides') # Create the manifest from the data structure that was built with open('python3-manifest.json.new','w') as outfile: diff --git a/meta/recipes-devtools/python/python3_3.15.2.bb b/meta/recipes-devtools/python/python3_3.15.2.bb index bfc783c9227..13d10face62 100644 --- a/meta/recipes-devtools/python/python3_3.15.2.bb +++ b/meta/recipes-devtools/python/python3_3.15.2.bb @@ -428,6 +428,10 @@ python(){ pypackage = pn + '-' + key + '-native' if pypackage not in rprovides: rprovides.append(pypackage) + for subkey in python_manifest[key].get('rprovides', ()): + pypackage = pn + '-' + subkey + '-native' + if pypackage not in rprovides: + rprovides.append(pypackage) d.setVar('RPROVIDES:class-native', ' '.join(rprovides)) @@ -461,6 +465,11 @@ python(){ value=value.split('-', 1)[1] d.appendVar('RDEPENDS:' + pypackage, ' ' + pn + '-' + value) + for value in python_manifest[key].get('rprovides', ()): + if '${PN}' in value: + value=value.split('-', 1)[1] + d.appendVar('RPROVIDES:' + pypackage, ' ' + pn + '-' + value) + for value in python_manifest[key].get('rrecommends', ()): if '${PN}' in value: value=value.split('-', 1)[1] From patchwork Thu Nov 19 16:31:13 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 104925 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.1825.1795105883621523549 for ; Thu, 19 Nov 2026 08:31:24 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@arm.com header.s=foss header.b=W8PmjOR6; 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 0B62619F0 for ; Thu, 19 Nov 2026 08:31:20 -0800 (PST) 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 A4EE13F673 for ; Thu, 19 Nov 2026 08:31:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1795105883; bh=yhf6trOL/yriDpX0iPZKaDsDJeuJWrBO6ROyYLOaGr4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=W8PmjOR6F22+i4VBarpwy3O3p4Q9g3R7MoPvti/KsFTC4NjwEPfGWYBTDm81hBKrI aqwB2VbJjZJJ8bw85rYzW94JFoWc67fclDk4DSWpZzaaGyxPeg1Cn+2nXNGb/JeZlA 2uRpTrtI5tp2VOpkCLfNQV7XNuNHs01XYzwWjVeg= From: Ross Burton To: openembedded-core@lists.openembedded.org Subject: [PATCH v2 2/6] python3: set RPROVIDES for fcntl and pkgutil instead of empty packages Date: Thu, 19 Nov 2026 16:31:13 +0000 Message-ID: <20261119163117.2242351-2-ross.burton@arm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261119163117.2242351-1-ross.burton@arm.com> References: <20261119163117.2242351-1-ross.burton@arm.com> MIME-Version: 1.0 X-ARM-No-Footer: NoDisclaimer 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 ; Thu, 19 Nov 2026 16:31:33 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/250704 The -fcntl and -pkgutil packages were previously separate but merged into -core as they became mandatory dependencies. The -fcntl package had a file in the manifest, but this was already packaged into -core so the package was actually empty. Instead of generating empty packages, we can now just RPROVIDE the old name. [1] pkgutil in oe-core e6ab9f16b92 ("python3: update to 3.8.1"), fcntl in oe-core 0b49c9aa312 ("python3: update 3.12.6 -> 3.13.0") Signed-off-by: Ross Burton --- .../python/python3/python3-manifest.json | 23 ++++--------------- .../recipes-devtools/python/python3_3.15.2.bb | 2 -- 2 files changed, 5 insertions(+), 20 deletions(-) diff --git a/meta/recipes-devtools/python/python3/python3-manifest.json b/meta/recipes-devtools/python/python3/python3-manifest.json index 5f9bfbdf0e7..347d7593339 100644 --- a/meta/recipes-devtools/python/python3/python3-manifest.json +++ b/meta/recipes-devtools/python/python3/python3-manifest.json @@ -185,6 +185,11 @@ }, "core": { "summary": "Python interpreter and core modules", + "rprovides": [ + "compression", + "fcntl", + "pkgutil" + ], "rdepends": [], "skip_depends": { "core": [ @@ -634,14 +639,6 @@ ], "cached": [] }, - "fcntl": { - "summary": "Python's fcntl interface", - "rdepends": [ - "core" - ], - "files": [], - "cached": [] - }, "gdbm": { "summary": "Python GNU database support", "rdepends": [ @@ -810,7 +807,6 @@ "doctest", "email", "ensurepip", - "fcntl", "html", "idle", "image", @@ -826,7 +822,6 @@ "netserver", "numbers", "pickle", - "pkgutil", "plistlib", "pprint", "profile", @@ -963,14 +958,6 @@ "${libdir}/python${PYTHON_MAJMIN}/__pycache__/shelve.*.pyc" ] }, - "pkgutil": { - "summary": "Python package extension utility support", - "rdepends": [ - "core" - ], - "files": [], - "cached": [] - }, "plistlib": { "summary": "Generate and parse Mac OS X .plist files", "rdepends": [ diff --git a/meta/recipes-devtools/python/python3_3.15.2.bb b/meta/recipes-devtools/python/python3_3.15.2.bb index 13d10face62..61eabc07b54 100644 --- a/meta/recipes-devtools/python/python3_3.15.2.bb +++ b/meta/recipes-devtools/python/python3_3.15.2.bb @@ -480,9 +480,7 @@ python(){ # Prepending so to avoid python-misc getting everything packages = newpackages + packages d.setVar('PACKAGES', ' '.join(packages)) - d.setVar('ALLOW_EMPTY:${PN}-fcntl', '1') d.setVar('ALLOW_EMPTY:${PN}-modules', '1') - d.setVar('ALLOW_EMPTY:${PN}-pkgutil', '1') if "pgo" in d.getVar("PACKAGECONFIG").split() and not bb.utils.contains('MACHINE_FEATURES', 'qemu-usermode', True, False, d): bb.fatal("pgo cannot be enabled as there is no qemu-usermode support for this architecture/machine") From patchwork Thu Nov 19 16:31:14 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 104926 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.1883.1795105884074343000 for ; Thu, 19 Nov 2026 08:31:24 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@arm.com header.s=foss header.b=cINPY80m; 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 9CFF61C00 for ; Thu, 19 Nov 2026 08:31:20 -0800 (PST) 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 40ACD3F673 for ; Thu, 19 Nov 2026 08:31:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1795105883; bh=pIMaUrRXscRT7xvzZgZFTBjY18HqCob0AglWFiqRO7M=; h=From:To:Subject:Date:In-Reply-To:References:From; b=cINPY80mKnk47G4B5I57elbp8oro1Ak/bkCGVJ5wfaX2KuxQsMJXClr8QsXY6uH/D viF59AsEg0M7hLDPyPxIcudZt8K+oZMB3weEkzqlYvYfI7yClS8SrKByF2zyGZYYpm zMy5ADmm2pX3Rw2x5Kjrzr81mvsQXn0WemDyXDZI= From: Ross Burton To: openembedded-core@lists.openembedded.org Subject: [PATCH v2 3/6] python3: merge -stringold to -core Date: Thu, 19 Nov 2026 16:31:14 +0000 Message-ID: <20261119163117.2242351-3-ross.burton@arm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261119163117.2242351-1-ross.burton@arm.com> References: <20261119163117.2242351-1-ross.burton@arm.com> MIME-Version: 1.0 X-ARM-No-Footer: NoDisclaimer 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 ; Thu, 19 Nov 2026 16:31:33 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/250705 The "stringold" module isn't actually "old", it's the original string module with utility methods and templating code. It's not deprecated and is small, so merge it into -core, add a RPROVIDES to preserve existing dependencies, and refresh the manifest. Signed-off-by: Ross Burton --- .../python/python3/python3-manifest.json | 39 +++++-------------- 1 file changed, 10 insertions(+), 29 deletions(-) diff --git a/meta/recipes-devtools/python/python3/python3-manifest.json b/meta/recipes-devtools/python/python3/python3-manifest.json index 347d7593339..901d71ec9ee 100644 --- a/meta/recipes-devtools/python/python3/python3-manifest.json +++ b/meta/recipes-devtools/python/python3/python3-manifest.json @@ -111,8 +111,7 @@ "io", "logging", "netclient", - "numbers", - "stringold" + "numbers" ], "files": [ "${libdir}/python${PYTHON_MAJMIN}/asyncio", @@ -188,7 +187,8 @@ "rprovides": [ "compression", "fcntl", - "pkgutil" + "pkgutil", + "stringold" ], "rdepends": [], "skip_depends": { @@ -326,6 +326,7 @@ "${libdir}/python${PYTHON_MAJMIN}/sre_constants.py", "${libdir}/python${PYTHON_MAJMIN}/sre_parse.py", "${libdir}/python${PYTHON_MAJMIN}/stat.py", + "${libdir}/python${PYTHON_MAJMIN}/string", "${libdir}/python${PYTHON_MAJMIN}/stringprep.py", "${libdir}/python${PYTHON_MAJMIN}/struct.py", "${libdir}/python${PYTHON_MAJMIN}/subprocess.py", @@ -539,8 +540,7 @@ "netclient", "numbers", "pprint", - "shell", - "stringold" + "shell" ], "files": [ "${libdir}/python${PYTHON_MAJMIN}/bdb.py", @@ -600,7 +600,6 @@ "numbers", "pprint", "shell", - "stringold", "unittest" ], "files": [ @@ -618,8 +617,7 @@ "io", "math", "mime", - "netclient", - "stringold" + "netclient" ], "files": [ "${libdir}/python${PYTHON_MAJMIN}/email", @@ -724,7 +722,6 @@ "io", "netserver", "pickle", - "stringold", "threading" ], "files": [ @@ -741,8 +738,7 @@ "io", "math", "mime", - "netclient", - "stringold" + "netclient" ], "files": [ "${libdir}/python${PYTHON_MAJMIN}/mailbox.py" @@ -876,8 +872,7 @@ "email", "io", "math", - "mime", - "stringold" + "mime" ], "files": [ "${libdir}/python${PYTHON_MAJMIN}/base64.py", @@ -1072,17 +1067,6 @@ "${libdir}/python${PYTHON_MAJMIN}/__pycache__/statistics.*.pyc" ] }, - "stringold": { - "summary": "Common string operations", - "rdepends": [ - "core" - ], - "files": [ - "${libdir}/python${PYTHON_MAJMIN}/string", - "${libdir}/python${PYTHON_MAJMIN}/string/__pycache__" - ], - "cached": [] - }, "syslog": { "summary": "Python syslog interface", "rdepends": [ @@ -1153,8 +1137,7 @@ "logging", "netclient", "numbers", - "pprint", - "stringold" + "pprint" ], "files": [ "${libdir}/python${PYTHON_MAJMIN}/unittest", @@ -1182,8 +1165,7 @@ "compression", "core", "logging", - "shell", - "stringold" + "shell" ], "files": [ "${bindir}/pyvenv*", @@ -1217,7 +1199,6 @@ "netserver", "numbers", "pydoc", - "stringold", "xml" ], "files": [ From patchwork Thu Nov 19 16:31:15 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 104927 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.1826.1795105884671122240 for ; Thu, 19 Nov 2026 08:31:24 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@arm.com header.s=foss header.b=dMXlTQRz; 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 372CF1575 for ; Thu, 19 Nov 2026 08:31:21 -0800 (PST) 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 D0F463F673 for ; Thu, 19 Nov 2026 08:31:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1795105884; bh=PMfl6A5b2b2Nmzu/wOUOGdVCjFneCUeIHvrHa7aQn0g=; h=From:To:Subject:Date:In-Reply-To:References:From; b=dMXlTQRzFGpcQGMYFu1mtWUCQXyLbnj0cFT9WzUP+0PhEr/hMCw4Lb8/BcQXZj2XY lkDgjeOrexZ6y2GQFlzpgU/fKu2ixXS/9ILsM2S8mXzn7TTN9YYl6KzMhS3ouWpv6X og9yhBlyKzCnqrk/IlpARTOKkDmBkHTZrSX2D4DU= From: Ross Burton To: openembedded-core@lists.openembedded.org Subject: [PATCH v2 4/6] python3: move base64 into -core Date: Thu, 19 Nov 2026 16:31:15 +0000 Message-ID: <20261119163117.2242351-4-ross.burton@arm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261119163117.2242351-1-ross.burton@arm.com> References: <20261119163117.2242351-1-ross.burton@arm.com> MIME-Version: 1.0 X-ARM-No-Footer: NoDisclaimer 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 ; Thu, 19 Nov 2026 16:31:33 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/250706 There are a lot of dependencies on the netclient package (1.2MB) simply for the base64 module (22K). Move this into core and refresh the manifest. Signed-off-by: Ross Burton --- .../python/python3/python3-manifest.json | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/meta/recipes-devtools/python/python3/python3-manifest.json b/meta/recipes-devtools/python/python3/python3-manifest.json index 901d71ec9ee..3a68fb003b9 100644 --- a/meta/recipes-devtools/python/python3/python3-manifest.json +++ b/meta/recipes-devtools/python/python3/python3-manifest.json @@ -110,7 +110,6 @@ "debugger", "io", "logging", - "netclient", "numbers" ], "files": [ @@ -231,6 +230,7 @@ "${libdir}/python${PYTHON_MAJMIN}/annotationlib.py", "${libdir}/python${PYTHON_MAJMIN}/argparse.py", "${libdir}/python${PYTHON_MAJMIN}/ast.py", + "${libdir}/python${PYTHON_MAJMIN}/base64.py", "${libdir}/python${PYTHON_MAJMIN}/bisect.py", "${libdir}/python${PYTHON_MAJMIN}/code.py", "${libdir}/python${PYTHON_MAJMIN}/codecs.py", @@ -365,6 +365,7 @@ "${libdir}/python${PYTHON_MAJMIN}/__pycache__/annotationlib.*.pyc", "${libdir}/python${PYTHON_MAJMIN}/__pycache__/argparse.*.pyc", "${libdir}/python${PYTHON_MAJMIN}/__pycache__/ast.*.pyc", + "${libdir}/python${PYTHON_MAJMIN}/__pycache__/base64.*.pyc", "${libdir}/python${PYTHON_MAJMIN}/__pycache__/bisect.*.pyc", "${libdir}/python${PYTHON_MAJMIN}/__pycache__/code.*.pyc", "${libdir}/python${PYTHON_MAJMIN}/__pycache__/codecs.*.pyc", @@ -537,7 +538,6 @@ "json", "logging", "math", - "netclient", "numbers", "pprint", "shell" @@ -596,7 +596,6 @@ "json", "logging", "math", - "netclient", "numbers", "pprint", "shell", @@ -616,8 +615,7 @@ "datetime", "io", "math", - "mime", - "netclient" + "mime" ], "files": [ "${libdir}/python${PYTHON_MAJMIN}/email", @@ -685,8 +683,7 @@ "rdepends": [ "compression", "core", - "math", - "netclient" + "math" ], "files": [ "${libdir}/python${PYTHON_MAJMIN}/_pyio.py", @@ -737,8 +734,7 @@ "email", "io", "math", - "mime", - "netclient" + "mime" ], "files": [ "${libdir}/python${PYTHON_MAJMIN}/mailbox.py" @@ -875,7 +871,6 @@ "mime" ], "files": [ - "${libdir}/python${PYTHON_MAJMIN}/base64.py", "${libdir}/python${PYTHON_MAJMIN}/ftplib.py", "${libdir}/python${PYTHON_MAJMIN}/hmac.py", "${libdir}/python${PYTHON_MAJMIN}/http", @@ -890,7 +885,6 @@ "${libdir}/python${PYTHON_MAJMIN}/uuid.py" ], "cached": [ - "${libdir}/python${PYTHON_MAJMIN}/__pycache__/base64.*.pyc", "${libdir}/python${PYTHON_MAJMIN}/__pycache__/ftplib.*.pyc", "${libdir}/python${PYTHON_MAJMIN}/__pycache__/hmac.*.pyc", "${libdir}/python${PYTHON_MAJMIN}/__pycache__/mimetypes.*.pyc", @@ -1135,7 +1129,6 @@ "difflib", "io", "logging", - "netclient", "numbers", "pprint" ], From patchwork Thu Nov 19 16:31:16 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 104928 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.1884.1795105885151952736 for ; Thu, 19 Nov 2026 08:31:25 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@arm.com header.s=foss header.b=N2V+orIA; 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 C32FB19F0 for ; Thu, 19 Nov 2026 08:31:21 -0800 (PST) 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 6BFF93F673 for ; Thu, 19 Nov 2026 08:31:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1795105884; bh=041f5A1XBxKP3nPuY+MAJ1c3iG7WZEBOO3xg504uA4s=; h=From:To:Subject:Date:In-Reply-To:References:From; b=N2V+orIA3ugGJU5UojcAgJGq6Won8yVVSQAY+cpygIB9RAhX/7AdSSgytVJuBq3RE fiOxFm/XIYr5Dn/cGCAEJZw53sn3NdgPkBWwCyfwsIqr1OGURdwNq90f2BqSPC2Kj6 DQYl0Awntvn1OvmMPaHNNUwKMCxmZ3VUGIKTeDOo= From: Ross Burton To: openembedded-core@lists.openembedded.org Subject: [PATCH v2 5/6] python3: improve generation of _sysconfigdata.py Date: Thu, 19 Nov 2026 16:31:16 +0000 Message-ID: <20261119163117.2242351-5-ross.burton@arm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261119163117.2242351-1-ross.burton@arm.com> References: <20261119163117.2242351-1-ross.burton@arm.com> MIME-Version: 1.0 X-ARM-No-Footer: NoDisclaimer 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 ; Thu, 19 Nov 2026 16:31:33 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/250707 Improve the regexes used to match so they are not assuming specific whitespace, and use a glob instead of find to look for the input file. Signed-off-by: Ross Burton --- meta/recipes-devtools/python/python3_3.15.2.bb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/meta/recipes-devtools/python/python3_3.15.2.bb b/meta/recipes-devtools/python/python3_3.15.2.bb index 61eabc07b54..388c7b82e40 100644 --- a/meta/recipes-devtools/python/python3_3.15.2.bb +++ b/meta/recipes-devtools/python/python3_3.15.2.bb @@ -221,14 +221,14 @@ do_install:append() { rm -f ${D}${libdir}/python${PYTHON_MAJMIN}/__pycache__/_sysconfigdata*.cpython* mkdir -p ${D}${libdir}/python-sysconfigdata - sysconfigfile=`find ${D} -name _sysconfig*.py` - sed -i \ - -e "s,^ 'LIBDIR'.*, 'LIBDIR': '${STAGING_LIBDIR}'\,,g" \ - -e "s,^ 'INCLUDEDIR'.*, 'INCLUDEDIR': '${STAGING_INCDIR}'\,,g" \ - -e "s,^ 'CONFINCLUDEDIR'.*, 'CONFINCLUDEDIR': '${STAGING_INCDIR}'\,,g" \ - -e "s,^ 'INCLUDEPY'.*, 'INCLUDEPY': '${STAGING_INCDIR}/python${PYTHON_MAJMIN}'\,,g" \ - -e "s,^ 'CONFINCLUDEPY'.*, 'CONFINCLUDEPY': '${STAGING_INCDIR}/python${PYTHON_MAJMIN}'\,,g" \ - -e "s,^ 'BUILD_GNU_TYPE'.*, 'BUILD_GNU_TYPE': '${HOST_SYS}'\,,g" \ + sysconfigfile="${D}${libdir}/python${PYTHON_MAJMIN}/_sysconfig*.py" + sed -i \ + -e "s,'LIBDIR':.*,'LIBDIR': '${STAGING_LIBDIR}'\,,g" \ + -e "s,'INCLUDEDIR':.*,'INCLUDEDIR': '${STAGING_INCDIR}'\,,g" \ + -e "s,'CONFINCLUDEDIR':.*,'CONFINCLUDEDIR': '${STAGING_INCDIR}'\,,g" \ + -e "s,'INCLUDEPY':.*,'INCLUDEPY': '${STAGING_INCDIR}/python${PYTHON_MAJMIN}'\,,g" \ + -e "s,'CONFINCLUDEPY':.*,'CONFINCLUDEPY': '${STAGING_INCDIR}/python${PYTHON_MAJMIN}'\,,g" \ + -e "s,'BUILD_GNU_TYPE':.*,'BUILD_GNU_TYPE': '${HOST_SYS}'\,,g" \ -e "s,--build=${BUILD_ARCH},--build=${HOST_ARCH},g" \ -e "s,build_alias=${BUILD_ARCH},build_alias=${HOST_ARCH},g" \ -e "s,${B},/build/path/unavailable/,g" \ From patchwork Thu Nov 19 16:31:17 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 104929 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.1827.1795105885836115169 for ; Thu, 19 Nov 2026 08:31:26 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@arm.com header.s=foss header.b=JbHDRWPf; 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 61E7B19F0 for ; Thu, 19 Nov 2026 08:31:22 -0800 (PST) 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 077A53F673 for ; Thu, 19 Nov 2026 08:31:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1795105885; bh=RpjUwJPl6zqWqNWDJ+XiIxq8hQwEdG972YMDieNBwA8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=JbHDRWPfd5si1eAh9Kze2oSMHAJJjSLcsnCrbxLv5gSmPi6b40D1wWXc8saiPoJK4 tJnviU7jnorC0Rke2zO9a49XqO8PSUtHUDG6cN4EO+vEDx9VzrAAzlzMW8sCeOYDr9 dGe+QwUxJWQ5T+OBdRZh66SpWS/qNqu5P7vZH53M= From: Ross Burton To: openembedded-core@lists.openembedded.org Subject: [PATCH v2 6/6] python3: remove obsolete reformatting of _sysconfigdata*.py Date: Thu, 19 Nov 2026 16:31:17 +0000 Message-ID: <20261119163117.2242351-6-ross.burton@arm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261119163117.2242351-1-ross.burton@arm.com> References: <20261119163117.2242351-1-ross.burton@arm.com> MIME-Version: 1.0 X-ARM-No-Footer: NoDisclaimer 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 ; Thu, 19 Nov 2026 16:31:33 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/250708 The python3 recipe currently reformats the _sysconfigdata*.py files after they are modified to remove build paths, as the files may be wrapped differently based on the length of strings[1]. However, this wrapping was due to the use of pprint.pprint(), which since Python 3.13 is no longer used to generate the sysconfigdata[2]. As such, remove the reformatting as it is no longer needed. [1] oe-core ec8a2b310d5 ("python3: Reformat sysconfig") [2] python 5ecedbd2669 ("gh-106789: avoid importing pprint from sysconfig (#106790)") Signed-off-by: Ross Burton --- .../python/python3/reformat_sysconfig.py | 21 ------------------- .../recipes-devtools/python/python3_3.15.2.bb | 8 +------ 2 files changed, 1 insertion(+), 28 deletions(-) delete mode 100644 meta/recipes-devtools/python/python3/reformat_sysconfig.py diff --git a/meta/recipes-devtools/python/python3/reformat_sysconfig.py b/meta/recipes-devtools/python/python3/reformat_sysconfig.py deleted file mode 100644 index 5e2b12879d9..00000000000 --- a/meta/recipes-devtools/python/python3/reformat_sysconfig.py +++ /dev/null @@ -1,21 +0,0 @@ -#! /usr/bin/env python3 -# -# SPDX-License-Identifier: MIT -# -# Copyright 2019 by Garmin Ltd. or its subsidiaries -# -# A script to reformat python sysconfig - -import sys -import pprint -l = {} -g = {} -with open(sys.argv[1], 'r') as f: - exec(f.read(), g, l) - -with open(sys.argv[1], 'w') as f: - for k in sorted(l.keys()): - f.write('%s = ' % k) - pprint.pprint(l[k], stream=f, width=1) - f.write('\n') - diff --git a/meta/recipes-devtools/python/python3_3.15.2.bb b/meta/recipes-devtools/python/python3_3.15.2.bb index 388c7b82e40..da59f0e8bb2 100644 --- a/meta/recipes-devtools/python/python3_3.15.2.bb +++ b/meta/recipes-devtools/python/python3_3.15.2.bb @@ -12,7 +12,6 @@ SRC_URI = "http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.xz \ file://get_module_deps3.py \ file://python3-manifest.json \ file://check_build_completeness.py \ - file://reformat_sysconfig.py \ file://0001-Makefile.pre-use-qemu-wrapper-when-gathering-profile.patch \ file://0001-test_locale.py-correct-the-test-output-format.patch \ file://makerace.patch \ @@ -215,9 +214,6 @@ do_install:append:class-native() { } do_install:append() { - for c in ${D}/${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata*.py; do - python3 ${UNPACKDIR}/reformat_sysconfig.py $c - done rm -f ${D}${libdir}/python${PYTHON_MAJMIN}/__pycache__/_sysconfigdata*.cpython* mkdir -p ${D}${libdir}/python-sysconfigdata @@ -381,10 +377,8 @@ py_package_preprocess () { ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/_sysconfig_vars*.json \ ${PKGD}/${bindir}/python${PYTHON_MAJMIN}-config - # Reformat and recompile _sysconfigdata after modifying it so that it remains - # reproducible + # Recompile _sysconfigdata after modifying it for c in ${PKGD}/${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata*.py; do - python3 ${UNPACKDIR}/reformat_sysconfig.py $c python3 -mcompileall $c -s ${PKGD} -p / done