| Message ID | 20261120035922.3013969-4-khem.raj@oss.qualcomm.com |
|---|---|
| State | New |
| Headers | show |
| Series | [meta-multimedia,1/4] gupnp-igd: Bound each ptest with a timeout | expand |
diff --git a/meta-networking/recipes-connectivity/samba/samba/0002-do-not-import-target-module-while-cross-compile.patch b/meta-networking/recipes-connectivity/samba/samba/0002-do-not-import-target-module-while-cross-compile.patch index b0ad5c4142..5138f01197 100644 --- a/meta-networking/recipes-connectivity/samba/samba/0002-do-not-import-target-module-while-cross-compile.patch +++ b/meta-networking/recipes-connectivity/samba/samba/0002-do-not-import-target-module-while-cross-compile.patch @@ -44,7 +44,7 @@ index 2300565..26d9e8c 100644 - version = m.__version__ - except AttributeError: + module = importlib.util.module_from_spec(spec) -+ spec.loader.load_module(module) ++ spec.loader.exec_module(module) + except ImportError: found = False + diff --git a/meta-networking/recipes-support/libldb/libldb/0001-do-not-import-target-module-while-cross-compile.patch b/meta-networking/recipes-support/libldb/libldb/0001-do-not-import-target-module-while-cross-compile.patch index 09c84b4405..011de2fd1e 100644 --- a/meta-networking/recipes-support/libldb/libldb/0001-do-not-import-target-module-while-cross-compile.patch +++ b/meta-networking/recipes-support/libldb/libldb/0001-do-not-import-target-module-while-cross-compile.patch @@ -46,7 +46,7 @@ index 2300565..26d9e8c 100644 - version = m.__version__ - except AttributeError: + module = importlib.util.module_from_spec(spec) -+ spec.loader.load_module(module) ++ spec.loader.exec_module(module) + except ImportError: found = False +
Python 3.15 removed the deprecated importlib Loader.load_module(), so the CHECK_BUNDLED_SYSTEM_PYTHON change carried by the "do not import target module while cross compile" patch fails at configure time: AttributeError: 'ExtensionFileLoader' object has no attribute 'load_module'. Did you mean '.exec_module' instead of '.load_module'? Call exec_module() on the module created by module_from_spec(), which is the matching API and works with older Python versions too. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com> --- .../0002-do-not-import-target-module-while-cross-compile.patch | 2 +- .../0001-do-not-import-target-module-while-cross-compile.patch | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)