1 |
After chatting with Rich a bit, I'm going to reply here. |
2 |
|
3 |
On Wed, Jul 10, 2019 at 08:17:17PM -0400, Rich Freeman wrote: |
4 |
> On Wed, Jul 10, 2019 at 8:03 PM William Hubbs <williamh@g.o> wrote: |
5 |
> > |
6 |
> > On Wed, Jul 10, 2019 at 07:30:57PM -0400, Michael Orlitzky wrote: |
7 |
> > > On 7/10/19 7:16 PM, William Hubbs wrote: |
8 |
> > > > 3. add a sysvinit use flag to openrc, which will be off by default. When |
9 |
> > > > it is on, openrc will block sysvinit since it will provide /sbin/init |
10 |
> > > > and /sbin/shutdown. |
11 |
> > > > |
12 |
> > > |
13 |
> > > This logic, or maybe the name of the flag, sounds backwards to me. I |
14 |
> > > only get sysvinit when USE=sysvinit is NOT set? |
15 |
> > |
16 |
> > If you don't set sys-apps/openrc[sysvinit], you would have /sbin/init |
17 |
> > and /sbin/shutdown as they are now, from sys-apps/sysvinit. |
18 |
> > |
19 |
> |
20 |
> Systemd already has IUSE=+sysv-utils which has a similar function: |
21 |
> [- ] sysv-utils |
22 |
> sys-apps/systemd: Install sysvinit compatibility symlinks and |
23 |
> manpages for init, telinit, halt, poweroff, reboot, runlevel, and |
24 |
> shutdown |
25 |
|
26 |
Actually, I like the name sysv-utils for this use flag; that seems to |
27 |
describe better what it does. |
28 |
|
29 |
> RDEPEND="sysv-utils? ( !sys-apps/sysvinit ) |
30 |
> !sysv-utils? ( sys-apps/sysvinit )" |
31 |
|
32 |
I like this, but the second branch (!sysv-utils) is not really needed, |
33 |
because if we put sysvinit as the first RDEPEND of virtual/init, we |
34 |
don't need to worry about installing it through rdepend in openrc. We |
35 |
can also add sys-apps/openrc as an rdepend of sys-apps/sysvinit |
36 |
possibly. I'll take a look at that. |
37 |
|
38 |
> sysv-utils seems like a generic enough flag and I'd suggest that it |
39 |
> would be appropriate to use for openrc as well if it can install its |
40 |
> own implementation of these tools. |
41 |
|
42 |
This is where I want to go. I don't want to install the openrc |
43 |
implementations by default, because I want to make it easy to dual-boot |
44 |
a system, like what systemd does by default if you don't have the |
45 |
sysv-utils use flag turned on. |
46 |
|
47 |
> |
48 |
> (For those who aren't aware, systemd is compatible with the sysvinit |
49 |
> versions of these tools, so you can run systemd with sysvinit |
50 |
> installed.) |
51 |
> |
52 |
> -- |
53 |
> Rich |
54 |
> |