From: Alan Mackenzie <acm@muc.de>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] --depclean wants to remove openrc. Yikes!
Date: Sat, 24 Jul 2021 21:01:34 +0000 [thread overview]
Message-ID: <YPx/rhG22TbWmhEL@ACM> (raw)
In-Reply-To: <CAGfcS_=4smiLY6DwtHNwUR2Y9futmi-Xcz1N03kddntPUvjJ5g@mail.gmail.com>
Hello again, Rich.
On Sat, Jul 24, 2021 at 10:58:55 -0400, Rich Freeman wrote:
> On Sat, Jul 24, 2021 at 10:46 AM Alan Mackenzie <acm@muc.de> wrote:
> > On Sat, Jul 24, 2021 at 10:14:20 -0400, Rich Freeman wrote:
> > > On Sat, Jul 24, 2021 at 9:47 AM Alan Mackenzie <acm@muc.de> wrote:
> > > > So in these virtual packages, it seems by default the _last_ mentioned
> > > > package in a || ( ... ) construct is the one --depclean keeps. It all
> > > > has the feeling of things not having been properly thought through.
> > > I'm not sure what the default is - most likely PMS just requires that
> > > one of them be kept.
> > PMS? Part of emerge?
> Package Manager Specification. Specifically:
> https://projects.gentoo.org/pms/8/pms.html#x1-760008.2.3
Ah, thanks!
> All it requires is that one be present. Portage can use whatever
> behavior it wishes to decide which to keep (assuming all installed
> packages have their deps).
> > It seems it's insisting on removing all packages but one which satisfy a
> > virtual. Maybe that is unwise, and it should keep _all_ such packages
> > which are currently installed.
> Well, the whole point of an any-of dependency is to only require one
> of them. Why force packages to stick around if they aren't needed?
I would say all packages in @system _are_ needed, unless the user
explicitly says otherwise.
> Now, whether daemontools actually should satisfy the dependency I
> don't want to comment on without doing more research. Surely though
> there is little point in having openrc and systemd and runit on the
> same system unless the user explicitly wants this (and if they do they
> can just stick them in @world).
The user might be switching between them, doing comparisons. (No, I
don't know if this is practical.) I don't know either whether it's
practical to boot Gentoo with just daemontools. But there are use cases
which require both openrc and daemontools on the same system, so there's
something not quite right about the service-manager ebuild, or emerge.
> > I'm considering submitting a bug to bugs.gentoo.org, requesting that
> > _all_ installed packages satisfying a virtual get kept. There is surely
> > something wrong when somebody who just wants to be a user (me) has to
> > read .ebuild files to get normal things done.
> I'd be shocked if that went anywhere. I'd think the better solution
> would be to have some kind of USE flag that tells daemontools whether
> it is used as an actual service manager or not, though that has its
> own issues (changing that state shouldn't require rebuilds/etc, but it
> would).
I think that would be solving the wrong problem. The fact is, it is
easy, far too easy, to shoot yourself in the foot here. As well as
openrc, --depclean also wanted to remove nano (the editor) for the same
reason. That might be serious for some people.
I have, in fact, submitted a bug on the "shoot yourself in the foot"
problem. So far it's got one reply which (possibly wilfully)
misunderstood the intent of the report, and said, much like you did "add
daemontools to @world and the problem's solved".
Maybe the answer is to regard --depclean as a tool for experts only,
since it is capable in ordinary innocent use of rendering a system
unusable.
> In any case, you probably should have a chat with the daemontools
> maintainer. I doubt the portage team would consider doing something
> like this as some kind of universal policy. It would impact hundreds
> of things that have any-of dependencies.
OK. The suggestion I made in my bug report was that @system packages
should be protected, much like @world packages are already. I don't see
the rationale in protecting @world, but not the more important @system.
> --
> Rich
--
Alan Mackenzie (Nuremberg, Germany).
next prev parent reply other threads:[~2021-07-24 21:01 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 [this message]
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
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=YPx/rhG22TbWmhEL@ACM \
--to=acm@muc.de \
--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