Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 694310 - app-misc/lirc-0.10.1-r1 - lircd.service: can't open or create /var/run/lirc/lircd.pid: No such file or directory
Summary: app-misc/lirc-0.10.1-r1 - lircd.service: can't open or create /var/run/lirc/l...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Craig Andrews
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-13 19:06 UTC by Martin Dummer
Modified: 2019-09-15 01:32 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Dummer 2019-09-13 19:06:13 UTC
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
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2019-09-14 06:51:52 UTC
Looks like the ebuild could do entirely without IUSE=systemd as it doesn't actually change anything in what is installed.
Comment 2 Craig Andrews gentoo-dev 2019-09-15 01:13:57 UTC
Reported upstream: https://sourceforge.net/p/lirc/git/merge-requests/42/
Comment 3 Larry the Git Cow gentoo-dev 2019-09-15 01:32:34 UTC
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(+)