From owner-freebsd-ports@FreeBSD.ORG Fri May 18 19:43:41 2007 Return-Path: X-Original-To: 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 E352C16A400 for ; Fri, 18 May 2007 19:43:41 +0000 (UTC) (envelope-from pav@FreeBSD.org) Received: from raven.customer.vol.cz (raven.customer.vol.cz [195.250.144.108]) by mx1.freebsd.org (Postfix) with ESMTP id 45C7E13C448 for ; Fri, 18 May 2007 19:43:41 +0000 (UTC) (envelope-from pav@FreeBSD.org) Received: from [192.168.0.23] (r3b159.net.upc.cz [213.220.193.159]) (authenticated bits=0) by raven.customer.vol.cz (8.14.1/8.14.1) with ESMTP id l4IJhXx7025453 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Fri, 18 May 2007 21:43:34 +0200 (CEST) (envelope-from pav@FreeBSD.org) From: Pav Lucistnik To: Doug Barton In-Reply-To: <464DFE83.5010409@FreeBSD.org> References: <20070502193159.GB42482@xor.obsecurity.org> <463F7236.4080108@FreeBSD.org> <20070507184231.GA50639@xor.obsecurity.org> <20070507201448.GA52651@xor.obsecurity.org> <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> <464DFE83.5010409@FreeBSD.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-DR1Q02to22vYo4fq1fEW" Date: Fri, 18 May 2007 21:43:32 +0200 Message-Id: <1179517412.2779.17.camel@ikaros.oook.cz> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 FreeBSD GNOME Team Port X-Spam-Score: -0.911 () AWL X-Scanned-By: MIMEDefang 2.61 on 195.250.144.108 X-Milter: Spamilter (Reciever: raven.customer.vol.cz; Sender-ip: 213.220.193.159; Sender-helo: [192.168.0.23]; ) Cc: ports@FreeBSD.org, Brooks Davis , Kris Kennaway Subject: Re: Specs for saving old shared libs X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pav@FreeBSD.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 May 2007 19:43:42 -0000 --=-DR1Q02to22vYo4fq1fEW Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable Doug Barton p=ED=B9e v p=E1 18. 05. 2007 v 12:29 -0700: > Pav Lucistnik wrote: > > Doug Barton p=ED=B9e v c(t 17. 05. 2007 v 13:06 -0700: > >=20 > >> What might=20 > >> be useful in this regard is if someone were to start a new thread=20 > >> describing exactly what the desired behavior is, and ideally to=20 > >> include a description of how portupgrade does it now. > >=20 > > 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. >=20 > That sounds pretty straightforward. My first instinct is to implement=20 > this by matching the output of 'ldconfig -r', does that sound like=20 > what you're asking for? Yes, that would work too, I guess. Also, I think another ldconfig -r /usr/local/lib/compat/pkg is needed after this step, to cover for the period between deinstallation and installation (even for straight upgrades). > > 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 >=20 > Ok, that makes sense too. This doesn't sound too hard to implement, so=20 > I'll take a look at adding this as an option soon. Thanks! --=20 Pav Lucistnik It's now using GIFs instead of JPEGs. This is similar to replacing triangular wheels with round ones. --=-DR1Q02to22vYo4fq1fEW Content-Type: application/pgp-signature; name=signature.asc Content-Description: 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?= -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQBGTgHcntdYP8FOsoIRAi+MAJ4izKtI8b0m05N2DLwrkrhslVGJiQCeLuJ9 l5UADKAW0w24TyyUM+lEwtU= =I/t1 -----END PGP SIGNATURE----- --=-DR1Q02to22vYo4fq1fEW--