Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 589246 - app-misc/lirc-0.9.4a creates sockets in /var/lib/run/lirc/, should be /var/run/lirc/
Summary: app-misc/lirc-0.9.4a creates sockets in /var/lib/run/lirc/, should be /var/ru...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Craig Andrews
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2016-07-20 15:49 UTC by Craig Andrews
Modified: 2016-07-31 22:48 UTC (History)
3 users (show)

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 Craig Andrews gentoo-dev 2016-07-20 15:49:01 UTC
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.
Comment 1 Craig Andrews gentoo-dev 2016-07-20 15:52:05 UTC
https://github.com/gentoo/gentoo/pull/1922
Comment 2 Justin 2016-07-20 22:14:28 UTC
(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.
Comment 3 Craig Andrews gentoo-dev 2016-07-21 00:56:25 UTC
(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 :)