diff mbox series

[2/4] python3: set RPROVIDES for fcntl and pkgutil instead of empty packages

Message ID 20261118174744.2483235-2-ross.burton@arm.com
State New
Headers show
Series [1/4] python3: support setting RPROVIDES in the manifest | expand

Commit Message

Ross Burton Nov. 18, 2026, 5:47 p.m. UTC
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 <ross.burton@arm.com>
---
 .../python/python3/python3-manifest.json      | 23 ++++---------------
 .../python/python3_3.14.10.bb                 |  2 --
 2 files changed, 5 insertions(+), 20 deletions(-)
diff mbox series

Patch

diff --git a/meta/recipes-devtools/python/python3/python3-manifest.json b/meta/recipes-devtools/python/python3/python3-manifest.json
index 0c91745e675..902f7c31475 100644
--- a/meta/recipes-devtools/python/python3/python3-manifest.json
+++ b/meta/recipes-devtools/python/python3/python3-manifest.json
@@ -186,6 +186,11 @@ 
     },
     "core": {
         "summary": "Python interpreter and core modules",
+        "rprovides": [
+            "compression",
+            "fcntl",
+            "pkgutil"
+        ],
         "rdepends": [],
         "skip_depends": {
             "core": [
@@ -632,14 +637,6 @@ 
         ],
         "cached": []
     },
-    "fcntl": {
-        "summary": "Python's fcntl interface",
-        "rdepends": [
-            "core"
-        ],
-        "files": [],
-        "cached": []
-    },
     "gdbm": {
         "summary": "Python GNU database support",
         "rdepends": [
@@ -808,7 +805,6 @@ 
             "doctest",
             "email",
             "ensurepip",
-            "fcntl",
             "html",
             "idle",
             "image",
@@ -824,7 +820,6 @@ 
             "netserver",
             "numbers",
             "pickle",
-            "pkgutil",
             "plistlib",
             "pprint",
             "profile",
@@ -961,14 +956,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.14.10.bb b/meta/recipes-devtools/python/python3_3.14.10.bb
index 1f9d597eb69..b3e8123d4d6 100644
--- a/meta/recipes-devtools/python/python3_3.14.10.bb
+++ b/meta/recipes-devtools/python/python3_3.14.10.bb
@@ -493,9 +493,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")