Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 484442 - sys-apps/baselayout: should always create /var/run->/run symlink
Summary: sys-apps/baselayout: should always create /var/run->/run symlink
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on: 361349
Blocks:
  Show dependency tree
 
Reported: 2013-09-10 03:22 UTC by Matthew Thode ( prometheanfire )
Modified: 2016-08-26 18:29 UTC (History)
5 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 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2013-09-10 03:22:16 UTC
So many packages use /var/run but don't document it in the ebuild (it's created dynamically via the init script) that I think we should simply provide it in the baselayout until someone wants to verify every package in tree has the correct initscript.

I encountered the error on the upgrade of autofs that removes /var/run, on a running system.

Reproducible: Always

Steps to Reproduce:
1. update to a system that has no 'need' for /var/run
2. sit back and watch
Comment 1 Mike Gilbert gentoo-dev 2013-09-10 03:29:10 UTC
A simple "keepdir /var/run" in src_install should do the trick. This will create an entry in vdb which will keep portage from unmerging the symlink.
Comment 2 Yixun Lan archtester gentoo-dev 2013-09-10 12:36:09 UTC
(In reply to Matthew Thode ( prometheanfire ) from comment #0)
there is already one bug for tracking this, see #332633
Comment 3 SpanKY gentoo-dev 2013-09-13 01:49:05 UTC
baselayout already initializes /var/run with a symlink to /run when USE=build.  but i guess this is a feature of the incomplete work from bug 361349.
Comment 4 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2013-09-13 02:22:23 UTC
ya, this bug should probably be a blocker on that bug.  Don't think it's my place to add it, but I will unless someone else does or someone objects (tomorrow)
Comment 5 Oleh 2014-03-21 06:14:22 UTC
it's been long "tomorrow", any updates on this?
Comment 6 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2014-03-21 06:19:29 UTC
I added it as a blocker a long time ago
Comment 7 Oleh 2014-03-21 09:57:47 UTC
great, because there was no reply about it :)
Comment 8 Austin Wright 2014-08-15 10:36:19 UTC
There's at least a few people who are finding their /var/run symlink disappearing due to it (I suppose) being orphaned during a package upgrade. See my Bug #519620.

It appears that, as more programs move to /run, the likelihood of /var/run being orphaned when it's being used increased. Is this a correct observation, and would this task solve the issue?
Comment 9 Mike Gilbert gentoo-dev 2014-08-15 14:03:22 UTC
My suggestion from comment 1 is still valid.

Initializing it in pkg_preinst is not good enough here; we need a vardb entry or portage will remove it when all packages referencing /var/run/* have been unmerged.
Comment 10 Samuli Suominen (RETIRED) gentoo-dev 2014-08-15 15:10:17 UTC
Take this from the person who added the ebuild workaround for this year ago :(
The pkg_* solution was always meant to be temporary (like a hotfix due to maintainers being unresponsive)
Meant to be pruned from the ebuild once the baselayout build-sys includes /run, and symlink to it from /var/run, properly
Seems like we should reassign baselayout to maintainer-needed? (Being sarcastic here, but for real, it's currently 100% abandoned)
Comment 11 Mike Gilbert gentoo-dev 2014-08-15 15:25:58 UTC
(In reply to Samuli Suominen from comment #10)

Err... last I checked it is in the base-system herd, of which you are a maintainer.

So what are you waiting for? ^_^
Comment 12 William Hubbs gentoo-dev 2014-08-15 17:22:24 UTC
And I have been commiting to it recenty; I am going to do a new release after OpenRC is out the door today.
Comment 13 Mike Gilbert gentoo-dev 2015-02-20 22:45:30 UTC
The major concern of portage unmerging /var/run has probably been resolved in another bug.

https://bugs.gentoo.org/show_bug.cgi?id=519620#c5
Comment 14 William Hubbs gentoo-dev 2016-08-26 18:29:15 UTC
This has been set up for some time in baselayout, so it will be in 2.3.
The commits are bc72d8bf and 3611dc87.