Mike Frysinger wrote:
> On Fri, Dec 23, 2005 at 01:09:08PM +0200, Petteri R??ty wrote:
> 
>>Basically it does ldd on all
>>the elf files in a package and then checks to which packages those
>>libraries belong.
> 
> 
> ldd is garbage for this purpose
> 
> use `readelf -d ELF | grep NEEDED` or just `scanelf -n ELF`
> -mike

Adjusted to using scanelf:

http://dev.gentoo.org/~betelgeuse/scripts/checkdeps.rb

This has the side affect that the library location code is not used
until I code or take the logic from glibc from example.

[EMAIL PROTECTED] ~/bin $ checkdeps.rb subversion
dev-libs/apr
dev-libs/apr-util
dev-libs/expat
dev-libs/openssl
dev-util/subversion
net-misc/neon
sys-libs/db || app-office/openoffice-bin
sys-libs/gdbm
sys-libs/glibc
sys-libs/zlib


Old ldd using version:
http://dev.gentoo.org/~betelgeuse/scripts/checkdepsldd.rb

Regards,
Petteri

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to