Gentoo Archives: gentoo-user

From: Daniel Pielmeier <billie@g.o>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] emerge --depclean does not remove due to link level dependencies
Date: Thu, 05 Nov 2009 13:29:29
Message-Id: 6142e6140911050528o5e8608b6qfab7ce4a9c290af@mail.gmail.com
In Reply to: Re: [gentoo-user] emerge --depclean does not remove due to link level dependencies by Alex Schuster
1 2009/11/5 Alex Schuster <wonko@×××××××××.org>:
2 >> Newer versions of portage print this message if a package is about to
3 >> be removed because there is no ebuild dependency from all other
4 >> installed packages, but it is still needed because other packages link
5 >> to it automagically. This seems to be the case here, ddd automagically
6 >> links to elfutils depending on whether it is available or not, instead
7 >> of being controlled by the ebuild via use flag. So ddd links against
8 >> elfutils and portage does not know about it. In this case the
9 >> suggestion of rebuilding the packages does not work.
10 >>
11 >> With older portage versions elfutils is removed and the dependency is
12 >> ignored. Revdep-rebuild will complain about ddd linking against
13 >> elfutils which is not available anymore and then rebuild ddd which
14 >> will result in ddd not linking against elfutils anymore.
15 >
16 > I wonder what is better? Now no breakage happens, which is fine, but the
17 > with old portage the breakage would be solved completely after revdep-
18 > rebuild.
19
20 I consider the new way better as it is easier to detect this kind of
21 problems that way.
22
23 >> > Should some bugs be filed? And if so, should they go:
24 >> > - To the ebuild maintainers? But they probably cannot do much about
25 >> > it, apart from patching the package's autoconf stuff.
26 >> > - To upstream? Well, would they consider this this a bug at all, or a
27 >> > mere problem with Gentoo's special build system, that wants to know
28 >> > all the dependencies?
29 >>
30 >> If ddd really links automagically against elfutils, you should file a
31 >> Gentoo bug about ddd which needs it's autotools fixed. To save the
32 >> Gentoo developers some time you can also file an upstream bug and add
33 >> a reference to it in the Gentoo bug report. If upstream cares about
34 >> automagic dependencies is another story, in Gentoo it is considered a
35 >> bug.
36 >
37 > Okay, I did so.
38 > https://savannah.gnu.org/bugs/index.php?27945
39 > http://bugs.gentoo.org/show_bug.cgi?id=291972
40
41 Thank you very much for your help.
42 I took a quick look in the ddd configure script and it indeed links
43 against libelf if it is available, without a possibility to
44 explicitely turn it on or off by a configure flag.
45 I have assigned the bug accordingly.
46
47 --
48 Daniel Pielmeier