on installations with systemd, app-misc/lirc-0.10.1-r1 cannot start the lircd daemon. The messages in system journal look like Sep 13 09:47:09 ion64 lircd[14295]: lircd-0.10.1[14295]: Info: lircd: Opening log, level: Info Sep 13 09:47:09 ion64 lircd[14295]: can't open or create /var/run/lirc/lircd.pid: No such file or directory The reason is that the directory /var/run/lirc/ for the pid file is not created from any startup component (lircd.service, lircd-setup.service). The problem and solution is perfectly described in Bug #529210 which is marked "resolved, fixed" but I think the problem is back in town. My personal workaround: create a drop-in file for lircd.service by executing the following commands: mkdir /etc/systemd/system/lircd.service.d echo -e "[Service]\nExecStartPre=/bin/mkdir -p /var/run/lirc\n" >/etc/systemd/system/lircd.service.d/10-mkdir.conf systemctl daemon-reload
Looks like the ebuild could do entirely without IUSE=systemd as it doesn't actually change anything in what is installed.
Reported upstream: https://sourceforge.net/p/lirc/git/merge-requests/42/
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31b7716e13228a7a36e9cbc53b7124d26137e137 commit 31b7716e13228a7a36e9cbc53b7124d26137e137 Author: Craig Andrews <candrews@gentoo.org> AuthorDate: 2019-09-15 01:15:26 +0000 Commit: Craig Andrews <candrews@gentoo.org> CommitDate: 2019-09-15 01:32:24 +0000 app-misc/lirc: Create the /run/lirc directory Bug: https://sourceforge.net/p/lirc/git/merge-requests/42/ Closes: https://bugs.gentoo.org/694310 Package-Manager: Portage-2.3.76, Repoman-2.3.17 Signed-off-by: Craig Andrews <candrews@gentoo.org> .../lirc/files/lirc-0.10.1-runtimedirectory.patch | 18 +++ app-misc/lirc/lirc-0.10.1-r2.ebuild | 161 +++++++++++++++++++++ 2 files changed, 179 insertions(+)