From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-user+bounces-196514-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 5875F139337
	for <garchives@archives.gentoo.org>; Sun, 25 Jul 2021 19:54:48 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id C2542E0D98;
	Sun, 25 Jul 2021 19:54:41 +0000 (UTC)
Received: from mail-oi1-f181.google.com (mail-oi1-f181.google.com [209.85.167.181])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id CCE23E0D25
	for <gentoo-user@lists.gentoo.org>; Sun, 25 Jul 2021 19:54:40 +0000 (UTC)
Received: by mail-oi1-f181.google.com with SMTP id u25so8506220oiv.5
        for <gentoo-user@lists.gentoo.org>; Sun, 25 Jul 2021 12:54:40 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:mime-version:references:in-reply-to:from:date
         :message-id:subject:to;
        bh=K9FRtHQ2FDp53syJ6fWObPEHf+Wx8Da4W1aveNTQJfg=;
        b=EuqFq2binxu41y/OLdH35c/Fv/KrdT5ZSybyxIYc1wGNOhk7X2kQrbliTmKUNfx4lF
         xjiJ7XxgoVLaC47EIgQY/UnNJ3YBVJrwHb17NzCMHCkKa/wXvhK/JzDEsypCM5fXxo+L
         q1X5cp5CaxDkOatvumc2ygNN+ogOE6cTa01AWF+fE2VJqK8+Z4TCbqqYCODPf0q1a11Y
         X7lyCTnKovD7gRCyQGAd8HLHi6lLo2XSPT9XGOn8kcD6eEU2Jt2S7ttVIIOVq8FxhUxr
         23IIuyiEAymSDXUsol/LicPv1jMk+4/8F76/KnQ7RSvc3ZlgJbWHmmr5JMKLbZ5pdx8u
         1B4Q==
X-Gm-Message-State: AOAM530V+btizGzkce98BPdH1Wg4kmw7n8Wm4vpUvXPekCcoGHFX94FS
	/K9LhZsDuMrh/CqaEiXMwl+AGnh7Itk8R6CvZLyRukzC
X-Google-Smtp-Source: ABdhPJwCk7n+8yaLtCiOw2VtUgj2QXWabPkRwgv0jl4aRa++pbZRV9BHitGzplGjFxUAKCwztlXpWBbcNBZjIEEwse4=
X-Received: by 2002:a54:4690:: with SMTP id k16mr9008013oic.49.1627242878731;
 Sun, 25 Jul 2021 12:54:38 -0700 (PDT)
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
MIME-Version: 1.0
References: <YPwZ/mRRBpUjJu2R@ACM> <CAGfcS_mAJ+CizXPV4DX=QaPqw0wDRDqCxrgwbv=7LXvNqaM8mw@mail.gmail.com>
 <YPwn1XU7vI62EJ7t@ACM> <CAGfcS_=4smiLY6DwtHNwUR2Y9futmi-Xcz1N03kddntPUvjJ5g@mail.gmail.com>
 <YPx/rhG22TbWmhEL@ACM> <20210725100344.34490089@digimed.co.uk>
 <YP1PXBFeg3AoCgjR@ACM> <60FD5869.2050406@youngman.org.uk> <YP1qktH3+/mlp3ti@ACM>
 <slrnsfr3n5.ga9.martin@larch.invalid> <YP2oBUmKmhNdO08O@ACM>
In-Reply-To: <YP2oBUmKmhNdO08O@ACM>
From: Rich Freeman <rich0@gentoo.org>
Date: Sun, 25 Jul 2021 15:54:25 -0400
Message-ID: <CAGfcS_nM5pviRvAhyqfE2or9k8VgWk9e4y+57s-z=cE5H3SxgQ@mail.gmail.com>
Subject: Re: [gentoo-user] Re: --depclean wants to remove openrc. Yikes!
To: gentoo-user@lists.gentoo.org
Content-Type: text/plain; charset="UTF-8"
X-Archives-Salt: 6218bb99-f20d-405e-b70a-733f4673ab75
X-Archives-Hash: f59ea82dadbe197b37bb82dc4e3aef0a

On Sun, Jul 25, 2021 at 2:05 PM Alan Mackenzie <acm@muc.de> wrote:
>
> OK, so you're clever and you know this.  You know to do the
> couter-intuitive thing of putting @system packages into @world.  Less
> clever people like me follow the handbook, and assume that packages in
> @system are protected.  Putting init-systems into @world is an unnatural
> thing to do, and must be construed as a workaround for deficiencies in
> portage.

I think you're really conflating the package manager with how some
virtuals/ebuilds are configured.  Portage shouldn't have
service-manager-specific functionality.  Nor should it do things like
never uninstall things that packages say aren't needed just in case
you might still be using them, when you run it with --depclean which
basically is supposed to have it remove the stuff that isn't needed.

All protage does is follow the dependencies.

I think there is room for discussing whether daemontools should be
treated as a service manager by default.  I've never used it and can't
speak to how it is typically used.  You might want to talk to the
maintainers of it to get their thoughts.

> No, I did not make that mistake.  I simply assumed, not entirely
> consciously, that Gentoo would not destroy my system without me
> specifically asking it to.

It isn't like uninstalling openrc is going to "destroy your system".
Worst case you could always just pass init=/bin/bash or whatever to
the kernel and just reinstall it.  Granted, it wouldn't really be
welcome behavior.

> It would be saner still to be kept in the system file (whatever that
> might be).

I suppose you might not care to hear that I've advocated a few times
that the "system file" should disappear entirely and no packages
should get special treatment.  :)  Granted, that has more to do with
how assumed dependencies work in the repository.  I don't really have
a problem with confirmation before removing certain packages because
reinstalling them can be quite painful.  The service manager actually
is one of the easier ones to fix.  If you break the ability to
bootstrap gcc/etc that can be a real bugger to fix.

Really though posting on this list and successfully winning every
argument with everybody who replies is going to do zero to change this
behavior, because it is unlikely that anybody involved in this
particular issue reads this list.  It would make more sense to chat
with the daemontools maintainer and get their thoughts on how the
virtual ought to be configured as a starting point.  You could always
try for a second opinion/etc if that doesn't work.  Plus the
conversation would probably help you understand what their thinking
was.

-- 
Rich