1 |
Hello, Neil. |
2 |
|
3 |
On Wed, Jul 21, 2021 at 21:27:05 +0100, Neil Bothwick wrote: |
4 |
> On Wed, 21 Jul 2021 22:13:50 +0200, tastytea wrote: |
5 |
|
6 |
> > > emerge included openrc (the only version of it on my system) in the |
7 |
> > > packages it planned to remove. It was kind enough to give me a |
8 |
> > > warning that this "might" do bad things, but I was somewhat shocked |
9 |
> > > to see it there at all. I might have accidentally typed 'y' instead |
10 |
> > > of 'n'. |
11 |
|
12 |
> > > Maybe the program wants revenge at me executing so seldomly. Or |
13 |
> > > something like that. |
14 |
|
15 |
> Well, it would help if you ran it more often. |
16 |
|
17 |
> > > But now, my question is how can I trust --depclean even a little bit |
18 |
> > > after that? Do I have to go through all the package versions, |
19 |
> > > manually removing the obsolete ones? There are several hundred. :-( |
20 |
|
21 |
|
22 |
> > I'm not sure why it would want to remove openrc, as far as I know it |
23 |
> > should be part of the @system set unless you're on a systemd profile. |
24 |
|
25 |
> It's the first dependency of virtual/system-manager, which in turn is |
26 |
> part of @system. I don't see why it would be removed unless you have |
27 |
> something else installed that satisfies the virtual , such as systemd or |
28 |
> runit. |
29 |
|
30 |
The virtual/service-manager ebuild looks like: |
31 |
|
32 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
33 |
# Copyright 1999-2021 Gentoo Authors |
34 |
# Distributed under the terms of the GNU General Public License v2 |
35 |
|
36 |
EAPI=7 |
37 |
|
38 |
DESCRIPTION="Virtual for various service managers" |
39 |
|
40 |
SLOT="0" |
41 |
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt" |
42 |
IUSE="kernel_linux" |
43 |
|
44 |
RDEPEND=" |
45 |
prefix-guest? ( >=sys-apps/baselayout-prefix-2.2 ) |
46 |
!prefix-guest? ( |
47 |
|| ( |
48 |
sys-apps/openrc |
49 |
kernel_linux? ( || ( |
50 |
sys-apps/systemd |
51 |
sys-process/runit |
52 |
virtual/daemontools <============================ |
53 |
) ) ) )" |
54 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
55 |
|
56 |
Maybe virtual/daemontools is what's doing it. I have |
57 |
sys-process/daemontools-0.76-r8 installed, and this ebuild satisfies |
58 |
virtual/daemontools. |
59 |
|
60 |
However daemontools is NOT (necessarily) an alternative to openrc, but a |
61 |
supplementary utility. (I need it for running a qmail variant.) So, |
62 |
maybe having daemontools in virtual/service-manager is a bug. |
63 |
|
64 |
Also, why is --depclean keeping the _last_ installed package which |
65 |
satisfies a virtual rather than the _first_ package which does? I |
66 |
thought only a single package satisfying a virtual was allowed. Maybe I |
67 |
used some sort of forcing flag to get daemontools installed, I can't |
68 |
remember, and there's nothing about this in my notes. |
69 |
|
70 |
I've got a similar situation with virtual/editor, where I've got vim |
71 |
installed, and --depclean wants to remove nano, but is warning me against |
72 |
it. |
73 |
|
74 |
So in these virtual packages, it seems by default the _last_ mentioned |
75 |
package in a || ( ... ) construct is the one --depclean keeps. It all |
76 |
has the feeling of things not having been properly thought through. |
77 |
|
78 |
> > You can record it in your @world set with `emerge --select --noreplace |
79 |
> > sys-apps/openrc`. That should prevent accidental removals. |
80 |
|
81 |
> It would, but it doesn't address the issue of why portage wants to remove |
82 |
> it. |
83 |
|
84 |
|
85 |
> -- |
86 |
> Neil Bothwick |
87 |
|
88 |
> mandelbug /man'del-buhg/ n. |
89 |
> [from the Mandelbrot set] A |
90 |
> bug whose underlying causes are so complex and obscure as to make |
91 |
> its behavior appear chaotic or even non-deterministic. This term |
92 |
> implies that the speaker thinks it is a Bohr bug, rather than |
93 |
> a heisenbug. See also schroedinbug. |
94 |
|
95 |
-- |
96 |
Alan Mackenzie (Nuremberg, Germany). |