Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 507102 - net-misc/dhcpcd - net.* service restart fails when /var/run is not a symlink to /run
Summary: net-misc/dhcpcd - net.* service restart fails when /var/run is not a symlink ...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-08 06:07 UTC by i.Dark_Templar
Modified: 2014-04-09 23:36 UTC (History)
2 users (show)

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


Attachments
dhcpcd-6.2.0-r1.ebuild.patch (dhcpcd-6.2.0-r1.ebuild.patch,533 bytes, patch)
2014-04-08 06:08 UTC, i.Dark_Templar
Details | Diff
dhcpcd-6.2.0-r1.ebuild.patch (dhcpcd-6.2.0-r1.ebuild.patch,870 bytes, patch)
2014-04-09 08:06 UTC, i.Dark_Templar
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description i.Dark_Templar 2014-04-08 06:07:28 UTC
If system didn't migrate to /run, then net.* services stop working if they are using dhcpcd.

Reproducible: Always

Steps to Reproduce:
1. make sure /var/run is not a symlink to /run (make it directory, for example, on tmpfs)
2. start net.* service which uses dhcpcd
3. stop this service
4. start it again
Actual Results:  
service start fails with message that dhcpcd is already running

Expected Results:  
service should start successfully

dhcpcd breaks FSH-compliant systems which didn't migrate to /run. The migration to /run is supposed to be FSH-compatible, isn't it? In case /var/run is symlink to /run, using /var/run would work fine for run-migrated systems. In case /var/run is not a symlink, it breaks non-migrated systems.
Comment 1 i.Dark_Templar 2014-04-08 06:08:36 UTC
Created attachment 374516 [details, diff]
dhcpcd-6.2.0-r1.ebuild.patch

patch to revert it back to using /var/run
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-04-08 19:13:51 UTC
Comment on attachment 374516 [details, diff]
dhcpcd-6.2.0-r1.ebuild.patch

We couldn't possibly go back (bug #332633).
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2014-04-08 19:17:43 UTC
(In reply to i.Dark_Templar from comment #0)

> dhcpcd breaks FSH-compliant systems which didn't migrate to /run. The
> migration to /run is supposed to be FSH-compatible, isn't it? In case
> /var/run is symlink to /run, using /var/run would work fine for run-migrated
> systems. In case /var/run is not a symlink, it breaks non-migrated systems.

Gentoo is not in the business of creating FHS compliant distros, last I checked.
Comment 4 SpanKY gentoo-dev 2014-04-08 19:49:38 UTC
if you have /run, then /var/run should be a symlink to it.  there isn't a lot (if any at all) of value in us trying to support both now.
Comment 5 i.Dark_Templar 2014-04-09 08:06:50 UTC
Created attachment 374584 [details, diff]
dhcpcd-6.2.0-r1.ebuild.patch
Comment 6 i.Dark_Templar 2014-04-09 08:08:11 UTC
(In reply to Jeroen Roovers from comment #3)
> Gentoo is not in the business of creating FHS compliant distros, last I
> checked.

(In reply to SpanKY from comment #4)
> if you have /run, then /var/run should be a symlink to it.  there isn't a
> lot (if any at all) of value in us trying to support both now.

Then I choose /var/run. It's a standard. /run is forced on me by openrc s#&t.

And how does using /var/run returns bug #332633? It is created runtime, I checked it.

As SpanKY wrote, if you have /run, then you have /var/run as symlink to /run. In this case using /var/run will do no harm. But if /var/run is not a symlink, then it just breaks everything. Are you breaking Gentoo on purpose?

I'd like to have it at least as USE-flag. I called it "fhs" which stands for "Filesystem Hierarchy Standard compliant". And you can break your own installation as much as you want.
Comment 7 SpanKY gentoo-dev 2014-04-09 19:23:28 UTC
sorry, but not a chance.  just use /run already.  if you dislike this, then maybe try FreeBSD.
Comment 8 Joshua Kinard gentoo-dev 2014-04-09 23:36:06 UTC
(In reply to i.Dark_Templar from comment #6)
> (In reply to Jeroen Roovers from comment #3)
> > Gentoo is not in the business of creating FHS compliant distros, last I
> > checked.
> 
> (In reply to SpanKY from comment #4)
> > if you have /run, then /var/run should be a symlink to it.  there isn't a
> > lot (if any at all) of value in us trying to support both now.
> 
> Then I choose /var/run. It's a standard. /run is forced on me by openrc s#&t.

/run is currently queued for consideration into FHS 3.0, and it's already used by Debian, so it's not something "forced" by OpenRC.  Refer to this bug, which has a rather detailed set of comments on the purpose of /run vs /var/run:
https://bugs.linuxfoundation.org/show_bug.cgi?id=718

Here's the master tracker bug for FHS 3.0:
https://bugs.linuxfoundation.org/show_bug.cgi?id=758

So, just consider us preparing for the eventual implementation of FHS 3.0 -- Gentoo is a bleeding edge distribution, after all :)