Specs for saving old shared libs

Peter Jeremy peterjeremy at optushome.com.au
Fri May 18 07:51:00 UTC 2007


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).

-- 
Peter Jeremy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20070518/7dd9c4b7/attachment.pgp


More information about the freebsd-ports mailing list