Re: HEADS-UP: New shared library versions coming soon

From: Daniel O'Connor <doconnor_at_gsoft.com.au>
Date: Sat, 23 Jul 2005 14:21:27 +0930
On Saturday 23 July 2005 05:27, Richard Todd wrote:
> libchk (/usr/ports/sysutils/libchk) is a nice Python script that automates
> the "ldd on each binary" bit and gives you a list of .sos that aren't being
> used by anything.  You do have to eyeball the list before doing a mass
> purge of any unreferenced .sos, as there are some apps (Mozilla/Firefox is
> one IIRC) which have .so files which are loaded by the program as needed
> but which don't show up as fixed dependencies via ldd.  Still, the libchk
> list ought to at least give you a starting point.

You could probably extend it to use /var/db/pkg/*/+CONTENTS to exclude stuff 
like that (ie things explicitly referenced by a port).

No, I don't have a patch to make it do this :)

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C

Received on Sat Jul 23 2005 - 02:51:54 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:39 UTC