From: Eli Schwartz <eschwartz@gentoo.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Wayland! Beware of!
Date: Mon, 23 Sep 2024 18:54:50 -0400 [thread overview]
Message-ID: <2c966cf9-9cc5-4f51-96a4-9c0e537d5f95@gentoo.org> (raw)
In-Reply-To: <ZvHm-Nuykbek8ma0@MAC.fritz.box>
[-- Attachment #1.1: Type: text/plain, Size: 2564 bytes --]
On 9/23/24 6:08 PM, Alan Mackenzie wrote:
>> Do you have that little faith in the Gentoo Developers, that you think
>> we'd make a USE flag change that made everyone's systems suddenly break?
>
> It happens, from time to time, by accident. For example, emerge
> --depclean on my system wants to unmerge openrc. Not a deliberate move
> by the developers, just some accident. But it's the reason I don't do
> emerge --depclean, ever.
This should not generally be possible. The @system set contains
virtual/service-manager, so you cannot depclean that.
$ emerge -pvc systemd
Calculating dependencies... done!
sys-apps/systemd-255.11 pulled in by:
[...]
virtual/service-manager-1-r2 requires sys-apps/systemd
[...]
$ emerge -pvc virtual/service-manager
Calculating dependencies... done!
virtual/service-manager-1-r2 pulled in by:
@system requires virtual/service-manager
And this works the same in an openrc chroot as well!
# emerge -pvc virtual/service-manager
Calculating dependencies... done!
virtual/service-manager-1-r2 pulled in by:
@system requires virtual/service-manager
# emerge -pvc openrc
Calculating dependencies... done!
sys-apps/openrc-0.54.2 pulled in by:
net-misc/netifrc-0.7.8-r1 requires >=sys-apps/openrc-0.15
virtual/service-manager-1-r2 requires sys-apps/openrc
It does that using an "any-of" dependency:
# cat /var/db/pkg/virtual/service-manager-1-r2/RDEPEND
|| ( sys-apps/openrc sys-apps/openrc-navi sys-apps/s6-rc
sys-apps/systemd sys-process/runit virtual/daemontools )
So, @system requires you to have any one of:
- openrc
- openrc-navi (a testing fork with openrc user services)
- s6
- systemd
- runit
- daemontools
It's possible you have installed another one of these packages too. If
you do, then virtual/service-manager will still be satisfied, and it
will allow you to depclean openrc.
In theory, one should not have multiple init systems installed. And
openrc is the preferred satisfier, so if you use `emerge --depclean` it
will try to depclean the other package, not openrc. But you can depclean
openrc itself in that case, since portage doesn't know which init system
you intend to keep.
Even in this case it emits a warning:
!!! 'sys-apps/openrc' (virtual/service-manager) is part of your system
profile.
!!! Unmerging it may be damaging to your system.
to make sure you are fully aware that you intend to depclean a package
that *might* be the wrong one.
--
Eli Schwartz
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]
next prev parent reply other threads:[~2024-09-23 22:54 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-23 20:14 [gentoo-user] Wayland! Beware of! Alan Mackenzie
2024-09-23 21:11 ` Eli Schwartz
2024-09-23 22:08 ` Alan Mackenzie
2024-09-23 22:54 ` Eli Schwartz [this message]
2024-09-24 11:30 ` [gentoo-user] --depclean and openrc [Was: Wayland! Beware of!] Alan Mackenzie
2024-09-24 11:40 ` Arsen Arsenović
2024-09-24 12:34 ` [gentoo-user] --depclean and openrc Alan Mackenzie
2024-09-24 15:24 ` Eli Schwartz
2024-09-24 18:15 ` Alan Mackenzie
2024-09-27 0:09 ` [gentoo-user] --depclean and openrc [Was: Wayland! Beware of!] Mitchell Dorrell
2024-09-24 15:15 ` Eli Schwartz
2024-09-24 18:53 ` Alan Mackenzie
2024-09-24 19:36 ` Eli Schwartz
2024-10-25 19:22 ` Alan Mackenzie
2024-10-26 3:10 ` Walter Dnes
2024-10-27 1:53 ` Eli Schwartz
2024-10-27 22:52 ` Alan Mackenzie
2024-10-27 23:14 ` Eli Schwartz
2024-09-25 0:32 ` Matt Jolly
2024-09-24 0:43 ` [gentoo-user] Wayland! Beware of! Michael Orlitzky
2024-09-24 0:52 ` Mitchell Dorrell
2024-09-24 1:13 ` Matt Jolly
2024-09-24 1:52 ` Eli Schwartz
2024-09-24 9:46 ` Mitchell Dorrell
2024-09-25 0:14 ` Matt Jolly
2024-09-24 10:05 ` Dr Rainer Woitok
2024-09-24 22:00 ` Walter Dnes
2024-09-25 1:42 ` Eli Schwartz
2024-09-25 10:00 ` Walter Dnes
2024-09-25 11:53 ` Arsen Arsenović
2024-09-25 22:21 ` Walter Dnes
2024-09-26 0:25 ` Eli Schwartz
2024-09-26 5:08 ` Walter Dnes
2024-09-26 19:18 ` James Cloos
2024-09-25 14:26 ` Eli Schwartz
2024-09-25 14:40 ` jay
2024-09-26 0:19 ` Michael Orlitzky
2024-09-23 21:12 ` Arsen Arsenović
2024-09-23 21:20 ` Wol
2024-09-23 22:53 ` karl
2024-09-24 7:10 ` Wols Lists
2024-09-24 18:32 ` What is what (Re: [gentoo-user] Wayland! Beware of!) karl
2024-09-24 23:44 ` 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=2c966cf9-9cc5-4f51-96a4-9c0e537d5f95@gentoo.org \
--to=eschwartz@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