Gentoo Archives: gentoo-dev

From: Stefan Jones <cretin@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] revdep-rebuild
Date: Sun, 14 Aug 2005 14:23:06
Message-Id: 1124029217.6980.14.camel@localhost
In Reply to: Re: [gentoo-dev] revdep-rebuild by Mike Frysinger
1 On Sat, 2005-08-13 at 23:26 -0400, Mike Frysinger wrote:
2 > i've already contacted fuzzray about utilizing two packages solar put together
3 > (and can be found in portage already):
4 > pax-utils: scanelf
5 > portage-utils: qfile
6
7 Thanks for the ideas.
8
9 I had a quick look at the programs;
10
11 qfile: This would be useful in cleaning up the the last part of finding
12 which package the file belongs to. But that part is already fairly quick
13 compared to the rest.
14
15 scanelf:
16
17 >From what I can see scanelf can print what libraries a file needs but it
18 cannot say if the libraries are present. For example:
19
20 /usr/bin/scanelf /bin/ls -n
21 TYPE NEEDED FILE
22 ET_EXEC librt.so.1,libncurses.so.5,libc.so.6 /bin/ls
23
24 So you would need to keep a list of all libraries to check against.
25 Thus I prefer using:
26 LD_TRACE_LOADED_OBJECTS=1 /lib/ld-linux.so.2 /bin/ls
27
28 But you could use "ldconfig -p" to gain a list of all the libraries, put
29 them in a hash table and then use scanelf.
30
31 All seems good,
32
33 Stefan
34
35 --
36 Stefan Jones <cretin@g.o>
37
38 --
39 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] revdep-rebuild "Diego 'Flameeyes' Pettenò" <flameeyes@g.o>
Re: [gentoo-dev] revdep-rebuild Paul Varner <fuzzyray@g.o>