app-misc/lirc-0.9.4a creates sockets in /var/lib/run/lirc/. It should create them in /var/run/lirc/. You can clearly see this problem running "man lircrcd" and noting this line: "With the --output option you can select the Unix domain socket, which lircrcd will create. The default is to create a socket in VARRUNDIR (/var/lib/run/lirc), see FILES." It should say VARRUNDIR is /var/run/lirc.
https://github.com/gentoo/gentoo/pull/1922
(In reply to candrews from comment #1) > https://github.com/gentoo/gentoo/pull/1922 I added the line '--localstatedir=/var' from the linked ebuild, changed it to '--localstatedir=/var \' and put it in my local ebuild. This fixed the problem for me. The socket is now in /var/run/lircd just like the old ebuilds. When merged this modified ebuild, I noticed one other change too. The ebuild now installs some files into /var/lib/lirc that without this change were installed into /var/lib/lib/lirc. Also a quick look at /var/lib/lirc shows that it may contain HTML documentation so that may still not be the correct place for those files.
(In reply to Justin from comment #2) > (In reply to candrews from comment #1) > > https://github.com/gentoo/gentoo/pull/1922 > > I added the line '--localstatedir=/var' from the linked ebuild, changed it > to '--localstatedir=/var \' and put it in my local ebuild. > This fixed the problem for me. > The socket is now in /var/run/lircd just like the old ebuilds. Thanks for pointing that out; I've fixed in my PR. > > When merged this modified ebuild, I noticed one other change too. > The ebuild now installs some files into /var/lib/lirc that without this > change were installed into /var/lib/lib/lirc. > Also a quick look at /var/lib/lirc shows that it may contain HTML > documentation so that may still not be the correct place for those files. I agree that isn't the right place - it seems to be a problem with lirc's Makefile. Those images and HTML are also in /usr/share/doc/lirc/ - so it seems lirc is accidentally installing them to (localstatedir)/lib/lirc as well. I created a bug report at for this issue: https://sourceforge.net/p/lirc/tickets/214/ I also submitted a PR to lirc and am included the patch in my PR to portage. Please feel free to try out the ebuild and patch in the updated PR :)
https://github.com/gentoo/gentoo/commit/b56cfd2afbca914c16a992678c4f203706254c75