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 4DAE2139360 for ; Fri, 6 Aug 2021 07:33:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3B0D1E09B4; Fri, 6 Aug 2021 07:33:43 +0000 (UTC) Received: from mail.digimed.co.uk (mail.digimed.co.uk [82.69.83.178]) (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 B6367E0907 for ; Fri, 6 Aug 2021 07:33:42 +0000 (UTC) Received: from digimed.co.uk (fenchurch.digimed.co.uk [192.168.1.6]) by mail.digimed.co.uk (Postfix) with ESMTPA id 7FCFB67C33 for ; Fri, 6 Aug 2021 08:33:40 +0100 (BST) Date: Fri, 6 Aug 2021 08:33:33 +0100 From: Neil Bothwick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: --depclean wants to remove openrc. Yikes! Message-ID: <20210806083333.0f48f4bf@digimed.co.uk> In-Reply-To: <24843.40179.678754.778511@tux.local> References: <24831.53669.190993.493758@tux.local> <24839.49752.555814.917077@tux.local> <24839.62491.160236.5924@tux.local> <1c7ed4be-87fd-48f9-b4d5-3c3aac279d5e@www.fastmail.com> <20210803134429.53aa5475@digimed.co.uk> <24842.29062.531607.648203@tux.local> <24843.40179.678754.778511@tux.local> Organization: Digital Media Production X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) X-GPG-Fingerprint: 7260 0F33 97EC 2F1E 7667 FE37 BA6E 1A97 4375 1903 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 Content-Type: multipart/signed; boundary="Sig_/bmuLfC/wGefD93fiRV/lStR"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-Archives-Salt: eed2af94-fbd3-4e57-80a7-54a5848940e2 X-Archives-Hash: 5840d0f09332db6c22ceee8f47980422 --Sig_/bmuLfC/wGefD93fiRV/lStR Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Thu, 5 Aug 2021 10:10:27 +0200, Dr Rainer Woitok wrote: > > Why not write the output to a file ? -- eg > > 'emerge --ask --depclean > '. > > Then you can look at the output at leisure, even on another machine. =20 >=20 > Depending on the number of packages you've installed and depending on > the speed of your rig "emerge --depclean" may take some time, and thus I > tried to avoid splitting it into two calls, one to just announce what > would be done and one to really do it. >=20 > But meanwhile I'm suspecting that any call along the lines of >=20 > # emerge --ask ... | $PAGER >=20 > is doomed to fail because both, "emerge" and the pager are trying to > read the user's answer from the same input device (maybe "/dev/tty") and > thus both are stumbling over the other's feet. The only way out would > be just another option causing "emerge" to page internally. >=20 > Therefore my "edepclean" alias now calls "emerge" twice, like so: >=20 > # emerge --depclean --pretend | $PAGER > # emerge --depclean -- ask --quiet How about emerge -ca | tee >depclean.txt Then if the list is short you can read it in the console and just hit y or n. Otherwise, hit n and read the file. It will save calculating dependencies twice, and we all know how slow that can be. --=20 Neil Bothwick A pessimist is an optimist who's given it some thought. --Sig_/bmuLfC/wGefD93fiRV/lStR Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE8k9T/rX16EJxEKG692eFu0QSMJgFAmEM5c0ACgkQ92eFu0QS MJjpQA/+IpANKQw3aAfMu2U3pCghYUwjS/XptRA6I9FNCX+BZRAt+CQn+Fp+6NEB 1jYZZ8B8M4jz3AASm+2Nw++0nOSeZB7IHOGutqs63aqJ0HsOI/IvkLM/Rq2sSwhz BuQ3LE9WP1FOiXGclPZo0+elQSEGvV/x2NtkmBOi0hx//TJ1zwt9q0kd3EfEShEe bmWNZ8mpbC5t1YWnW+ijWgfU5f7we5uju/2YqTXUCcsLOxGRVwT6xNkyFQN3MRty IdkgA9ntwF6qxZLWeW7z0uRD7N7XHL+7A0QCbyJOtlnsy4CsxPX5uwJ7qf7+CMNJ EIb2aqfKpajll9MAPurw2wcFAHZrPw6kyk1vSe6/XsZqrbPd8YVhSZIeDQYKaGJH nIm3Mku3XdiBFFF1AVWpmRkkgd0U+UlICfKHkF6cb/kB2tafkrDWVzzrl79FBtjj CddVTw6e/PIfQe07sypL7URYReXVnj3mVo4gFVe7S2Aom9DYVbOvj64lx6CD9ZUB hyxx5bpvl1d515X15W7bJ1lzn2339sF2oYTtq6x/011KUp42E67qcrZJ+nPGwBtq LpcnIzkkU22hBs25U80qLmRV2b7/cAR8dgAJBm02cMyiTUDMNtLR5VSNCCM+pNTf MXNowrw7ZjIrP/FgTF7ixLP3oPN7sm9JprhGI5cRcC1dW+qvngI= =xaSK -----END PGP SIGNATURE----- --Sig_/bmuLfC/wGefD93fiRV/lStR--