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 F0B4B158030 for ; Fri, 3 Mar 2023 00:52:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6E5E0E085E; Fri, 3 Mar 2023 00:52:41 +0000 (UTC) Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) (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 5E404E0825 for ; Fri, 3 Mar 2023 00:52:40 +0000 (UTC) Received: by mail-lf1-x136.google.com with SMTP id t11so1622802lfr.1 for ; Thu, 02 Mar 2023 16:52:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677804758; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=sb27J8TONf2UeOuHYZSnbbH4OySMrIlEZ2m7w6Gb/nY=; b=RiFUdjiH6IXkZVhTnNJE+Pm71Lpq4IoKXqwq+5POnR4ZQr2Fa7Lbs1RHwn/gywOOKm EfKrP6Ara2OJiVphPT5uzJXD3qcUGclPJucJmmBFig/mILcl0Nuzvufr/cnD45WCimON PRIwbSBzhTK75Pj4FXE8mbN93Mkhqdu1Nn0kQ4fTjBgomjTDLKs3ZSV4CJBQbIwCBz8q Lgt/TG2Aer/xSNmoPWtl5o5Zlshx469FgR+T6OO78HzH3qnOIVCeeacAa/SXPwUN9rHs 6be8ljstmFq5CBEydXH/82TRU+KORkLyJb+rSzmtRZ4bm+svgqLDB++FPjFxrrNAOAlz Hgzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677804758; 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=sb27J8TONf2UeOuHYZSnbbH4OySMrIlEZ2m7w6Gb/nY=; b=3z8Cw3ZBOGZR8ggu+n1ix0oAHnr75JCbgnX1zLLuakNStNRaJf/UEWgADRsGgDosVZ u+OX0zzZgYTpg+PF2suiE+mOckGxpMBjVwVIXm6zxN/SjMnnUW0l3ZypF2qcMeJmaVwZ cSEpMU3i4TLvRsG/LAxly9R1uVfadekuTqOn/E5ittkrHmbvYknUJE4BHuQeSXLXHZS2 DS9dkGajmf8s8ZPeZDd0EDdb+RjdoQcvrTkCMC7dUAE5uliIcEHJcmMAvgSOVg7tCQ/B JNGObESE0QIHcnNMTx6OT+LGJ0+/XvUMNgzLFGh4MSaAGz4QBehXDYiRiBoxSEeVHUmO 6SRQ== X-Gm-Message-State: AO0yUKWueWmlwJx86c3XUkHNPtCl0fnKX+ZvvCgPTYJlN3kIh3FViN+E Xvk7fvWbUot/MQGWDYW7+HDNSn/JCUFerQh+YaQTnM5YKJE= X-Google-Smtp-Source: AK7set+GAEk6q95MoyBMGK+oVjBHo86rrVMgY1uMvGmMQHpzrN0keUHURFEx1UXx5ZwM9Z8x/qDHFSZ1+WfJXzXLWns= X-Received: by 2002:ac2:4890:0:b0:4dd:a4c5:2b43 with SMTP id x16-20020ac24890000000b004dda4c52b43mr54135lfc.9.1677804758421; Thu, 02 Mar 2023 16:52:38 -0800 (PST) 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: <20230215081146.4090fa4b@digimed.co.uk> <87757c79-0d78-9f7a-3f58-f95d71704ed6@gmail.com> <20230219103041.78e1efd1@digimed.co.uk> In-Reply-To: <20230219103041.78e1efd1@digimed.co.uk> From: David Rosenbaum Date: Thu, 2 Mar 2023 19:52:27 -0500 Message-ID: Subject: Re: [gentoo-user] Is it OK to get rid of app-alternatives/* ? To: gentoo-user@lists.gentoo.org Content-Type: multipart/alternative; boundary="000000000000a0d4c305f5f45cc1" X-Archives-Salt: a6fec4b7-5fe2-4931-8dbd-07f8c78f3f97 X-Archives-Hash: 126e587e27dc8051e0bef9d0cf27d36d --000000000000a0d4c305f5f45cc1 Content-Type: text/plain; charset="UTF-8" Thanks Dave On Sun, Feb 19, 2023, 05:31 Neil Bothwick wrote: > On Wed, 15 Feb 2023 23:09:54 -0500, Walter Dnes wrote: > > > > It's bad enough depclean deleting the active kernel if you don't > > > watch out, without something deciding to install a non-existent > > > kernel and deleting the live one :-) > > > > I have my own hand-coded script that runs "emerge --pretend > > --depclean" and tweaks/filters the output into another script called > > "cleanscript". I've set it to filter out "gentoo-sources". I then > > inspect "cleanscript" before running it. And, oh yeah, depclean wants > > to remove nano. I had to "emerge -n nano" to protect it. > > You can add kernel sources to a set so they are never depcleaned > > % cat sets.conf > [kernels] > class = portage.sets.dbapi.OwnerSet > world-candidate = False > files = /usr/src > > Then emerge -n @kernels > > I do the same with gcc so I can keep the previous version > > [gcc] > class = portage.sets.dbapi.OwnerSet > world-candidate = False > files = /usr/x86_64-pc-linux-gnu/gcc-bin > > > -- > Neil Bothwick > > For security reasons, all text in this mail > is double-rot13 encrypted. > --000000000000a0d4c305f5f45cc1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks

Dav= e

On Sun, Feb 19, 2023, 05:31 Neil Bothwick <neil@digimed.co.uk> wrote:
On Wed, 15 Feb 2023 23:09:54 -0500, Walter Dnes wrote:

> > It's bad enough depclean deleting the active kernel if you do= n't
> > watch out, without something deciding to install a non-existent > > kernel and deleting the live one :-)=C2=A0
>
>=C2=A0 =C2=A0I have my own hand-coded script that runs "emerge --p= retend
> --depclean" and tweaks/filters the output into another script cal= led
> "cleanscript". I've set it to filter out "gentoo-so= urces".=C2=A0 I then
> inspect "cleanscript" before running it.=C2=A0 And, oh yeah,= depclean wants
> to remove nano.=C2=A0 I had to "emerge -n nano" to protect i= t.

You can add kernel sources to a set so they are never depcleaned

% cat sets.conf
[kernels]
class =3D portage.sets.dbapi.OwnerSet
world-candidate =3D False
files =3D /usr/src

Then emerge -n @kernels

I do the same with gcc so I can keep the previous version

[gcc]
class =3D portage.sets.dbapi.OwnerSet
world-candidate =3D False
files =3D /usr/x86_64-pc-linux-gnu/gcc-bin


--
Neil Bothwick

For security reasons, all text in this mail
=C2=A0 is double-rot13 encrypted.
--000000000000a0d4c305f5f45cc1--