diff mbox series

[meta-python,1/8] python3-dbus-deviation: Drop all setup_requires to fix build failure

Message ID 20260713004502.716970-1-khem.raj@oss.qualcomm.com
State New
Headers show
Series [meta-python,1/8] python3-dbus-deviation: Drop all setup_requires to fix build failure | expand

Commit Message

Khem Raj July 13, 2026, 12:44 a.m. UTC
do_compile failed with:

  AttributeError: 'NoneType' object has no attribute 'lower'

A non-empty setup_requires makes setuptools run fetch_build_eggs(),
which enumerates every distribution in the native sysroot and calls
packaging.utils.canonicalize_name(dist.name). Under the setuptools/
Python 3.14 in the sysroot one distribution exposes a None name, so
canonicalize_name() crashes on None.lower() and aborts the build.

Extend the existing patch to drop the whole setup_requires block
instead of only setuptools_git. sphinx is only used by the build_sphinx
command (not run during do_compile) and is already provided via
DEPENDS, so removing it is safe and keeps setuptools out of the
fetch_build_eggs() path.

Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 ...o-donwload-requierment-which-will-ca.patch | 25 +++++++++++++------
 1 file changed, 17 insertions(+), 8 deletions(-)
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-dbus-deviation/0001-Prevent-trying-to-donwload-requierment-which-will-ca.patch b/meta-python/recipes-devtools/python/python3-dbus-deviation/0001-Prevent-trying-to-donwload-requierment-which-will-ca.patch
index b163db772c..7acb4493c8 100644
--- a/meta-python/recipes-devtools/python/python3-dbus-deviation/0001-Prevent-trying-to-donwload-requierment-which-will-ca.patch
+++ b/meta-python/recipes-devtools/python/python3-dbus-deviation/0001-Prevent-trying-to-donwload-requierment-which-will-ca.patch
@@ -3,25 +3,34 @@  Subject: [PATCH] Prevent trying to donwload requierment which will cause

 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f1e83062ad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/setuptools-git/

+Dropping all setup_requires entries also avoids setuptools'
+fetch_build_eggs() code path, which enumerates every installed
+distribution in the native sysroot and crashes with
+"AttributeError: 'NoneType' object has no attribute 'lower'" when one of
+them exposes a None name under newer setuptools/Python. sphinx is only
+needed for the build_sphinx command (not run during do_compile) and is
+provided via DEPENDS, so it is safe to remove here.
+
 Upstream-Status: Inappropriate [oe specific]

-Signed-off-by: Liu Yiding <liuyd.fnst@fujitsu.com>
+Signed-off-by: Liu Yiding <liuyd.fnst@fujitsu.com>
 ---
- setup.py | 1 -
- 1 file changed, 1 deletion(-)
+ setup.py | 4 ----
+ 1 file changed, 4 deletions(-)

 diff --git a/setup.py b/setup.py
 index 245193f..d899e4c 100755
 --- a/setup.py
 +++ b/setup.py
-@@ -92,7 +92,6 @@ setuptools.setup(
+@@ -92,8 +92,4 @@ setuptools.setup(
      exclude_package_data={'': ['.gitignore']},
      zip_safe=True,
-     setup_requires=[
+-    setup_requires=[
 -        'setuptools_git >= 0.3',
-         'sphinx',
-     ],
+-        'sphinx',
+-    ],
      install_requires=['lxml'],
---
+     tests_require=[],
+--
 2.43.0