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 |