Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 May 2007 23:31:57 +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:   Specs for saving old shared libs
Message-ID:  <1179437517.8912.5.camel@ikaros.oook.cz>
In-Reply-To: <464CB5AA.7040304@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>

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

--=-H7zFNsSeZC3kSNyBMEEe
Content-Type: text/plain; charset=ISO-8859-2
Content-Transfer-Encoding: quoted-printable

Doug Barton p=ED=B9e v =E8t 17. 05. 2007 v 13:06 -0700:

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

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.

--=20
Pav Lucistnik <pav@oook.cz>
              <pav@FreeBSD.org>

The final screw holding up a rackmount server is always possessed
by demons.

--=-H7zFNsSeZC3kSNyBMEEe
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)

iD8DBQBGTMnJntdYP8FOsoIRAv6BAJ9NBz+mOdQ0rUApq7RouxchtHCpPwCfQc/S
BIhUn/wX4LZLeulhtCSBsQE=
=4cY7
-----END PGP SIGNATURE-----

--=-H7zFNsSeZC3kSNyBMEEe--




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