Specs for saving old shared libs
Pav Lucistnik
pav at FreeBSD.org
Thu May 17 21:59:05 UTC 2007
Doug Barton píše v čt 17. 05. 2007 v 13:06 -0700:
> What might
> be useful in this regard is if someone were to start a new thread
> describing exactly what the desired behavior is, and ideally to
> include a description of how portupgrade does it now.
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
1*) portupgrade currently gets this wrong and saves all .so* files,
including uninteresting things like plugins etc.
--
Pav Lucistnik <pav at oook.cz>
<pav at FreeBSD.org>
The final screw holding up a rackmount server is always possessed
by demons.
-------------- 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/20070517/e185c73b/attachment.pgp
More information about the freebsd-ports
mailing list