Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 520462 - app-accessibility/brltty installs into paths that should be created at runtime
Summary: app-accessibility/brltty installs into paths that should be created at runtime
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Chris Brannon (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: runtime-paths
  Show dependency tree
 
Reported: 2014-08-22 08:21 UTC by Agostino Sarubbo
Modified: 2014-09-11 22:18 UTC (History)
1 user (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 Agostino Sarubbo gentoo-dev 2014-08-22 08:21:23 UTC
This is an auto-filled bug because this package should create some paths at runtime.


 * QA Notice: This ebuild installs into paths that should be created at runtime.
 *  To fix, simply do not install into these directories.  Instead, your package
 *  should create dirs on the fly at runtime as needed via init scripts/etc...
 * 
 *   var/run
 *   var/run/brltty
Comment 1 Chris Brannon (RETIRED) gentoo-dev 2014-08-22 09:33:00 UTC
I have entries for those paths in /usr/lib/tmpfiles.d,
which is what I thought we were supposed to do.
In that case, isn't creating those dirs at install time completely
harmless?  They'll be blown away at reboot / shutdown and then recreated
by the scripts that make tempfiles, right?

I mean, I could run rm in the ebuild.
If I do that, the directories won't be available for the daemon
if someone decides to start it before the next boot.
So I could add code to my initscript to create the directory before
the daemon starts.  Fine.  Now my tmpfiles.d entry is completely
superfluous.  May as well remove it, eh?
Sounds like I've just made more work for myself, adding
code to both an ebuild and an initscript, while losing the convenience
of tmpfiles.d.

Sorry if my tone is a bit hostile.  But I think what I have here is
just fine.  If not, please give me a good contrary argument.
Thanks.
Comment 2 Chris Brannon (RETIRED) gentoo-dev 2014-08-23 14:22:14 UTC
Well, as it turns out, brltty will create the paths at runtime if
they're missing.  So I'll add some rmdirs to the ebuilds and
problem solved.
Comment 3 Chris Brannon (RETIRED) gentoo-dev 2014-09-11 22:18:30 UTC
Fixed in 5.1.  It's a false positive in 5.0.