From owner-freebsd-ports@FreeBSD.ORG Fri May 18 15:14:45 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 8157916A40B for ; Fri, 18 May 2007 15:14:45 +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 F064B13C46C for ; Fri, 18 May 2007 15:14:44 +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 l4IFEaCd099100 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Fri, 18 May 2007 17:14:38 +0200 (CEST) (envelope-from pav@FreeBSD.org) From: Pav Lucistnik To: Benjamin Lutz In-Reply-To: <200705181409.15561.mail@maxlor.com> References: <20070507184231.GA50639@xor.obsecurity.org> <1179437517.8912.5.camel@ikaros.oook.cz> <20070518075058.GB1164@turion.vk2pj.dyndns.org> <200705181409.15561.mail@maxlor.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-pBWMMuQcpgqup1xNwmPn" Date: Fri, 18 May 2007 17:14:36 +0200 Message-Id: <1179501276.2779.6.camel@ikaros.oook.cz> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 FreeBSD GNOME Team Port X-Spam-Score: -0.917 () 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, Peter Jeremy , Doug Barton , 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 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 15:14:45 -0000 --=-pBWMMuQcpgqup1xNwmPn Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable Benjamin Lutz p=ED=B9e v p=E1 18. 05. 2007 v 14:09 +0200: > On Friday 18 May 2007 09:50, Peter Jeremy wrote: > > On 2007-May-17 23:31:57 +0200, Pav Lucistnik 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 > The last part seems to be the catch here. How about providing a tool=20 > that scans all binaries in the standard locations for what libs they=20 > depend on, and also allows the user/admin to specify the paths to=20 > binaries that he installed on his own, then outputs a list of unused=20 > libraries? http://people.freebsd.org/~pav/libstorm http://people.freebsd.org/~pav/libcompatclean Usage: 1) libstorm -update 2) libcompatclean These are so trivial I'm hesitant to make them official :) --=20 Pav Lucistnik Autumn changed into Winter ... Winter changed into Spring ... Spring changed back into Autumn and Autumn gave Winter and Spring a miss and went straight on into Summer --=-pBWMMuQcpgqup1xNwmPn 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) iD8DBQBGTcLVntdYP8FOsoIRAj6JAKCQF8zLXmGWNj/lGcHf6CXGEh+9kACfbNRs T3T1V5+MaBXTfladfcIlugs= =UHoe -----END PGP SIGNATURE----- --=-pBWMMuQcpgqup1xNwmPn--