From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 47B09139000 for ; Thu, 29 Jul 2021 20:32:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CE3A5E0948; Thu, 29 Jul 2021 20:32:38 +0000 (UTC) Received: from mail-oo1-f46.google.com (mail-oo1-f46.google.com [209.85.161.46]) (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 38818E092A for ; Thu, 29 Jul 2021 20:32:38 +0000 (UTC) Received: by mail-oo1-f46.google.com with SMTP id t1-20020a4a54010000b02902638ef0f883so1886494ooa.11 for ; Thu, 29 Jul 2021 13:32:38 -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=UsdKW3gkOdxpNan4ac9Msx0q4kmj6WntNzjj6lE0ddo=; b=ZJR/0zYyzdzniUVQIWNCDrRPx60VtXZRnhKZ07GFxVy5t5rXNGQkYlWw4GNJtH8+EJ Vbp949OnX+x1sKLzXF6T2TCTUYmJ1k+o92XpYdEJiHAwHjuQedBfvwuoK/T7/gWmAZYg VBtYd9joAVEmfk/C1+I6NZjXOU+Sagg2d9u/N6HlF2hDLdRJpLi8v1ySEKHmtkWvNDqE BJcoxZ7G1g3LPWzK2NTfCIZiXcJSRQIL6l6rTlGoKWRUtjY7KXj9OFvkImsr46BDXwr0 SScA6h6M/9lgLfRdD3KxsrVQG9CR/jrVtuJ9MDgpSVCyaAHl0xM1juyK5x1ONOiH4sy4 DaAA== X-Gm-Message-State: AOAM532d65GdMX7gJIxDK6LN2/q5ClrKZpQ/Vf8IzcTZ9+ixmGcEeEZe roiSx/2ODKTWhiLtVKtWa/aeE4nE82XZWqu1LUD+60qi X-Google-Smtp-Source: ABdhPJyCAL/Bf/HUjfr0szZ4iZat1NA69HjrhqlQ+F9huZ8MT353Uu5flPj7fn7AF8xwCTAa7IrkBIxARTVDS5U2Xxw= X-Received: by 2002:a4a:a385:: with SMTP id s5mr4120018ool.7.1627590757159; Thu, 29 Jul 2021 13:32:37 -0700 (PDT) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail 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: <20210725100344.34490089@digimed.co.uk> <60FD5869.2050406@youngman.org.uk> In-Reply-To: From: Rich Freeman Date: Thu, 29 Jul 2021 16:32:25 -0400 Message-ID: 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: bf56f347-c90d-4e9d-b17a-b7c6c78e585f X-Archives-Hash: d3a842c7368adc643d44c15957913828 On Thu, Jul 29, 2021 at 4:24 PM Martin Vaeth wrote: > > Rich Freeman wrote: > > The more I heard on this the more I tend to think that maybe it > > should either not be in that virtual or that it should itself depend > > on openrc/etc, or that qmail shouldn't depend on it. > > I strongly disagree. You have the same problem if you have any other > init system installed, even if just for trying. Portage *cannot* know > which init system you want to use, and, more general, which programs > you want to use. You must tell portage. The way to do this is to put > it into the world file. You completely misunderstood my message then, because I completely agree with everything you said and still maintain what I said. It has nothing to do with --depclean but with having correct dependencies. First, it doesn't sound like qmail actually requires daemontools, but simply happens to include a daemontools service config. A package shouldn't contain dependencies on a service manager unless it REALLY only works with that one service manager (and that doesn't just mean that nobody has bothered to set it up otherwise). We don't stick openrc dependencies in things simply because they weren't packaged with systemd units, and so on. Second, it sounds like daemontools requires openrc to run. So, if you ARE using daemontools as your service manager, and portage uninstalls openrc, then your system will break, because daemontools sounds like it actually requires openrc. That would make it a runtime dependency (if true). It isn't about portage trying to figure out which service manager you're using. It is about packages having the wrong dependencies. -- Rich