From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Omkzn-0003UY-4t for garchives@archives.gentoo.org; Sat, 21 Aug 2010 10:08:15 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 24CACE0860; Sat, 21 Aug 2010 10:07:46 +0000 (UTC) Received: from mail-ww0-f53.google.com (mail-ww0-f53.google.com [74.125.82.53]) by pigeon.gentoo.org (Postfix) with ESMTP id DD619E0860 for ; Sat, 21 Aug 2010 10:07:45 +0000 (UTC) Received: by wwb39 with SMTP id 39so2764960wwb.10 for ; Sat, 21 Aug 2010 03:07:45 -0700 (PDT) Received: by 10.227.156.78 with SMTP id v14mr2313197wbw.62.1282385265044; Sat, 21 Aug 2010 03:07:45 -0700 (PDT) Received: from aemaeth.localnet (93-34-50-135.ip48.fastwebnet.it [93.34.50.135]) by mx.google.com with ESMTPS id e31sm3373362wbe.11.2010.08.21.03.07.42 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 21 Aug 2010 03:07:43 -0700 (PDT) From: Francesco Talamona Organization: i.Know To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] Re: autodepclean script (was "how to remove HAL") Date: Sat, 21 Aug 2010 12:07:40 +0200 User-Agent: KMail/1.13.5 (Linux/2.6.35-gentoo-r1; KDE/4.4.5; x86_64; ; ) References: <20100817194922.GB6494@nibiru.local> <20100819030541.GA7423@waltdnes.org> In-Reply-To: <20100819030541.GA7423@waltdnes.org> 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 MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201008211207.40833.francesco.talamona@know.eu> X-Archives-Salt: d34ac457-2644-4467-80f4-2f0efe8b5d35 X-Archives-Hash: f5144a6316cd908f47db6252c7531889 On Thursday 19 August 2010, Walter Dnes wrote: > On Tue, Aug 17, 2010 at 09:49:22PM +0200, Enrico Weigelt wrote > > > I've just experimented a bit with that and it turned out that > > --depclean doesn't clean up the buildtime-only deps. But if I > > remove one of them (eg. cabextract), they don't get pulled in again > > (that's indicating the depending ebuilds are written properly). > > This reminds me of a script I've been working on to remove > unnecessary cruft. Everything that follows is run as root, because > it runs "emerge". The attached script "autodepclean" parses the > output from "emerge --pretend --depclean" and generates a script > "cleanscript" that you can run to clean up your system. This should > handle your situation, but it's also a general solution to the > entire class of problems of cleaning up when you remove all programs > or USE flags that pull in a lib. It is not restricted to just HAL > > Warning, this script is beta. Use with care. It will remove > gentoo-sources versions higher than your current kernel. This is > technically correct for removing unused ebuilds. But it may not be > what you want. I'm unclear about the aim of your script, what does different from "emerge -a --depclean" followed by "revdep-rebuild -- -a"? Ciao Francesco -- Linux Version 2.6.35-gentoo-r1, Compiled #1 SMP PREEMPT Wed Aug 11 07:11:30 CEST 2010 Two 1GHz AMD Athlon 64 Processors, 4GB RAM, 4021.84 Bogomips Total aemaeth