From owner-freebsd-ports@FreeBSD.ORG Sun May 20 00:21:38 2007 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CE0DB16A421; Sun, 20 May 2007 00:21:38 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-3-125.belrs4.nsw.optusnet.com.au [220.239.3.125]) by mx1.freebsd.org (Postfix) with ESMTP id 5AF0C13C43E; Sun, 20 May 2007 00:21:38 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.14.1/8.14.1) with ESMTP id l4K0Lal6034173; Sun, 20 May 2007 10:21:36 +1000 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.14.1/8.14.1/Submit) id l4K0LaNv034172; Sun, 20 May 2007 10:21:36 +1000 (EST) (envelope-from peter) Date: Sun, 20 May 2007 10:21:36 +1000 From: Peter Jeremy To: Doug Barton Message-ID: <20070520002136.GJ1164@turion.vk2pj.dyndns.org> References: <20070518140441.GA17685@lpthe.jussieu.fr> <464F868D.7020601@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="u3W6riq+uV6J42Ub" Content-Disposition: inline In-Reply-To: <464F868D.7020601@FreeBSD.org> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.15 (2007-04-06) Cc: freebsd-ports@freebsd.org Subject: Re: Specs for saving old shared libs X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 May 2007 00:21:38 -0000 --u3W6riq+uV6J42Ub Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2007-May-19 16:21:49 -0700, Doug Barton wrote: > 1. Before deinstall, save shared libs in /usr/local/lib/compat/pkg > 2. After install, remove anything from /usr/local/lib/compat/pkg with the= =20 > same name as something installed by the new port. One possible gotcha with blindly implementing this is that some ports install local copies of .so's in private directories that are also parts of other ports. One example I recently bumped into is that OpenOffice.org 2.2 installs a private copy of python-2.3 using the same .so names as python. > I still feel that the only safe way to do this is to find the union of=20 > 'ldconfig -r' and 'pkg_info -L' and save those files, and those files onl= y. That should be intersection, not union. I think this makes sense - there is no point in backing up private .so files because these should only be referenced by the port in question (and therefore the old .so files should be unnecessary once the old port version is deleted). --=20 Peter Jeremy --u3W6riq+uV6J42Ub Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGT5SQ/opHv/APuIcRAsaBAJ9GB2Q/s2kQLhGYVLM6LMW9uyE14QCbBTvM d3OtAXgqnAcb5+e3iRawu5A= =KAgw -----END PGP SIGNATURE----- --u3W6riq+uV6J42Ub--