From owner-freebsd-ports@FreeBSD.ORG Mon Jun 23 07:26:37 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 B85D21065672; Mon, 23 Jun 2008 07:26:37 +0000 (UTC) (envelope-from kamikaze@bsdforen.de) Received: from mail.bsdforen.de (bsdforen.de [212.204.60.79]) by mx1.freebsd.org (Postfix) with ESMTP id 581FD8FC13; Mon, 23 Jun 2008 07:26:37 +0000 (UTC) (envelope-from kamikaze@bsdforen.de) Received: from mobileKamikaze.norad (unknown [92.117.69.62]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bsdforen.de (Postfix) with ESMTP id 09B618A0FD8; Mon, 23 Jun 2008 09:26:30 +0200 (CEST) Message-ID: <485F501F.5060708@bsdforen.de> Date: Mon, 23 Jun 2008 09:26:23 +0200 From: Dominic Fandrey User-Agent: Thunderbird 2.0.0.14 (X11/20080607) MIME-Version: 1.0 To: Doug Barton References: <20080622020728.GC13734@server.vk2pj.dyndns.org> <485DF018.5020703@FreeBSD.org> <485F4B7E.3040905@FreeBSD.org> <485F4DB3.3080505@bsdforen.de> <485F4E84.2040306@FreeBSD.org> In-Reply-To: <485F4E84.2040306@FreeBSD.org> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Peter Jeremy , glewis@FreeBSD.org, freebsd-ports@FreeBSD.org, Alex Dupre 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:26:37 -0000 Doug Barton wrote: > Dominic Fandrey wrote: >> Doug Barton wrote: > >>> 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. >> >> Because they don't conflict. /usr/local/bin/javac is a script that >> selects >> one of the installed JAVA VMs, dependant on what is available, >> environment >> settings and a make variable that can be changed in make.conf. > > AFAICT, javac isn't relevant to the issue of whether the various jdk > ports conflict with each other. It's just a convenient way to handle the > dependency question within the ports framework. JDK Ports don't conflict. None of them. And because many Java developers have several JDKs installed, noone will ever put a CONFLICT line into JDK port. The only way to resolve this is to detect weather a dependency is required in the same way as a port does. I suggest to check for the existence of the file and when the file is from a different port, 'pkg_info -W' should be called and whatever turns out to be the origin, should be entered as a dependency in /var/db/pkg.