Gentoo Archives: gentoo-user

From: Qian Qiao <qian.qiao@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Any reason to keep older gcc?
Date: Sun, 30 Dec 2007 03:44:29
Message-Id: c3d5f3800712291938m2e1eecd9qb4202e983b3ab422@mail.gmail.com
In Reply to: Re: [gentoo-user] Any reason to keep older gcc? by Walter Dnes
1 On Dec 30, 2007 2:58 AM, Walter Dnes <waltdnes@××××××××.org> wrote:
2 > On Fri, Dec 28, 2007 at 02:41:55AM +0000, Qian Qiao wrote
3 >
4 > > The usual suspects? It should list nothing if the dependencies are
5 > > handled properly.
6 >
7 > OK, I'll admit that I cheated somewhat when installing Gentoo.
8 > - I started off with a basic stage 3 install
9 > - I did *NOT* emerge X; I ran "emerge bbkeys"
10 > - bbkeys is the keyboard macro manager for blackbox, so it obviously
11 > depends on blackbox
12 > - blackbox is a Window Manager, so it depends on X
13 > - X depends on a gazillion libraries
14 >
15 > I let portage sort out what to pull in. See attachment dep.txt for a
16 > list of depclean suggestions. See attachment deplist.txt for output of
17 > a script that ran "equery depends" on all the suggested packages to
18 > remove.
19 >
20
21 Portage should handle transitive dependencies no problem, so my guess
22 is that you have your system for a long time, and over the period,
23 this is what happened:
24 - package-old.version, pulled in dependency-some.version, which
25 depends on further-dependency-some.other.version
26 - package was upgraded to package-new.version which doesn't depend on
27 dependency-some.version anymore
28 - you have dependency-some.version on your system, which depends on
29 further-dependency-some.other.version, but isn't really reachable by
30 the current dependency tree
31 - depclean tries to get rid of those, but produces a very scary output
32 with seemingly useful packages listed.
33
34 I cannot be 100% sure on that, so I recommend you do the following steps
35
36 1. make sure USE flags for all your packages are properly set, don't
37 use USE=flag emerge package, actually edit /etc/portage/package.use
38 2. do a emerge --deep --newuse --update world so that all packages
39 pick up the correct USE flags and hence dependent libraries.
40 3. emerge -pv depclean, it'll explain what pulled what in.
41 4. At this point, it should be safe to emerge depclean to get rid of
42 the obsolete dependencies
43 5. revdep-rebuild
44
45 > > Try "equery depends =gcc-3*", without the quotes obviously.
46 > >
47 > > If none of the packages you installed depends on gcc-3*, you should be
48 > > able to get rid of it safely.
49 >
50 > [m3000][root][~] equery depends =gcc-3*
51 > [ Searching for packages depending on =gcc-3*... ]
52 > sys-libs/glibc-2.6.1 (>=sys-devel/gcc-3.4.4)
53 > sys-libs/libstdc++-v3-3.3.6 (>=sys-devel/gcc-3.3.3_pre20040130)
54 > www-client/links-2.1_pre28-r1 (sys-devel/gcc)
55 >
56 > It looks like nothing depends on gcc-3*.
57
58 looks safe to me. Don't forget a revdep-rebuild after the "emerge -C =gcc-3*"
59
60 HTH.
61
62 -- Joe
63 --
64 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Any reason to keep older gcc? Walter Dnes <waltdnes@××××××××.org>