From owner-freebsd-ports@FreeBSD.ORG Sat May 19 23:21:52 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 46FDC16A46C for ; Sat, 19 May 2007 23:21:52 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx24.fluidhosting.com [204.14.89.7]) by mx1.freebsd.org (Postfix) with SMTP id DD17413C44B for ; Sat, 19 May 2007 23:21:51 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: (qmail 19972 invoked by uid 399); 19 May 2007 23:21:51 -0000 Received: from localhost (HELO lap.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with SMTP; 19 May 2007 23:21:51 -0000 X-Originating-IP: 127.0.0.1 Message-ID: <464F868D.7020601@FreeBSD.org> Date: Sat, 19 May 2007 16:21:49 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 2.0b2 (X11/20070116) MIME-Version: 1.0 To: Michel Talon References: <20070518140441.GA17685@lpthe.jussieu.fr> In-Reply-To: <20070518140441.GA17685@lpthe.jussieu.fr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Benjamin Lutz , 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 List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 May 2007 23:21:52 -0000 Michel Talon wrote: > Not completely because some programs install shared libraries in very > non standard places, notably perl installs perl.so like this: > /usr/local/lib/perl5/5.8.8/mach/CORE/libperl.so > or mozilla installs mozilla libs in another strange place. And there are > other ports which make use of such shared libraries, for example Gnome > depends on the mozilla libs or inn depends on perl.so. That argument smells like a red herring to me. The (short version of the) instructions I got from Pav: 1. Before deinstall, save shared libs in /usr/local/lib/compat/pkg 2. After install, remove anything from /usr/local/lib/compat/pkg with the same name as something installed by the new port. In the case of *.so (such as the mozilla or perl files in your example) this would result in a noop. Can you suggest a case where something useful would actually be preserved in lib/compat/pkg? And assuming that you can, are you sure that these apps you're concerned about will find what they are looking for in the ldconfig path, instead of the location in the file system where they are looking for it? I still feel that the only safe way to do this is to find the union of 'ldconfig -r' and 'pkg_info -L' and save those files, and those files only. Doug -- This .signature sanitized for your protection