From 6ceb2a8b06abadea8fbc162f9aff77dd9f11e22e Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Sat, 8 Aug 2026 12:13:46 +0200 Subject: [PATCH] package/python-pyudev: depend on libudev instead of udev Commit 3f24135c56f6aa8f0524307b7339512fecfa6f92 ("package/libinput: only needs libudev, not udev daemon") changed libinput to depend on libudev instead of udev. However, BR2_PACKAGE_LIBINPUT_PYTHON_TOOLS selects BR2_PACKAGE_PYTHON_PYUDEV, which depends on udev, causing a broken dependency chain: WARNING: unmet direct dependencies detected for BR2_PACKAGE_PYTHON_PYUDEV Depends on [n]: BR2_PACKAGE_PYTHON3 [=y] && BR2_PACKAGE_HAS_UDEV [=n] Selected by [y]: - BR2_PACKAGE_LIBINPUT_PYTHON_TOOLS [=y] && BR2_PACKAGE_LIBINPUT [=y] && BR2_PACKAGE_PYTHON3 [=y] Turns out that after experimenting, the majority of the pyudev functionality works fine with just libudev. Only pyudev.udev_version() has been detected as not working as it calls into udevadm. But the actual features to enumerate devices and get their characteristics just fine. So, to fix the issue, we change the dependency of python-pyudev to just libudev instead of udev. Signed-off-by: Thomas Petazzoni Signed-off-by: Julien Olivain --- package/python-pyudev/Config.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package/python-pyudev/Config.in b/package/python-pyudev/Config.in index aa98c2cc61..1e61228a34 100644 --- a/package/python-pyudev/Config.in +++ b/package/python-pyudev/Config.in @@ -1,6 +1,6 @@ config BR2_PACKAGE_PYTHON_PYUDEV bool "python-pyudev" - depends on BR2_PACKAGE_HAS_UDEV + depends on BR2_PACKAGE_HAS_LIBUDEV select BR2_PACKAGE_PYTHON3_ZLIB # runtime help pyudev is a LGPL licenced, pure Python 2/3 binding to @@ -9,5 +9,5 @@ config BR2_PACKAGE_PYTHON_PYUDEV https://github.com/pyudev/pyudev -comment "python-pyudev needs udev /dev management" - depends on !BR2_PACKAGE_HAS_UDEV +comment "python-pyudev needs libudev" + depends on !BR2_PACKAGE_HAS_LIBUDEV