Re: [gentoo-dev] checdeps.rb for getting deps out of elf files

2005-12-29 Thread solar
On Wed, 2005-12-28 at 21:52 +0200, Petteri Räty wrote: Paul de Vrieze wrote: On Wednesday 28 December 2005 17:26, Petteri Räty wrote: I just picked some package as an example of the output with openoffice-bin. My understanding here is that if you link against those libraries, it will

Re: [gentoo-dev] checdeps.rb for getting deps out of elf files

2005-12-28 Thread Paul de Vrieze
On Tuesday 27 December 2005 23:12, Petteri Räty wrote: 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

Re: [gentoo-dev] checdeps.rb for getting deps out of elf files

2005-12-28 Thread Petteri Räty
Paul de Vrieze wrote: On Tuesday 27 December 2005 23:12, Petteri Räty wrote: 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

Re: [gentoo-dev] checdeps.rb for getting deps out of elf files

2005-12-28 Thread Paul de Vrieze
On Wednesday 28 December 2005 17:26, Petteri Räty wrote: I just picked some package as an example of the output with openoffice-bin. My understanding here is that if you link against those libraries, it will break break binary packages because dependencies don't say to pull in required

Re: [gentoo-dev] checdeps.rb for getting deps out of elf files

2005-12-28 Thread Petteri Räty
Paul de Vrieze wrote: On Wednesday 28 December 2005 17:26, Petteri Räty wrote: I just picked some package as an example of the output with openoffice-bin. My understanding here is that if you link against those libraries, it will break break binary packages because dependencies don't say to

Re: [gentoo-dev] checdeps.rb for getting deps out of elf files

2005-12-28 Thread Mike Frysinger
On Wednesday 28 December 2005 11:11, Paul de Vrieze wrote: Unfortunately scanelf also doesn't know (nor can it know) no utility will be able to passively calculate dependencies that happen via dlopen() or any similar dynamic library loading interface -mike -- gentoo-dev@gentoo.org mailing list

Re: [gentoo-dev] checdeps.rb for getting deps out of elf files

2005-12-28 Thread Paul de Vrieze
On Wednesday 28 December 2005 21:13, Mike Frysinger wrote: On Wednesday 28 December 2005 11:11, Paul de Vrieze wrote: Unfortunately scanelf also doesn't know (nor can it know) no utility will be able to passively calculate dependencies that happen via dlopen() or any similar dynamic library

Re: [gentoo-dev] checdeps.rb for getting deps out of elf files

2005-12-27 Thread Petteri Räty
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

[gentoo-dev] checdeps.rb for getting deps out of elf files

2005-12-23 Thread Petteri Räty
http://dev.gentoo.org/~betelgeuse/scripts/checkdeps.rb Some people will probably find this useful. Basically it does ldd on all the elf files in a package and then checks to which packages those libraries belong. I think portage people are working on integrating something like this to portage in

Re: [gentoo-dev] checdeps.rb for getting deps out of elf files

2005-12-23 Thread Thomas de Grenier de Latour
On Fri, 23 Dec 2005 13:09:08 +0200 Petteri Räty [EMAIL PROTECTED] wrote: Basically it does ldd on all the elf files in a package and then checks to which packages those libraries belong. I don't think ldd alone is the way to go, because it doesn't make distinction beetween direct and indirect

Re: [gentoo-dev] checdeps.rb for getting deps out of elf files

2005-12-23 Thread Mike Frysinger
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 --