Specs for saving old shared libs

Pav Lucistnik pav at FreeBSD.org
Fri May 18 08:14:45 PDT 2007


Benjamin Lutz píše v pá 18. 05. 2007 v 14:09 +0200:
> On Friday 18 May 2007 09:50, Peter Jeremy wrote:
> > On 2007-May-17 23:31:57 +0200, Pav Lucistnik <pav at freebsd.org> wrote:
> > >Just before old package deinstall, scan the list of files installed
> > > by old port (pkg_info -g). Match .so.X files under PREFIX/lib and
> > > any ldconfig'ed paths 1*), copy them away to
> > > /usr/local/lib/compat/pkg.
> > >
> > >After installation of new port, match .so.X files again. If same
> > >filenames appear, remove old copies from /usr/local/lib/compat/pkg.
> > >
> > >Finally, ldconfig -r /usr/local/lib/compat/pkg
> >
> > Ideally, you also need some way to identify (and remove) old .so
> > files that are no longer referenced by anything.  This is not as easy
> > because there's no record of what ports use what .so's (and no way to
> > track apps outside the ports system).
> 
> The last part seems to be the catch here. How about providing a tool 
> that scans all binaries in the standard locations for what libs they 
> depend on, and also allows the user/admin to specify the paths to 
> binaries that he installed on his own, then outputs a list of unused 
> libraries?

http://people.freebsd.org/~pav/libstorm
http://people.freebsd.org/~pav/libcompatclean

Usage:
1) libstorm -update
2) libcompatclean

These are so trivial I'm hesitant to make them official :)

-- 
Pav Lucistnik <pav at oook.cz>
              <pav at FreeBSD.org>

Autumn changed into Winter ... Winter changed into Spring ...  Spring
changed back into Autumn and Autumn gave Winter and Spring a miss and
went straight on into Summer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: Toto je =?UTF-8?Q?digit=C3=A1ln=C4=9B?=
	=?ISO-8859-1?Q?_podepsan=E1?= =?UTF-8?Q?_=C4=8D=C3=A1st?=
	=?ISO-8859-1?Q?_zpr=E1vy?=
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20070518/2c44b980/attachment-0001.pgp


More information about the freebsd-ports mailing list