package/python-pyudev: depend on libudev instead of udev

Commit 3f24135c56 ("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 <thomas.petazzoni@bootlin.com>
Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
Thomas Petazzoni
2026-08-08 12:13:46 +02:00
committed by Julien Olivain
parent a96a0a758f
commit 6ceb2a8b06

View File

@@ -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