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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0C4FF15808B for ; Fri, 27 Sep 2024 00:09:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1227EE2B84; Fri, 27 Sep 2024 00:09:53 +0000 (UTC) Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BE1B1E29AB for ; Fri, 27 Sep 2024 00:09:51 +0000 (UTC) Received: by mail-pf1-x42f.google.com with SMTP id d2e1a72fcca58-71798a15ce5so2017659b3a.0 for ; Thu, 26 Sep 2024 17:09:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=psc.edu; s=google; t=1727395790; x=1728000590; darn=lists.gentoo.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=+S0C8DhFGIEcimAEybC0cBDoSeCq4AI+AhkIWbpF3bE=; b=MrVN9cTCAQMR8LzEAEG+1tP+IdS6YPSVyQciuv+fp2dQep0GLUlUdfBEcYDpI+t+BC FG3GS2F4E++L6LFG7zz6kkTrK+Bc+YY0RHPoFhkiDH5QQGUlI+2T+D9HrmcyfQWjZYHw eiRiImaCrMkwMzXobHlYXulh1AAykO28IrjV0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727395790; x=1728000590; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=+S0C8DhFGIEcimAEybC0cBDoSeCq4AI+AhkIWbpF3bE=; b=twgFoVmdgFbLOg4LP4Qxse3Fka6U4eUyPUR03+5biDyobmpDssWO05e/FK+m1s+xgI hkA9XHLIytkt8oG1JVsW2tPdicTmER0u9gkY0fgL3Y6by2/XiQzl92sQMN8c1t9IGTBO J6hWccyxJnvfHDbymi2TWj3RpI/GWAF9HvkFirksR9zNKU4qx5FfBLxnb4bQa3tI1r24 GlBddE3ZZ876GtIKxkNBN2AcbrNMMnfxI03Pe8likWQ0vXGXEbMWYR4FgXUHzZQjzg3G j6eU/CmrN3LPEp9zZ9hiSTjl5QynGoQDtV4iedGIWbQ33vmM4o8rCVkq6emLQXWz+D9U pGmw== X-Gm-Message-State: AOJu0Yyht7mVDYU4nFyzwLUEocMTZqtzaHy25aCkGBgx1HsYahZ1wRgH SrRF0IWAyq2igx6HdsgLm4QMcPj5DdgsD3SI2zBDoAgpGTqWSyvgTJwTr/KbAWLbZWTCAjHNf9L /SRgYtOMI4B1QWxPqtzDXxsUG1K3o74/ptpMDHB6YelRT6fYg X-Google-Smtp-Source: AGHT+IFkmABDBgdcEYY8ASBCIvgCsbtNkbT28MNuL3C88u91ynzXMt54e0pH8xFB3aGVUUE4DuPleEz22KwmCIQVoFY= X-Received: by 2002:a05:6a20:ce48:b0:1d4:e40b:8990 with SMTP id adf61e73a8af0-1d4fa1b840cmr2406094637.1.1727395790468; Thu, 26 Sep 2024 17:09:50 -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: <65e5de50-e053-46ff-be61-52f472d95025@gentoo.org> <2c966cf9-9cc5-4f51-96a4-9c0e537d5f95@gentoo.org> <8634lp1dpy.fsf@gentoo.org> In-Reply-To: <8634lp1dpy.fsf@gentoo.org> From: Mitchell Dorrell Date: Thu, 26 Sep 2024 20:09:39 -0400 Message-ID: Subject: Re: [gentoo-user] --depclean and openrc [Was: Wayland! Beware of!] To: gentoo-user@lists.gentoo.org Content-Type: multipart/alternative; boundary="0000000000007a593306230eac2d" X-Archives-Salt: 8eeefb59-36a8-4048-8034-b56789a1c144 X-Archives-Hash: ba7b7fa80e6842dc14f882266fb31560 --0000000000007a593306230eac2d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Sep 24, 2024, 07:41 Arsen Arsenovi=C4=87 wrote: > I do wonder if we should keep s6, runit and daemontools in that virutal > though, given that we can't boot them. Perhaps they'd be fine behind a > USE flag. I'll propose that. > So, this is a case where you definitely always need one of the dependencies, and sometimes you might want two, but the reason you might want the second one would not be to fulfill the purpose represented by the virtual. It sounds to me like a set of local USE flags would be perfect, with a REQUIRED_USE enforcing exactly-one-of to choose the dependency. The USE flag controls the choice, and if you pull in an alternative service manager for an unrelated reason, it doesn't change the USE flag, so it doesn't change the dependency which satisfies the virtual. The USE-disabled service managers are simply ignored. Would that work? Or is that exactly what you're planning to propose? I don't think using just one USE flag would be as safe, unless this is only an issue for daemontools. Tons of stuff tries to pull in systemd, but blockers generally prevent you from making a mess that way. -MD > --0000000000007a593306230eac2d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Tue, Sep 24, 2024, 07:41 Arsen Arsenovi=C4= =87 <arsen@gentoo.org> wrote:
I do wonder if we should keep s6, runit and daemontools in that virutal<= br> though, given that we can't boot them.=C2=A0 Perhaps they'd be fine= behind a
USE flag.=C2=A0 I'll propose that.

So, this is a case where you definite= ly always need one of the dependencies, and sometimes you might want two, b= ut the reason you might want the second one would not be to fulfill the pur= pose represented by the virtual.

It sounds to me like a set of local USE flags would be perfect, w= ith a REQUIRED_USE enforcing=C2=A0exactly-one-of to choose the dependency. = The USE flag controls the choice, and if you pull in an alternative service= manager for an unrelated reason, it doesn't change the USE flag, so it= doesn't change the dependency which satisfies the virtual. The USE-dis= abled service managers are simply ignored.

Would that work? Or is that exactly what you're plan= ning to propose?

I don&#= 39;t think using just one USE flag would be as safe, unless this is only an= issue for daemontools. Tons of stuff tries to pull in systemd, but blocker= s generally prevent you from making a mess that way.

-MD
--0000000000007a593306230eac2d--