Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 May 2007 21:43:32 +0200
From:      Pav Lucistnik <pav@FreeBSD.org>
To:        Doug Barton <dougb@FreeBSD.org>
Cc:        ports@FreeBSD.org, Brooks Davis <brooks@FreeBSD.org>, Kris Kennaway <kris@obsecurity.org>
Subject:   Re: Specs for saving old shared libs
Message-ID:  <1179517412.2779.17.camel@ikaros.oook.cz>
In-Reply-To: <464DFE83.5010409@FreeBSD.org>
References:  <20070502193159.GB42482@xor.obsecurity.org> <463F7236.4080108@FreeBSD.org>	<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> <464DFE83.5010409@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-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 <pav@oook.cz>
              <pav@FreeBSD.org>

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1179517412.2779.17.camel>