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 (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4838D158042 for ; Sun, 27 Oct 2024 23:14:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 093A8E088A; Sun, 27 Oct 2024 23:14:11 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8EE07E085B for ; Sun, 27 Oct 2024 23:14:10 +0000 (UTC) Message-ID: <912035d9-9393-4cd4-a90a-9adff1e78538@gentoo.org> Date: Sun, 27 Oct 2024 19:14:05 -0400 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 User-Agent: Mozilla Thunderbird Subject: Re: [gentoo-user] --depclean and openrc [Was: Wayland! Beware of!] To: gentoo-user@lists.gentoo.org References: <65e5de50-e053-46ff-be61-52f472d95025@gentoo.org> <2c966cf9-9cc5-4f51-96a4-9c0e537d5f95@gentoo.org> <4219bce4-f14f-4c5d-a52a-a303dd583907@gentoo.org> Content-Language: en-US From: Eli Schwartz Autocrypt: addr=eschwartz@gentoo.org; keydata= xjMEZmeRNBYJKwYBBAHaRw8BAQdAYNZ7pUDWhx1i2f3p6L2ZLu4FcY18UoeGC04Gq/khqwfN I0VsaSBTY2h3YXJ0eiA8ZXNjaHdhcnR6QGdlbnRvby5vcmc+wpYEExYKAD4WIQTvUdMIsc4j CIi+DYTqQj6ToWND8QUCZoRL+gIbAwUJBKKGAAULCQgHAwUVCgkICwUWAgMBAAIeBQIXgAAK CRDqQj6ToWND8aB5AP9r4kB691nNtNwKkdRiOdl7/k6WYzokvHvDamXxRJ0I+gEAjZqR5V8y mfR3fy2Z+r2Joeqdt3CIv5IwPs64spBvigLOOARmZ5E0EgorBgEEAZdVAQUBAQdATT46Z06b 1X9xjXFCYFxmq/Tj3tSEKZInDWTpoHQp4l8DAQgHwn4EGBYKACYWIQTvUdMIsc4jCIi+DYTq Qj6ToWND8QUCZmeRNAIbDAUJBKKGAAAKCRDqQj6ToWND8a2RAP40KPfbfoiZAJW5boFmFJ3G TUBDJRh9CWHyaPqq2PN+0wD/R07oLzfnJUN209mzi9TuTuHjeZybysyqXSw4MAxkMAY= In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------mYeY5MY5Z0zoW7E18UPkDPWh" X-Archives-Salt: 3127bbe8-455f-4f04-a7c3-7d746bd8379d X-Archives-Hash: 622d360467e2d3433f2ae5cec0815a38 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------mYeY5MY5Z0zoW7E18UPkDPWh Content-Type: multipart/mixed; boundary="------------6w7lE3FqibSYNP00LQeHmGrB"; protected-headers="v1" From: Eli Schwartz To: gentoo-user@lists.gentoo.org Message-ID: <912035d9-9393-4cd4-a90a-9adff1e78538@gentoo.org> Subject: Re: [gentoo-user] --depclean and openrc [Was: Wayland! Beware of!] References: <65e5de50-e053-46ff-be61-52f472d95025@gentoo.org> <2c966cf9-9cc5-4f51-96a4-9c0e537d5f95@gentoo.org> <4219bce4-f14f-4c5d-a52a-a303dd583907@gentoo.org> In-Reply-To: --------------6w7lE3FqibSYNP00LQeHmGrB Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 10/27/24 6:52 PM, Alan Mackenzie wrote: > OK, thanks. I didn't know that. The emerge man page section for > --depclean is far from clear on the point. Looking at it more closely,= > it doesn't mention giving it arguments until the very last subsidiary > paragraph. It could, for example, start with "WITHOUT ARGUMENTS, clean= s > the system by removing packages that are ....". And it could replace > that useless weasel phrase "associated with" with "dependencies of". I see what you mean. The --depclean flag (and --unmerge as well) is listed in the section for "action"s. depclean isn't an *option* such as --ask / --color / --jobs / --verbose / etc. And, the synopsis states that all *actions* allow specifying optional atoms / sets / etc at the same time. This isn't clear from reading the individual documentation on an action, but I'm not sure what a solution here might look like. > It could also warn users that their system packages are not protected > against removal in certain circumstances. >=20 > It could correct the error where it says "Packages that are part of the= > world set will always be kept.". Earlier on on the man page it defines= > @world to be the amalgam of @selected, @system, and @profile. Despite > the reassuring words, --depclean wants to delete nano and openrc (still= ), > which are part of @world. @world is an alias expansion (it expands its contents, in this case, @selected @system @profile). @system is also an alias expansion -- it expands the profile-based list of atoms for system. Moving beyond that, nano and openrc aren't an *expansion* of @world, but they are an RDEPEND of atoms (virtual/*) that are expanded from @world. The emerge documentation says that packages that are part of the world set -- i.e. they are expanded from @world -- will be kept. It doesn't say that their dependencies will be kept (there are arguments about why this is the portage design, but this discussion is less about whys and more about whether the documentation is correct, so that's what I will address). I don't really see that part of the documentation as being in error. Although I suppose I also don't see any harm in rewording it for additional clarity. I'm not sure exactly how to reword it... --=20 Eli Schwartz --------------6w7lE3FqibSYNP00LQeHmGrB-- --------------mYeY5MY5Z0zoW7E18UPkDPWh Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature.asc" -----BEGIN PGP SIGNATURE----- wnsEABYIACMWIQTnFNnmK0TPZHnXm3qEp9ErcA0vVwUCZx7JPgUDAAAAAAAKCRCEp9ErcA0vVwVs AQD1C3/EvFhU1XfwzTroq5jQIW6P4UUwSAXnu8lZ/LxHQQD/fHAaN71zXuFbioY+k9bt8g8WgMyD 9fIbSNKbAlmgtAc= =1IU9 -----END PGP SIGNATURE----- --------------mYeY5MY5Z0zoW7E18UPkDPWh--