dev-libs/libmanette-0.2.5 fails build with: FAILED: src/libmanette-0.2.so.0.p/manette-device.c.o [..] -o src/libmanette-0.2.so.0.p/manette-device.c.o -c ../libmanette-0.2.5/src/manette-device.c ../libmanette-0.2.5/src/manette-device.c: In function 'on_evdev_event': ../libmanette-0.2.5/src/manette-device.c:418:39: error: 'struct input_event' has no member named 'input_event_sec' 418 | manette_event.any.time = evdev_event->input_event_sec * 1000 + | ^~ ../libmanette-0.2.5/src/manette-device.c:419:39: error: 'struct input_event' has no member named 'input_event_usec' 419 | evdev_event->input_event_usec / 1000; | ^~ ninja: build stopped: subcommand failed. Reproducible: Always Steps to Reproduce: 1. build with a 4.x kernel, e.g. 4.14.x, works with 5.7.x Somewhere between kernel 4.14.188 and 5.7.8 some defines were introduced into the kernel header include/uapi/linux/input.h which libmanette-0.2.5 uses. The fix is easy, see patch I'll attach (which could be done cleaner I guess).
Created attachment 691650 [details, diff] Define missing macros for input_event see include/uapi/linux/input.h for the code the patch is taken from
Please send this as a merge request upstream to https://gitlab.gnome.org/aplazas/libmanette