Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Apr 2005 21:44:42 -0400
From:      Adam Weinberger <adamw@FreeBSD.org>
To:        "Paul A. Hoadley" <paulh@logicsquad.net>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Depending on other ports with OPTIONS
Message-ID:  <426C4B8A.7070508@FreeBSD.org>
In-Reply-To: <20050425013415.GD33556@bigbird.logicsquad.net>
References:  <20050423062648.GE61472@bigbird.logicsquad.net> <20050423063143.GA96226@xor.obsecurity.org> <20050423071716.GG61472@bigbird.logicsquad.net> <20050425013415.GD33556@bigbird.logicsquad.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Paul A. Hoadley wrote:
> On Sat, Apr 23, 2005 at 04:47:16PM +0930, Paul A. Hoadley wrote:
> 
>>On Fri, Apr 22, 2005 at 11:31:43PM -0700, Kris Kennaway wrote:
>>
>>
>>>The solution is to make a slave port that enables the option you
>>>need, depend on that, and make it conflict with the other
>>>non-enabled versions of the port.
>>
>>Just bear with me for a few more minutes...  So the approach would
>>be to make refdb-mysql, refdb-pgsql and refdb-sqlite, each of which
>>depend on the appropriate libdbi-driver, and refdb with common code?
>>How do I make these slaves conflict with the non-enabled versions of
>>libdbi-drivers---that is, how does
>>"CONFLICTS=libdbi-drivers-0.7.1_2" differentiate between having
>>chosen, say, libmysql or libpgsql when it was built?  Or have I
>>misunderstood your advice?
> 
> 
> I've hit a wall here---can anyone give me a push in the right
> direction?  Even just pointing me at a port that depends on certain
> OPTIONs having been chosen in another port would probably be
> sufficient.  I am willing to work it out from the Makefiles.

Really, the simplest thing is to determine whether someone has installed 
the proper flavour (for example, look for mysql-backend.file). If not, 
output an error message saying "Rebuild port foo with the mysql-backend 
enabled". I bet that'd be enough for most users.

# Adam


-- 
Adam Weinberger
adamw@magnesium.net || adamw@FreeBSD.org
adamw@vectors.cx    ||   adamw@gnome.org
http://www.vectors.cx



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?426C4B8A.7070508>