Gentoo Archives: gentoo-dev

From: "Petteri R├Ąty" <betelgeuse@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] checdeps.rb for getting deps out of elf files
Date: Tue, 27 Dec 2005 22:14:55
Message-Id: 43B1BC36.3040905@gentoo.org
In Reply to: Re: [gentoo-dev] checdeps.rb for getting deps out of elf files by Mike Frysinger
1 Mike Frysinger wrote:
2 > On Fri, Dec 23, 2005 at 01:09:08PM +0200, Petteri R??ty wrote:
3 >
4 >>Basically it does ldd on all
5 >>the elf files in a package and then checks to which packages those
6 >>libraries belong.
7 >
8 >
9 > ldd is garbage for this purpose
10 >
11 > use `readelf -d ELF | grep NEEDED` or just `scanelf -n ELF`
12 > -mike
13
14 Adjusted to using scanelf:
15
16 http://dev.gentoo.org/~betelgeuse/scripts/checkdeps.rb
17
18 This has the side affect that the library location code is not used
19 until I code or take the logic from glibc from example.
20
21 betelgeuse@pena ~/bin $ checkdeps.rb subversion
22 dev-libs/apr
23 dev-libs/apr-util
24 dev-libs/expat
25 dev-libs/openssl
26 dev-util/subversion
27 net-misc/neon
28 sys-libs/db || app-office/openoffice-bin
29 sys-libs/gdbm
30 sys-libs/glibc
31 sys-libs/zlib
32
33
34 Old ldd using version:
35 http://dev.gentoo.org/~betelgeuse/scripts/checkdepsldd.rb
36
37 Regards,
38 Petteri

Attachments

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

Replies

Subject Author
Re: [gentoo-dev] checdeps.rb for getting deps out of elf files Paul de Vrieze <pauldv@g.o>