From: William Hubbs <williamh@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] rfc: making sysvinit optional
Date: Wed, 10 Jul 2019 22:02:07 -0500 [thread overview]
Message-ID: <20190711030207.GA23937@linux1.home> (raw)
In-Reply-To: <CAGfcS_nu1dT-KhytwCM4GD=uUcbLWC2ZZqdReZjfuYVhREQt7Q@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2193 bytes --]
After chatting with Rich a bit, I'm going to reply here.
On Wed, Jul 10, 2019 at 08:17:17PM -0400, Rich Freeman wrote:
> On Wed, Jul 10, 2019 at 8:03 PM William Hubbs <williamh@gentoo.org> wrote:
> >
> > On Wed, Jul 10, 2019 at 07:30:57PM -0400, Michael Orlitzky wrote:
> > > On 7/10/19 7:16 PM, William Hubbs wrote:
> > > > 3. add a sysvinit use flag to openrc, which will be off by default. When
> > > > it is on, openrc will block sysvinit since it will provide /sbin/init
> > > > and /sbin/shutdown.
> > > >
> > >
> > > This logic, or maybe the name of the flag, sounds backwards to me. I
> > > only get sysvinit when USE=sysvinit is NOT set?
> >
> > If you don't set sys-apps/openrc[sysvinit], you would have /sbin/init
> > and /sbin/shutdown as they are now, from sys-apps/sysvinit.
> >
>
> Systemd already has IUSE=+sysv-utils which has a similar function:
> [- ] sysv-utils
> sys-apps/systemd: Install sysvinit compatibility symlinks and
> manpages for init, telinit, halt, poweroff, reboot, runlevel, and
> shutdown
Actually, I like the name sysv-utils for this use flag; that seems to
describe better what it does.
> RDEPEND="sysv-utils? ( !sys-apps/sysvinit )
> !sysv-utils? ( sys-apps/sysvinit )"
I like this, but the second branch (!sysv-utils) is not really needed,
because if we put sysvinit as the first RDEPEND of virtual/init, we
don't need to worry about installing it through rdepend in openrc. We
can also add sys-apps/openrc as an rdepend of sys-apps/sysvinit
possibly. I'll take a look at that.
> sysv-utils seems like a generic enough flag and I'd suggest that it
> would be appropriate to use for openrc as well if it can install its
> own implementation of these tools.
This is where I want to go. I don't want to install the openrc
implementations by default, because I want to make it easy to dual-boot
a system, like what systemd does by default if you don't have the
sysv-utils use flag turned on.
>
> (For those who aren't aware, systemd is compatible with the sysvinit
> versions of these tools, so you can run systemd with sysvinit
> installed.)
>
> --
> Rich
>
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
next prev parent reply other threads:[~2019-07-11 3:02 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-10 20:25 [gentoo-dev] rfc: making sysvinit optional William Hubbs
2019-07-10 21:48 ` William Hubbs
2019-07-10 23:16 ` William Hubbs
2019-07-10 23:30 ` Michael Orlitzky
2019-07-11 0:03 ` William Hubbs
2019-07-11 0:17 ` Michael Orlitzky
2019-07-11 3:14 ` William Hubbs
2019-07-11 13:01 ` Michael Orlitzky
2019-07-11 15:43 ` William Hubbs
2019-07-11 16:11 ` Michael Orlitzky
2019-07-11 17:03 ` William Hubbs
2019-07-11 0:17 ` Rich Freeman
2019-07-11 3:02 ` William Hubbs [this message]
2019-07-11 13:42 ` Rich Freeman
2019-07-11 15:56 ` William Hubbs
2019-07-11 16:46 ` Rich Freeman
2019-07-11 17:22 ` William Hubbs
2019-07-11 17:38 ` Rich Freeman
2019-07-11 15:39 ` Mike Gilbert
2019-07-11 16:43 ` William Hubbs
2019-07-11 0:19 ` William Hubbs
2019-07-13 17:51 ` William Hubbs
2019-07-14 13:54 ` Mike Gilbert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190711030207.GA23937@linux1.home \
--to=williamh@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox