public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Rich Freeman <rich0@gentoo.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] --depclean wants to remove openrc. Yikes!
Date: Sun, 25 Jul 2021 20:52:49 -0400	[thread overview]
Message-ID: <CAGfcS_=wKcPKORyPHUr671k3xEzBj7+f1yCk7NCq-pDwKeGBUQ@mail.gmail.com> (raw)
In-Reply-To: <9e22b33c28f1be540668bf5fa7d56028c8cffd37.camel@gentoo.org>

On Sun, Jul 25, 2021 at 8:39 PM Michael Orlitzky <mjo@gentoo.org> wrote:
>
> This is indeed a bug, but not the ones that have been suggested. The
> underlying problem is that the DJB programs (mail-mta/netqmail, but
> also net-dns/djbdns, for example) require a particular service manager.

Is it actually using daemontools as a service manager?  I am not
familiar enough with it to say.

When I skimmed the daemontools wiki page I got the impression that it
was intended to be used in conjunction with openrc.  Or at least that
is one way it can be used.  Of course, if this is the case it
shouldn't be in that virtual, or if it is then it should itself pull
in openrc as a dependency (assuming it can't also be used with
systemd).

I'd have to spend a lot more time than I care to looking into
daemontools to really comment on that.

> When OpenRC is installed only as a side effect of being listed first in
> virtual/service-manager, it becomes "redundant" after one of the DJB
> programs pulls in daemontools, and portage will offer to remove OpenRC.

So, if it is intended as a service manager, it really shouldn't list
it as a dependency.  After all, we don't go sticking
openrc/systemd/runit in every package that provides configs for these.

> We should have made them support OpenRC and systemd.

Well, this at least is the subject of a Council decision: no package
has to support ANY service manager, nor can package maintainers block
adding support for service managers to a package.

Obviously at this point most packages support openrc/systemd, but they
aren't actually required to.

> With all of that said, maybe in the Handbook we should tell OpenRC
> users to "emerge openrc", in case some other not-mutually-exclusive
> init system is ever pulled in by another program.

So, packages shouldn't be pulling in service managers in general.
That would be a bug if it is the case.  If daemontools does things
other than service management then it might not be an issue, but of
course in that case we probably do need to be careful about treating
it as a service manager automatically.

If a package happens to only supply a systemd service unit then it
shouldn't just pull in systemd because obviously anybody who uses the
package must want to reconfigure their entire host...

It isn't unheard of to have packages that happen to only support one
service manager (though much less common now) - these pacakges should
never just list that service manager as a dependency.  After all,
users can just add their own service units/init.d's/whatevers.

I don't want to say that qmail shouldn't list daemontools without
knowing more about the situation, but that is why I suggested talking
to the maintainer as a first step...

-- 
Rich


  reply	other threads:[~2021-07-26  0:53 UTC|newest]

Thread overview: 66+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-21 20:06 [gentoo-user] --depclean wants to remove openrc. Yikes! Alan Mackenzie
2021-07-21 20:13 ` tastytea
2021-07-21 20:27   ` Neil Bothwick
2021-07-24 13:47     ` Alan Mackenzie
2021-07-24 14:14       ` Rich Freeman
2021-07-24 14:46         ` Alan Mackenzie
2021-07-24 14:58           ` Rich Freeman
2021-07-24 21:01             ` Alan Mackenzie
2021-07-25  9:03               ` Neil Bothwick
2021-07-25 11:47                 ` Alan Mackenzie
2021-07-25 12:26                   ` Wols Lists
2021-07-25 12:46                     ` tastytea
2021-07-25 13:49                       ` Dale
2021-07-25 13:59                         ` Wols Lists
2021-07-25 14:24                           ` Dale
2021-07-25 13:43                     ` Alan Mackenzie
2021-07-25 14:20                       ` Dale
2021-07-25 15:40                       ` Neil Bothwick
2021-07-25 16:31                         ` [gentoo-user] " Martin Vaeth
2021-07-25 17:25                         ` [gentoo-user] " Alan Mackenzie
2021-07-25 22:03                           ` Neil Bothwick
2021-07-25 16:18                       ` [gentoo-user] " Martin Vaeth
2021-07-25 18:05                         ` Alan Mackenzie
2021-07-25 19:54                           ` Rich Freeman
2021-07-26 19:19                             ` Alan Mackenzie
2021-07-26 20:17                               ` Rich Freeman
2021-07-29 20:24                                 ` Martin Vaeth
2021-07-29 20:32                                   ` Rich Freeman
2021-07-29 21:38                                     ` Martin Vaeth
2021-07-29 22:58                                       ` Rich Freeman
2021-07-25 22:32                           ` Martin Vaeth
2021-07-26 19:01                             ` Alan Mackenzie
2021-07-27  9:28                               ` Dr Rainer Woitok
2021-07-27 20:02                                 ` Alan Mackenzie
2021-07-27 20:18                                   ` Neil Bothwick
2021-07-27 20:32                                     ` Michael Orlitzky
2021-07-27 20:58                                       ` Neil Bothwick
2021-07-27 21:06                                         ` Michael Orlitzky
2021-08-02 10:00                                   ` Dr Rainer Woitok
2021-08-02 11:54                                     ` Arve Barsnes
2021-08-02 13:33                                       ` Dr Rainer Woitok
2021-08-03 11:45                                         ` Alec Ten Harmsel
2021-08-03 12:44                                           ` Neil Bothwick
2021-08-04 10:52                                             ` Dr Rainer Woitok
2021-08-04 11:57                                               ` Philip Webb
2021-08-04 12:39                                                 ` Nuno Silva
2021-08-04 18:38                                                 ` Walter Dnes
2021-08-05  8:10                                                 ` Dr Rainer Woitok
2021-08-06  7:33                                                   ` Neil Bothwick
2021-08-06  8:55                                                     ` Dr Rainer Woitok
2021-07-29 21:15                               ` Martin Vaeth
2021-07-29 21:29                                 ` Grant Edwards
2021-07-29 21:46                                   ` Martin Vaeth
2021-07-29 22:55                                   ` Neil Bothwick
2021-07-30 18:30                                     ` Martin Vaeth
2021-07-30 20:26                                       ` Neil Bothwick
2021-07-26  0:39                       ` [gentoo-user] " Michael Orlitzky
2021-07-26  0:52                         ` Rich Freeman [this message]
2021-07-26  1:30                           ` Michael Orlitzky
2021-07-25 12:44                   ` Dale
2021-07-25 13:22                   ` Neil Bothwick
2021-07-25 13:40                     ` Dale
2021-07-24 15:03           ` Dale
2021-07-24 21:09             ` Alan Mackenzie
2021-07-24 21:22               ` Dale
2021-07-25  7:09               ` Wols Lists

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='CAGfcS_=wKcPKORyPHUr671k3xEzBj7+f1yCk7NCq-pDwKeGBUQ@mail.gmail.com' \
    --to=rich0@gentoo.org \
    --cc=gentoo-user@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