Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 414307 - app-misc/lirc: uses keepdir /var/run/lirc, should use checkpath in /etc/init.d/lircd instead
Summary: app-misc/lirc: uses keepdir /var/run/lirc, should use checkpath in /etc/init....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement with 1 vote (vote)
Assignee: Television related Applications in Gentoo's Portage
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: keepdir-var-run_lock
  Show dependency tree
 
Reported: 2012-05-01 22:48 UTC by Malte Starostik
Modified: 2012-07-17 18:47 UTC (History)
1 user (show)

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


Attachments
migrate keepdir /var/run/lirc to checkpath (lircd-var-run.patch,1.32 KB, patch)
2012-05-01 22:50 UTC, Malte Starostik
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Malte Starostik 2012-05-01 22:48:09 UTC
lircd won't start unless /var/run/lircd/ exists.  This can happen easily e.g. if /var/run/ is on tmpfs:

$ sudo /etc/init.d/lircd start
 * Caching service dependencies ...                                                                                                         [ ok ]
 * Starting lircd ...                                                                                                                       [ !! ]
 * ERROR: lircd failed to start
$ sudo lircd -n
lircd: can't open or create /var/run/lirc/lircd.pid
lircd: No such file or directory

The ebuild uses keepdir on that dir, assuming it's persistent.  The init script should care for its existance instead.

Reproducible: Always
Comment 1 Malte Starostik 2012-05-01 22:50:11 UTC
Created attachment 310599 [details, diff]
migrate keepdir /var/run/lirc to checkpath

Fixes the issue.
Runtime checked on app-misc/lirc-0.8.7
Assumed correct for app-misc/lirc-0.9.0 as it's basically the same diff.
Comment 2 Ian Stakenvicius (RETIRED) gentoo-dev 2012-07-17 18:44:40 UTC
All the MCEUSB stuff is in-kernel as of 0.9.0 , so there's nothing in lirc to patch anymore.

If the kernel doesn't support this device then a bug should be submitted against the kernel, but I expect that it already does.
Comment 3 Ian Stakenvicius (RETIRED) gentoo-dev 2012-07-17 18:47:05 UTC
CRUD, wrong bug.  

Anyways, i've fixed this with lirc-0.9.0-r1 , which i'm committing to the tree in about 5 minutes.