Left over lib/lirc/config.h lead to "LIRC_LOCKDIR" redefined to not existing
"/var/lock/lockdir" (beside others):
/home/docker/LibreELEC.tv/build.LibreELEC-gbm.x86_64-12.0-devel-mg/build/lirc-0.10.2/lib/lirc/config.h:198: warning: "LIRC_LOCKDIR" redefined
198 | #define LIRC_LOCKDIR "/var/lock/lockdev"
|
In file included from /home/docker/LibreELEC.tv/build.LibreELEC-gbm.x86_64-12.0-devel-mg/build/lirc-0.10.2/lib/driver.c:12:
./config.h:198: note: this is the location of the previous definition
198 | #define LIRC_LOCKDIR "/var/lock"
|
Furthermore define lock dir because lirc's configure does check the host system and use
/var/lock/lockdev if existing.
Don't rely on autodetection as this will fail, eg when building
in a chroot without /dev/uinput, and result in lircd-uinput missing
Signed-off-by: Matthias Reichl <hias@horus.com>
The patch accidentally dropped installation of pkgconfig files which
lead to libirman not detecting lirc
Signed-off-by: Matthias Reichl <hias@horus.com>
When building lirc after alsa-utils, the following unwanted alsa libraries are built by lirc:
NEW FILE Delta: 10,536 devel-20190115185543-5767941: 10,536 devel-20190115133317-5767941: n/a /usr/lib/lirc/plugins/alsa_usb.so
NEW FILE Delta: 19,176 devel-20190115185543-5767941: 19,176 devel-20190115133317-5767941: n/a /usr/lib/lirc/plugins/audio_alsa.so
Add helper scripts for lircd and lircd-uinput so that we can
override lirc_options.conf and lircd.conf via files in
/storage/.config
Use separate systemd units for lircd and lircd-uinput, like in
upstream, and just add a ConditionPathExists to enable/disable
the services.
The lirc socket is managed by systemd via lircd.socket, like
in upstream.
Remove udev file for enabling lirc, this is now handled via
systemd only.
Based on upstream lirc_options.conf with the following changes:
- socket set to /run/lirc/lircd.socket, the default clashes with eventlircd
- pidfile in /run instead of /var/run
- driver set to default
- device set to /dev/lirc0
Since diagonal key support was added in kernel 4.7 KEY_LEFT_UP
and KEY_RIGHT_UP are valid input symbols.
This means we can no longer use _UP as a suffix for transporting
release events from lircd to lircd-uinput, lircd-uinput now
interprets KEY_LEFT_UP/KEY_RIGHT_UP as a diagnoal key down event
instead of left/right key release.