Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: binki@g.o, Michael <kensington@×××××××××××.net>
Subject: Re: [gentoo-dev] Re: Implicit system dependencies
Date: Tue, 23 Aug 2011 19:55:39
Message-Id: 20110823215631.7141c3b1@pomiocik.lan
In Reply to: Re: [gentoo-dev] Re: Implicit system dependencies by Nathan Phillip Brink
1 On Tue, 23 Aug 2011 15:02:00 -0400
2 Nathan Phillip Brink <binki@g.o> wrote:
3
4 > On Wed, Aug 24, 2011 at 03:53:26AM +1000, Michael wrote:
5 > > Also, on a related note, would it be appropriate to report the
6 > > following undeclared deps, given that the package in question
7 > > already has DEPEND for gtk+?
8 > >
9 > > * Checking app-arch/guitar-0.1.4 for undeclared dependencies
10 > > * /usr/bin/guitar links to /usr/lib64/libX11.so.6
11 > > * Missing dependency on x11-libs/libX11
12 > > * /usr/bin/guitar links to /usr/lib64/libXi.so.6
13 > > * Missing dependency on x11-libs/libXi
14 > > * /usr/bin/guitar links to /usr/lib64/libXext.so.6
15 > > * Missing dependency on x11-libs/libXext
16 > > * /usr/bin/guitar links to /usr/lib64/libxcb.so.1
17 > > * Missing dependency on x11-libs/libxcb
18 > > * /usr/bin/guitar links to /usr/lib64/libXau.so.6
19 > > * Missing dependency on x11-libs/libXau
20 > > * /usr/bin/guitar links to /usr/lib64/libXdmcp.so.6
21 > > * Missing dependency on x11-libs/libXdmcp
22 >
23 > Those look like indirect linker dependencies to me:
24 >
25 > ohnopublishing mnt # readelf -d $(which guitar) | grep -e NEEDED
26 > 0x0000000000000001 (NEEDED) Shared library:
27 > [libgtk-1.2.so.0] 0x0000000000000001 (NEEDED) Shared
28 > library: [libgdk-1.2.so.0] 0x0000000000000001 (NEEDED)
29 > Shared library: [libglib-1.2.so.0] 0x0000000000000001
30 > (NEEDED) Shared library: [libc.so.6] ohnopublishing mnt #
31 >
32 > See that X11 is brought in by libgtk and recursively so on and so on:
33 > ohnopublishing mnt # readelf -d /usr/lib64/libgtk-1.2.so.0 | grep -e
34 > NEEDED 0x0000000000000001 (NEEDED) Shared library:
35 > [libgdk-1.2.so.0] 0x0000000000000001 (NEEDED) Shared
36 > library: [libgmodule-1.2.so.0] 0x0000000000000001
37 > (NEEDED) Shared library: [libglib-1.2.so.0]
38 > 0x0000000000000001 (NEEDED) Shared library: [libm.so.6]
39 > 0x0000000000000001 (NEEDED) Shared library: [libX11.so.6]
40 > 0x0000000000000001 (NEEDED) Shared library: [libc.so.6]
41
42 I think --as-needed may make a difference here. And often packages
43 supply broken pkgconfig files, with deps for static linking put into
44 the common ones.
45
46 --
47 Best regards,
48 Michał Górny

Attachments

File name MIME type
signature.asc application/pgp-signature