From owner-freebsd-ports@FreeBSD.ORG Thu Oct 27 04:02:53 2005 Return-Path: X-Original-To: freebsd-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 5ACF016A41F for ; Thu, 27 Oct 2005 04:02:53 +0000 (GMT) (envelope-from mike@skew.org) Received: from chilled.skew.org (skew.org [65.101.207.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id 133EC43D45 for ; Thu, 27 Oct 2005 04:02:53 +0000 (GMT) (envelope-from mike@skew.org) Received: from chilled.skew.org (localhost.skew.org [127.0.0.1]) by chilled.skew.org (8.13.1/8.13.1) with ESMTP id j9R42q02093992 for ; Wed, 26 Oct 2005 22:02:52 -0600 (MDT) (envelope-from mike@chilled.skew.org) Received: (from mike@localhost) by chilled.skew.org (8.13.1/8.13.1/Submit) id j9R42qLF093991 for freebsd-ports@freebsd.org; Wed, 26 Oct 2005 22:02:52 -0600 (MDT) (envelope-from mike) From: Mike Brown Message-Id: <200510270402.j9R42qLF093991@chilled.skew.org> In-Reply-To: <200409062059.i86Kxuwn037056@chilled.skew.org> To: freebsd-ports@freebsd.org Date: Wed, 26 Oct 2005 22:02:52 -0600 (MDT) X-Whoa: whoa. X-Mailer: ELM [version 2.4ME+ PL119 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=UTF-8 Subject: Re: conditional dependency question 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, 27 Oct 2005 04:02:53 -0000 Way back on Sep 6, 2004, I wrote: > Hi all, > > I would like a port I am working on to ensure that if a certain > other port/package is installed, that it be a particular version > or higher. But I do not want to require the other package as a > dependency; I just want to make sure that *if* it is installed, > it is the right version. > > I couldn't discern a Makefile directive that would do this. If > someone could point me in the right direction / show me an example > of a port that does this kind of checking, please reply on- or > off-list. [1] AFAIK, no one ever offered any help with this. I see now that the Porters Handbook says "If your package cannot coexist with other packages (because of file conflicts, runtime incompatibility, etc.), list the other package names in the CONFLICTS variable." [2] A runtime incompatibility is exactly what I have. The thing I don't like about using CONFLICTS, though, is bsd.port.mk reports the conflict with the generic message "They install files into the same place", which isn't always accurate. Since it seems CONFLICTS is the right thing to use, is it possible to change the message in bsd.ports.mk so that it says "They install files into the same place, or have other interoperability issues." or some such? Thanks, Mike -- [1] http://lists.freebsd.org/pipermail/freebsd-ports/2004-September/015918.html [2] http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/conflicts.html