From owner-freebsd-ports@FreeBSD.ORG Wed Mar 29 09:58:40 2006 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B78A616A400 for ; Wed, 29 Mar 2006 09:58:40 +0000 (UTC) (envelope-from LoN_Kamikaze@gmx.de) Received: from mail.gmx.net (mail.gmx.de [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id B2A7343D79 for ; Wed, 29 Mar 2006 09:58:32 +0000 (GMT) (envelope-from LoN_Kamikaze@gmx.de) Received: (qmail invoked by alias); 29 Mar 2006 09:58:31 -0000 Received: from cable194106210-142.astral.lodz.pl (EHLO [192.168.0.207]) [194.106.210.142] by mail.gmx.net (mp032) with SMTP; 29 Mar 2006 11:58:31 +0200 X-Authenticated: #5465401 Message-ID: <442A5A45.1050808@gmx.de> Date: Wed, 29 Mar 2006 11:58:29 +0200 From: "[LoN]Kamikaze" Organization: Lords of Nightmare User-Agent: Thunderbird 1.5 (X11/20060128) MIME-Version: 1.0 To: Kris Kennaway References: <294439d20603282038i6026c5bai3ddf4263def23548@mail.gmail.com> <20060329045038.GA45765@xor.obsecurity.org> In-Reply-To: <20060329045038.GA45765@xor.obsecurity.org> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Cc: ports@freebsd.org, Amarendra Godbole Subject: Re: Broken dependency on expat. 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: Wed, 29 Mar 2006 09:58:40 -0000 Kris Kennaway wrote: > On Wed, Mar 29, 2006 at 04:38:29AM +0000, Amarendra Godbole wrote: >> Hi, >> >> I tried to build apache22 from the ports (/usr/ports/www/apache22/). >> Now, the initial build failed, because of a broken dependency on >> libexpat - as apache22 needed a newer version than the one I had >> (1.95.*). >> >> So, I forcibly deinstalled, and reinstalled expat2 from >> /usr/ports/textproc/expat2/, and apache22 built and installed fine. >> >> So far so good... >> >> ...but upgrading libexpat removed the original libexpat.so.5 link, and >> put a libexpat.so.6...which caused all my X based programs, including >> the window manager to break! X just refused to start, and so did many >> other programs. >> >> Now, I just put back the softlink libexpat.so.5, and poof...things >> were up and running again... >> >> So my question is: is there a better way to handle such a scenario? Or >> in case of libraries, can't the original links be preserved, and new >> links added (I guess this cannot be done). > > Use portupgrade. > > Kris Portupgrade will keep the old libs around. Since I have a small HD I prefer to get rid of old libs and add an entry to "/etc/libmap.conf". Using links to handle this doesn't look like a good solution to me, because they might be forgotten and left on the system long beyond their usefulness.