From owner-freebsd-questions@FreeBSD.ORG Mon Apr 19 11:51:50 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 90BF116A4CE for ; Mon, 19 Apr 2004 11:51:50 -0700 (PDT) Received: from av13-2-sn4.m-sp.skanova.net (av13-2-sn4.m-sp.skanova.net [81.228.10.103]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7110343D54 for ; Mon, 19 Apr 2004 11:51:49 -0700 (PDT) (envelope-from ertr1013@student.uu.se) Received: by av13-2-sn4.m-sp.skanova.net (Postfix, from userid 502) id 5C51437E49; Mon, 19 Apr 2004 20:51:48 +0200 (CEST) Received: from smtp4-1-sn4.m-sp.skanova.net (smtp4-1-sn4.m-sp.skanova.net [81.228.10.181]) by av13-2-sn4.m-sp.skanova.net (Postfix) with ESMTP id 4951A37E42 for ; Mon, 19 Apr 2004 20:51:48 +0200 (CEST) Received: from falcon.midgard.homeip.net (h201n1fls24o1048.bredband.comhem.se [212.181.162.201]) by smtp4-1-sn4.m-sp.skanova.net (Postfix) with SMTP id 03F6937E4C for ; Mon, 19 Apr 2004 20:51:48 +0200 (CEST) Received: (qmail 2272 invoked by uid 1001); 19 Apr 2004 18:51:46 -0000 Date: Mon, 19 Apr 2004 20:51:46 +0200 From: Erik Trulsson To: "Ziller, James" Message-ID: <20040419185145.GA2244@falcon.midgard.homeip.net> Mail-Followup-To: "Ziller, James" , 'Charles Swiger' , "'freebsd-questions@freebsd.org'" References: <025596A38A894B45AFE62346A6BF474609CBACD1@waexch1.qgraph.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <025596A38A894B45AFE62346A6BF474609CBACD1@waexch1.qgraph.com> User-Agent: Mutt/1.5.6i cc: "'freebsd-questions@freebsd.org'" Subject: Re: Dependency hell X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Apr 2004 18:51:50 -0000 On Mon, Apr 19, 2004 at 01:34:34PM -0500, Ziller, James wrote: > So then is there a way that the ports/package system can automatically > handle replacing libfoo.so.3 with libfoo.so.4, so that packages compiled to > use libfoo.so.3 can use libfoo.so.4 instead (assuming the new version is > backward compatable)? You can't assume that. The version numbers of libraries are only supposed to be changed when the new version is *NOT* backwards compatible with the old. I.e. libfoo.so.4 is most likely not completely compatible with libfoo.so.3 and any programs that are compiled against libfoo.so.3 need to be recompiled to use libfoo.so.4 > Or can the port link against say libfoo.so (which > should be a symlink to the version of the library that's installed)? > > Thanks for the responses, > James > > -----Original Message----- > From: Charles Swiger [mailto:cswiger@mac.com] > Sent: Monday, April 19, 2004 1:18 PM > To: Ziller, James > Cc: 'freebsd-questions@freebsd.org' > Subject: Re: Dependency hell > > > On Apr 19, 2004, at 10:28 AM, Ziller, James wrote: > > So in other words I do have to recompile everything that depends on a > > given > > library just because that library is updated to a slightly newer > > version?:( > > Well, you could simply use the old version of the library. > > It's not especially hard to write code in a way that maintains upwards > compatibility-- putting a version # or sizeof(struct foo) in structures > being passed around helps!-- but some projects don't bother. > > -- > -Chuck > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" -- Erik Trulsson ertr1013@student.uu.se