From owner-freebsd-ports@FreeBSD.ORG Fri May 18 12:09:27 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 1A9AD16A403; Fri, 18 May 2007 12:09:27 +0000 (UTC) (envelope-from mail@maxlor.com) Received: from popeye1.ggamaur.net (popeye1.ggamaur.net [213.160.40.50]) by mx1.freebsd.org (Postfix) with ESMTP id 8355313C448; Fri, 18 May 2007 12:09:26 +0000 (UTC) (envelope-from mail@maxlor.com) Received: from maxlor.mine.nu (c-82-192-240-247.customer.ggaweb.ch [82.192.240.247]) by popeye1.ggamaur.net (8.13.7/8.13.7/Submit) with ESMTP id l4IC9M32014706; Fri, 18 May 2007 14:09:23 +0200 (CEST) (envelope-from mail@maxlor.com) Received: from localhost (unknown [127.0.0.1]) by maxlor.mine.nu (Postfix) with ESMTP id 54A942E225; Fri, 18 May 2007 14:09:17 +0200 (CEST) X-Virus-Scanned: amavisd-new at atlantis.intranet Received: from maxlor.mine.nu ([127.0.0.1]) by localhost (atlantis.intranet [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qMhAW-uc1aVj; Fri, 18 May 2007 14:09:17 +0200 (CEST) Received: from mini.intranet (mini.intranet [10.0.0.17]) by maxlor.mine.nu (Postfix) with ESMTP id 1597C2E224; Fri, 18 May 2007 14:09:17 +0200 (CEST) From: Benjamin Lutz To: freebsd-ports@freebsd.org Date: Fri, 18 May 2007 14:09:14 +0200 User-Agent: KMail/1.9.5 References: <20070507184231.GA50639@xor.obsecurity.org> <1179437517.8912.5.camel@ikaros.oook.cz> <20070518075058.GB1164@turion.vk2pj.dyndns.org> In-Reply-To: <20070518075058.GB1164@turion.vk2pj.dyndns.org> X-Face: $Ov27?7*N,h60fIEfNJdb!m,@#4T/d; 1hw|W0zvsHM(a$Yn6BYQ0^SEEXvi8>D`|V*F"=?utf-8?q?=5F+=0A=09R2?=@Aq>+mNb4`,'[[%z9v0Fa~]AD1}xQO3|>b.z&}l#R-_(P`?@Mz"kS; XC>Eti,i3>%@=?utf-8?q?g=3F=0A=094f?=,\c7|Ghwb&ky$b2PJ^\0b83NkLsFKv|smL/cI4UD%Tu8alAD MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2111829.YjyjHN4EBN"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200705181409.15561.mail@maxlor.com> X-Scanned-By: MIMEDefang 2.61 on 213.160.40.60 Cc: ports@freebsd.org, Peter Jeremy , Pav Lucistnik , Doug Barton 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: Fri, 18 May 2007 12:09:27 -0000 --nextPart2111829.YjyjHN4EBN Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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). 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? This could be just another ports-mgmt tool (and=20 incidentally, I've written scripts that do this several times already=20 (none of them are worthy of publication though, they're just quick=20 hacks)). Cheers Benjamin --nextPart2111829.YjyjHN4EBN Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBGTZdrzZEjpyKHuQwRAhSfAKCNiFqdROAJ69dPsvRJdh0Xhi2gDQCeOrvp 2dBPdk4dKI48l58+s2lz69Q= =3zTQ -----END PGP SIGNATURE----- --nextPart2111829.YjyjHN4EBN--