From: Alan Mackenzie <acm@muc.de>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: --depclean wants to remove openrc. Yikes!
Date: Tue, 27 Jul 2021 20:02:07 +0000 [thread overview]
Message-ID: <YQBmP0nKc2u/7UjJ@ACM> (raw)
In-Reply-To: <24831.53669.190993.493758@tux.local>
Hello, Rainer.
On Tue, Jul 27, 2021 at 11:28:05 +0200, Dr Rainer Woitok wrote:
> Alan,
> On Monday, 2021-07-26 19:01:21 +0000, you wrote:
> > ...
> > The warning was not very explicit. An explicit warning would have said
> > "--depclean is capable of removing critical system packages". As it
> > happened I didn't ignore the warning. But some people might.
> > You seem to see nothing wrong with an OS being one keypress away from
> > destroying itself. I do.
> You mentioned in an earlier post that you not only got this warning for
> "openrc" but also for "nano". I remember that after my first Gentoo in-
> stall ever, I explicitly emerged the packages "vim" (as an emergency
> fallback) and -- more importantly -- "XEmacs" which were thus added to
> "@world".
Just as a matter of interest (I am an Emacs maintainer), are you still
using XEmacs?
> I then ran my very first "emerge --ask --depclean" and got that
> warning about "nano". I do not remember the exact wording, but --
> honestly -- I was startled. Not very explicit? When "emerge" is
> tell- ing me that removing "nano" might result in my system becoming
> unusable? Or something to that effect? Being a Gentoo novice then,
> I immediately replied "n", researched the webs, and then with a bit
> more knowledge and conscience I rerun "emerge --ask --depclean" and
> bravely typed "y".
> You were startled, too, when reading that warning, so where exactly is
> the problem? Had I wanted a third editor I'd have stuffed "nano" into
> "@world", but I didn't. Since you want "openrc", you should.
The problem is that the documentation doesn't warn about the potential
loss of critical packages. Only runtime messages which could easily
have scrolled off the screen. Heck, when I first ran --depclean, there
were something like 220 packages to be removed. It would be very easy
to have missed openrc. (Shameless plug) only my kernel patch which
restores soft scroll enabled me to scroll back and see the warning.
The other problem is that, as (I think) Scott Adams, the creator of
Dilbert, has said, everybody is an idiot. Just not 24 hours a day. The
very fact that --depclean can remove the active init system means it
will catch somebody at a time when he is being an idiot.
I know I'm repeating myself, but I don't think an OS should ever delete
critical parts of itself unless explicitly requested by the user.
Perhaps not even then, but I wouldn't go that far. The fact that
portage does this means IMHO that something has gone wrong. Maybe
portage is too complicated, and people aren't aware of the lack of
safety catches.
> And yes, some people tend to ignore warnings. In particular, if there
> are just too many of them.
Yes. I wonder just how many people really do read the "Waschzettel"
which accompanies all pharmaceuticals in Germany? It takes some
commitment and patience to do so, but might be very important.
> I remember when back in the old days plenty of sources suggested to
> put "alias rm='rm -i'" into one's profile. I always objected to
> this, because you'd get so used to typing "y" to the plethora of
> questions that you'd have an excellent chance to miss the one file
> which would have been worth retaining.
> So the most important rule when working with computers still is "Read
> carefully, think carefully, then type carefully". More warnings, bigger
> fonts or red colour simply don't cut it. Or are you skimming your "gcc"
> compilation logs after doing your weekly Gentoo upgrade for every warn-
> ing in order to then check the source code to see whether or not you
> should do anything about it? I don't.
OK. Respectfully, I think I disagree with you here. Who'd have thought
it? Two Gentoo users disagreeing about something. ;-)
> My two cents ...
Much appreciated, thanks.
> Sincerely,
> Rainer
--
Alan Mackenzie (Nuremberg, Germany).
next prev parent reply other threads:[~2021-07-27 20:02 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 [this message]
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=YQBmP0nKc2u/7UjJ@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