Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] --depclean wants to remove openrc. Yikes!
Date: Sun, 25 Jul 2021 13:49:34
Message-Id: 7f456df4-65d1-f224-72c7-cf9d1dd27016@gmail.com
In Reply to: Re: [gentoo-user] --depclean wants to remove openrc. Yikes! by tastytea
1 tastytea wrote:
2 > On 2021-07-25 13:26+0100 Wols Lists <antlists@××××××××××××.uk> wrote:
3 >
4 >> On 25/07/21 12:47, Alan Mackenzie wrote:
5 >>>> They are, @system is a set of packages and nothing it it will be
6 >>>>> depcleaned. However, openrc is not part of @system, the virtual
7 >>>>> is.
8 >>> Ah, that's it. So we have critical system packages which aren't
9 >>> part of @system. I think openrc is a critical system package.
10 >>>
11 >> Well, it's not installed on my new system. I doubt it's installed on
12 >> any new-ish gentoo-gnome systems. So openrc itself can't be critical.
13 >>
14 >> It may be critical for *your* system ... :-)
15 >>
16 >> Let's rephrase it - "openrc is one of the (optional) packages that
17 >> satisfied a critical dependency". Your problem is caused because you
18 >> have explicitly installed an alternate package that satisfies the same
19 >> critical dependency.
20 > Maybe OpenRC should come pre-recorded into @world on profiles that
21 > default to it. If I switch to another init system I can explicitly
22 > uninstall OpenRC. Forgetting to uninstall it is no big deal.
23 > Accidentally uninstalling it makes my system unbootable.
24 >
25
26
27 From my understanding, nothing should be in @world by default.  The bare
28 necessities are in @system and what the user installs is in @world.  I
29 haven't downloaded a starge3 tarball in ages to look but I'm pretty sure
30 the world file comes empty. 
31
32 The problem here is that a user installed a package outside of
33 emerge/portage's knowledge.  At that point, the user is responsible for
34 making sure what that package depends on is installed, at the correct
35 version etc etc.  Since emerge/portage has no knowledge of the package,
36 it can't making decisions about that package or what it depends on. 
37
38 Neil did post a good solution tho.  It's easy enough and will at least
39 tell emerge/portage that the packages are needed even if it doesn't know
40 why. 
41
42 Dale
43
44 :-)  :-) 

Replies

Subject Author
Re: [gentoo-user] --depclean wants to remove openrc. Yikes! Wols Lists <antlists@××××××××××××.uk>