Date: Fri, 18 May 2007 17:50:58 +1000 From: Peter Jeremy <peterjeremy@optushome.com.au> To: Pav Lucistnik <pav@freebsd.org> Cc: ports@freebsd.org, Doug Barton <dougb@freebsd.org> Subject: Re: Specs for saving old shared libs Message-ID: <20070518075058.GB1164@turion.vk2pj.dyndns.org> In-Reply-To: <1179437517.8912.5.camel@ikaros.oook.cz> References: <20070507184231.GA50639@xor.obsecurity.org> <op.try3lgvv9aq2h7@mezz.mezzweb.com> <20070507201448.GA52651@xor.obsecurity.org> <op.try4tyhd9aq2h7@mezz.mezzweb.com> <20070507204414.GA53358@xor.obsecurity.org> <20070507205850.GA34916@lor.one-eyed-alien.net> <20070507220659.GC78665@graf.pompo.net> <20070507222146.GA57768@xor.obsecurity.org> <464CB5AA.7040304@FreeBSD.org> <1179437517.8912.5.camel@ikaros.oook.cz>
next in thread | previous in thread | raw e-mail | index | archive | help
--tjCHc7DPkfUGtrlw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2007-May-17 23:31:57 +0200, Pav Lucistnik <pav@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). --=20 Peter Jeremy --tjCHc7DPkfUGtrlw Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGTVri/opHv/APuIcRApYuAJ9Ptxmt5v3v/kePaHCPcCvxV1crkwCgtaYj OuALPJ/oCpzFj8wwd3cBfqo= =0H2C -----END PGP SIGNATURE----- --tjCHc7DPkfUGtrlw--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070518075058.GB1164>