From af2f3208cf31de0289a53a2c93fa1422da5c3acb Mon Sep 17 00:00:00 2001 From: Romain Naour Date: Wed, 13 May 2026 16:23:07 +0200 Subject: [PATCH] package/python-sdbus-modemmanager: fix sdbus-modemmanager intall path Since the last version bump in commit [1] python-sdbus-modemmanager install step miss-behave following the switch to poetry (as reported by [2]). The sdbus-modemmanager python module is intalled in a second "modemmanager" subdirectory: $(TARGET_DIR)/lib/python3.14/site-packages/sdbus_block/modemmanager/modemmanager/ This break existing python script using: from sdbus_block.modemmanager import MMBearer Fix tool.poetry install step by removing one "modemmanager". [1] 7c30b1e522988ffe5d4b300b2447f912b83558ad [2] https://github.com/zhanglongqi/python-sdbus-modemmanager/issues/24 Fixes: https://gitlab.com/buildroot.org/buildroot/-/jobs/13904075359 Signed-off-by: Romain Naour Signed-off-by: Julien Olivain --- ...l-fix-sdbus-modemmanager-intall-path.patch | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 package/python-sdbus-modemmanager/0001-pyproject.toml-fix-sdbus-modemmanager-intall-path.patch diff --git a/package/python-sdbus-modemmanager/0001-pyproject.toml-fix-sdbus-modemmanager-intall-path.patch b/package/python-sdbus-modemmanager/0001-pyproject.toml-fix-sdbus-modemmanager-intall-path.patch new file mode 100644 index 0000000000..40638c652e --- /dev/null +++ b/package/python-sdbus-modemmanager/0001-pyproject.toml-fix-sdbus-modemmanager-intall-path.patch @@ -0,0 +1,50 @@ +From 7a99efa663bf9602099f0658aecbec6b5dce778a Mon Sep 17 00:00:00 2001 +From: Romain Naour +Date: Sat, 9 May 2026 00:29:59 +0200 +Subject: [PATCH] pyproject.toml: fix sdbus-modemmanager intall path + +Since the switch to poetry in 1.0.3 [1] python-sdbus-modemmanager +install step miss-behave (as reported by [2]). + +The sdbus-modemmanager python module is intalled in a second +"modemmanager" subdirectory: + + /lib/python3.14/site-packages/sdbus_block/modemmanager/modemmanager/ + +This break existing python script using: + + from sdbus_block.modemmanager import MMBearer + +Fix tool.poetry install step by removing one "modemmanager". + +[1] 0d8ae7217841ab1bc12282076f766f94415573f5 +[2] https://github.com/zhanglongqi/python-sdbus-modemmanager/issues/24 + +Fixes: +https://gitlab.com/buildroot.org/buildroot/-/jobs/13904075359 + +Upstream: https://github.com/zhanglongqi/python-sdbus-modemmanager/pull/25 + +Signed-off-by: Romain Naour +--- + pyproject.toml | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/pyproject.toml b/pyproject.toml +index 5e57df6..bf97a5d 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -27,8 +27,8 @@ classifiers = [ + + [tool.poetry] + packages = [ +- { include = "modemmanager", from="sdbus_async", to="sdbus_async/modemmanager" }, +- { include = "modemmanager", from="sdbus_block", to="sdbus_block/modemmanager" }, ++ { include = "modemmanager", from="sdbus_async", to="sdbus_async" }, ++ { include = "modemmanager", from="sdbus_block", to="sdbus_block" }, + ] + + [build-system] +-- +2.54.0 +