On Dec 30, 2007 2:58 AM, Walter Dnes <[EMAIL PROTECTED]> wrote:
> On Fri, Dec 28, 2007 at 02:41:55AM +0000, Qian Qiao wrote
>
> > The usual suspects? It should list nothing if the dependencies are
> > handled properly.
>
>   OK, I'll admit that I cheated somewhat when installing Gentoo.
>   - I started off with a basic stage 3 install
>   - I did *NOT* emerge X; I ran "emerge bbkeys"
>   - bbkeys is the keyboard macro manager for blackbox, so it obviously
>     depends on blackbox
>   - blackbox is a Window Manager, so it depends on X
>   - X depends on a gazillion libraries
>
>   I let portage sort out what to pull in.  See attachment dep.txt for a
> list of depclean suggestions.  See attachment deplist.txt for output of
> a script that ran "equery depends" on all the suggested packages to
> remove.
>

Portage should handle transitive dependencies no problem, so my guess
is that you have your system for a long time, and over the period,
this is what happened:
- package-old.version, pulled in dependency-some.version, which
depends on further-dependency-some.other.version
- package was upgraded to package-new.version which doesn't depend on
dependency-some.version anymore
- you have dependency-some.version on your system, which depends on
further-dependency-some.other.version, but isn't really reachable by
the current dependency tree
- depclean tries to get rid of those, but produces a very scary output
with seemingly useful packages listed.

I cannot be 100% sure on that, so I recommend you do the following steps

1. make sure USE flags for all your packages are properly set, don't
use USE=flag emerge package, actually edit /etc/portage/package.use
2. do a emerge --deep --newuse --update world so that all packages
pick up the correct USE flags and hence dependent libraries.
3. emerge -pv depclean, it'll explain what pulled what in.
4. At this point, it should be safe to emerge depclean to get rid of
the obsolete dependencies
5. revdep-rebuild

> > Try "equery depends =gcc-3*", without the quotes obviously.
> >
> > If none of the packages you installed depends on gcc-3*, you should be
> > able to get rid of it safely.
>
> [m3000][root][~] equery depends =gcc-3*
> [ Searching for packages depending on =gcc-3*... ]
> sys-libs/glibc-2.6.1 (>=sys-devel/gcc-3.4.4)
> sys-libs/libstdc++-v3-3.3.6 (>=sys-devel/gcc-3.3.3_pre20040130)
> www-client/links-2.1_pre28-r1 (sys-devel/gcc)
>
>   It looks like nothing depends on gcc-3*.

looks safe to me. Don't forget a revdep-rebuild after the "emerge -C =gcc-3*"

HTH.

-- Joe
-- 
[EMAIL PROTECTED] mailing list

Reply via email to