python-evdev: add mandatory uinput.h header to builder
authorIvan Belokobylskiy <redacted>
Sat, 7 Mar 2026 13:51:05 +0000 (17:51 +0400)
committerAlexandru Ardelean <redacted>
Thu, 12 Mar 2026 13:56:00 +0000 (15:56 +0200)
Starting from 1.9.2 python-evdev requires
include/uapi/linux/uinput.h headers for proper building.
Otherwise, it compiles but cannot be imported causing
KeyError: 'UI_FF'

Add uinput.h to LINUX_EVDEV_HEADERS

Signed-off-by: Ivan Belokobylskiy <redacted>
lang/python/python-evdev/Makefile

index 791765aa453f310037600d1d427b38ee2d8e6a33..ab90976806eccb7a24f3dfd30f2add7d3e991c5f 100644 (file)
@@ -37,7 +37,7 @@ define Package/python3-evdev/description
        Bindings to the Linux input handling subsystem
 endef
 
-LINUX_EVDEV_HEADERS="$(LINUX_DIR)/include/uapi/linux/input.h:$(LINUX_DIR)/include/uapi/linux/input-event-codes.h"
+LINUX_EVDEV_HEADERS="$(LINUX_DIR)/include/uapi/linux/input.h:$(LINUX_DIR)/include/uapi/linux/uinput.h:$(LINUX_DIR)/include/uapi/linux/input-event-codes.h"
 
 PYTHON3_PKG_BUILD_CONFIG_SETTINGS:= \
        --build-option=build \
git clone https://git.99rst.org/PROJECT