diff mbox series

[meta-xfce] menulibre: fix do_install failed

Message ID 20260112071128.1670836-1-hongxu.jia@windriver.com
State New
Headers show
Series [meta-xfce] menulibre: fix do_install failed | expand

Commit Message

Hongxu Jia Jan. 12, 2026, 7:11 a.m. UTC
Use pip 25.3 to install failed
...
Traceback (most recent call last):
  File "menulibre-2.4.0/setup.py", line 245, in <module>
    DistUtilsExtra.auto.setup(
    ~~~~~~~~~~~~~~~~~~~~~~~~~^
        name='menulibre',
        ^^^^^^^^^^^^^^^^^
    ...<12 lines>...
        cmdclass={'install': InstallAndUpdateDataDirectory}
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "recipe-sysroot-native/usr/lib/python3.13/site-packages/DistUtilsExtra/auto.py", line 98, in setup
    __requires(attrs, src_all)
    ~~~~~~~~~~^^^^^^^^^^^^^^^^
  File "recipe-sysroot-native/usr/lib/python3.13/site-packages/DistUtilsExtra/auto.py", line 471, in __requires
    __add_imports(imports, s, attrs)
    ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
  File "recipe-sysroot-native/usr/lib/python3.13/site-packages/DistUtilsExtra/auto.py", line 405, in __add_imports
    if alias.name and __external_mod(cur_module, alias.name, attrs):
                      ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "recipe-sysroot-native/usr/lib/python3.13/site-packages/DistUtilsExtra/auto.py", line 377, in __external_mod
    return 'dist-packages' in mod.__file__ or 'site-packages' in mod.__file__ or \
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: argument of type 'NoneType' is not iterable
...

Refer [1] to correct one line in setup.py

[1] https://github.com/epoptes/epoptes/commit/81be63961a428728601df6f442490638df3bd263

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
 .../0001-setup.py-fix-install-failed.patch    | 59 +++++++++++++++++++
 .../recipes-apps/menulibre/menulibre_2.4.0.bb |  4 +-
 2 files changed, 62 insertions(+), 1 deletion(-)
 create mode 100644 meta-xfce/recipes-apps/menulibre/files/0001-setup.py-fix-install-failed.patch
diff mbox series

Patch

diff --git a/meta-xfce/recipes-apps/menulibre/files/0001-setup.py-fix-install-failed.patch b/meta-xfce/recipes-apps/menulibre/files/0001-setup.py-fix-install-failed.patch
new file mode 100644
index 0000000000..751b77e3b2
--- /dev/null
+++ b/meta-xfce/recipes-apps/menulibre/files/0001-setup.py-fix-install-failed.patch
@@ -0,0 +1,59 @@ 
+From 671fba096962a24c9dd71b5c995399984ec2ef60 Mon Sep 17 00:00:00 2001
+From: Hongxu Jia <hongxu.jia@windriver.com>
+Date: Mon, 12 Jan 2026 15:01:00 +0800
+Subject: [PATCH] setup.py: fix install failed
+
+Use pip 25.3 to install failed
+...
+Traceback (most recent call last):
+  File "menulibre-2.4.0/setup.py", line 245, in <module>
+    DistUtilsExtra.auto.setup(
+    ~~~~~~~~~~~~~~~~~~~~~~~~~^
+        name='menulibre',
+        ^^^^^^^^^^^^^^^^^
+    ...<12 lines>...
+        cmdclass={'install': InstallAndUpdateDataDirectory}
+        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+    )
+    ^
+  File "recipe-sysroot-native/usr/lib/python3.13/site-packages/DistUtilsExtra/auto.py", line 98, in setup
+    __requires(attrs, src_all)
+    ~~~~~~~~~~^^^^^^^^^^^^^^^^
+  File "recipe-sysroot-native/usr/lib/python3.13/site-packages/DistUtilsExtra/auto.py", line 471, in __requires
+    __add_imports(imports, s, attrs)
+    ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
+  File "recipe-sysroot-native/usr/lib/python3.13/site-packages/DistUtilsExtra/auto.py", line 405, in __add_imports
+    if alias.name and __external_mod(cur_module, alias.name, attrs):
+                      ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+  File "recipe-sysroot-native/usr/lib/python3.13/site-packages/DistUtilsExtra/auto.py", line 377, in __external_mod
+    return 'dist-packages' in mod.__file__ or 'site-packages' in mod.__file__ or \
+           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+TypeError: argument of type 'NoneType' is not iterable
+...
+
+Refer [1] to correct one line in setup.py
+
+[1] https://github.com/epoptes/epoptes/commit/81be63961a428728601df6f442490638df3bd263
+
+Upstream-Status: Submitted [https://github.com/bluesabre/menulibre/pull/233]
+
+Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
+---
+ setup.py | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/setup.py b/setup.py
+index 4aec9fd..649f5f7 100644
+--- a/setup.py
++++ b/setup.py
+@@ -248,6 +248,7 @@ DistUtilsExtra.auto.setup(
+     license='GPL-3',
+     author='Sean Davis',
+     author_email='sean@bluesabre.org',
++    requires='',
+     description='advanced menu editor with support for Unity actions',
+     long_description='An advanced menu editor that provides modern features '
+                      'and full Unity action support. Suitable for lightweight '
+-- 
+2.34.1
+
diff --git a/meta-xfce/recipes-apps/menulibre/menulibre_2.4.0.bb b/meta-xfce/recipes-apps/menulibre/menulibre_2.4.0.bb
index 4c52249fed..1a5fcbc767 100644
--- a/meta-xfce/recipes-apps/menulibre/menulibre_2.4.0.bb
+++ b/meta-xfce/recipes-apps/menulibre/menulibre_2.4.0.bb
@@ -12,7 +12,9 @@  DEPENDS = " \
 inherit setuptools3_legacy gtk-icon-cache features_check
 REQUIRED_DISTRO_FEATURES = "x11 gobject-introspection-data"
 
-SRC_URI = "https://github.com/bluesabre/${BPN}/releases/download/${BP}/${BP}.tar.gz"
+SRC_URI = "https://github.com/bluesabre/${BPN}/releases/download/${BP}/${BP}.tar.gz \
+           file://0001-setup.py-fix-install-failed.patch \
+"
 SRC_URI[sha256sum] = "d906acf9cc13b0e15b8e342ae9aab8b0680db336a382d0c42f5d5f465f593c9f"
 
 UPSTREAM_CHECK_URI = "https://github.com/bluesabre/menulibre/releases"