From owner-freebsd-ports@FreeBSD.ORG Mon Jun 23 07:06:42 2008 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 248211065681 for ; Mon, 23 Jun 2008 07:06:42 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx23.fluidhosting.com [204.14.89.6]) by mx1.freebsd.org (Postfix) with ESMTP id C33278FC1C for ; Mon, 23 Jun 2008 07:06:41 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: (qmail 31030 invoked by uid 399); 23 Jun 2008 07:06:40 -0000 Received: from localhost (HELO ?192.168.0.4?) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 23 Jun 2008 07:06:40 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <485F4B7E.3040905@FreeBSD.org> Date: Mon, 23 Jun 2008 00:06:38 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: Alex Dupre References: <20080622020728.GC13734@server.vk2pj.dyndns.org> <485DF018.5020703@FreeBSD.org> In-Reply-To: <485DF018.5020703@FreeBSD.org> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Peter Jeremy , glewis@FreeBSD.org, freebsd-ports@FreeBSD.org Subject: Re: Issues with portmaster 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: Mon, 23 Jun 2008 07:06:42 -0000 Alex Dupre wrote: > Peter Jeremy wrote: >> Firstly, I have jdk-1.5.0.14p8,1 installed and this needs updating. >> portmaster has decided that doing so requires java/diablo-jdk15 to be >> installed - which is wrong because I already have a suitable jdk >> installed. > > You are right, but the port has the following line: > > BUILD_DEPENDS+= ${BOOTSTRAPJDKDIR}/bin/javac:${PORTSDIR}/java/diablo-jdk15 > > So, even if it correctly find the installed > /usr/local/jdk1.5.0/bin/javac binary, it adds the diablo dependency. > Portmaster checks all the dependencies, even if the binary file exists, > and so try to install the diablo jdk. All java ports should be fixed > regarding this issue. Portmaster uses CONFLICTS to avoid this issue. This isn't the first time I've heard this complaint about the java ports. I'm wondering if glewis could shed some light on why they don't have proper CONFLICTS set. Meanwhile, the only other alternative is for portmaster to essentially adopt the same functionality as the ports infrastructure itself in order to handle these kinds of dependency issues. That's a step I'd really like to avoid since my goal has always been to make portmaster a sort of "wrapper" that ties together existing ports functionality rather than replacing it. And of course there is the obvious objection to doing this that it would make the script a lot more complicated. For the most part, relying on CONFLICTS has worked well to solve this problem, I'm hoping it will continue to be a reliable solution. Finally, I'm glad to hear that overall your experience has been favorable Peter. :) Doug -- This .signature sanitized for your protection