From owner-freebsd-ports@FreeBSD.ORG Thu Jul 20 13:39:20 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 3E72816A4E0 for ; Thu, 20 Jul 2006 13:39:20 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from pi.codefab.com (pi.codefab.com [199.103.21.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id AF08F43D5A for ; Thu, 20 Jul 2006 13:39:19 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from localhost (localhost [127.0.0.1]) by pi.codefab.com (Postfix) with ESMTP id 2EA8B5DA7; Thu, 20 Jul 2006 09:39:19 -0400 (EDT) X-Virus-Scanned: amavisd-new at codefab.com Received: from pi.codefab.com ([127.0.0.1]) by localhost (pi.codefab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1PmxxKZMaAlv; Thu, 20 Jul 2006 09:39:18 -0400 (EDT) Received: from [192.168.1.251] (pool-68-161-117-245.ny325.east.verizon.net [68.161.117.245]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pi.codefab.com (Postfix) with ESMTP id 1E0F15C2C; Thu, 20 Jul 2006 09:39:18 -0400 (EDT) Message-ID: <44BF877E.70208@mac.com> Date: Thu, 20 Jul 2006 09:39:10 -0400 From: Chuck Swiger User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: John E Hein References: <17598.52872.765184.211253@gromit.timing.com> In-Reply-To: <17598.52872.765184.211253@gromit.timing.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: ports@freebsd.org Subject: Re: conflicting dependency 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: Thu, 20 Jul 2006 13:39:20 -0000 John E Hein wrote: > Let's say there are two ports A & B. > They both provide libfoo.so.1 (and so register CONFLICTS with each other). > > Now port C wants to use libfoo (and doesn't care if it gets it > from A or B). > > What does port C list in it's LIB_DEPENDS? Whichever one the author of port C chooses. Quite often, at least for things like the BerkeleyDB, the author of port C will provide tunable OPTIONS or WITH_ or WITHOUT_ flags that you as the user of the port can tune to choose a particular version that you like. > What if it lists A and someone installs B... does A get registered as > the dependency when C is installed even though A is not installed? No, the port should be registered against B and not A, if B is installed. However, if a porter misses listing a necessary dependency, then things can get a little confused, and running "pkgdb -F" might help... -- -Chuck