From owner-freebsd-ports@FreeBSD.ORG Tue Aug 7 20:57:29 2007 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 AC7E516A41B for ; Tue, 7 Aug 2007 20:57:29 +0000 (UTC) (envelope-from fbsd06@mlists.homeunix.com) Received: from mxout-03.mxes.net (mxout-03.mxes.net [216.86.168.178]) by mx1.freebsd.org (Postfix) with ESMTP id 9070413C469 for ; Tue, 7 Aug 2007 20:57:29 +0000 (UTC) (envelope-from fbsd06@mlists.homeunix.com) Received: from gumby.homeunix.com. (unknown [87.81.140.128]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTP id 2E4D851939 for ; Tue, 7 Aug 2007 16:57:27 -0400 (EDT) Date: Tue, 7 Aug 2007 21:57:25 +0100 From: RW To: freebsd-ports@freebsd.org Message-ID: <20070807215725.5659eebf@gumby.homeunix.com.> In-Reply-To: <46B8D605.2060008@FreeBSD.org> References: <20070807205138.6c5759d6@gumby.homeunix.com.> <46B8D605.2060008@FreeBSD.org> X-Mailer: Claws Mail 2.10.0 (GTK+ 2.10.14; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: Portmaster and Portmanager problem with jdk15 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: Tue, 07 Aug 2007 20:57:29 -0000 On Tue, 07 Aug 2007 13:28:53 -0700 Doug Barton wrote: > RW wrote: > > Both Portmaster and Portmanager (I haven't tried Portupgrade) > > install java/linux-sun-jdk15 on an upgrade of java/jdk15. If I > > upgrade jdk15 manually it isn't built, so it must be done by the > > tools. > > > > The way the jdk15 makefile works is that it looks for the location > > of an existing jdk installation for bootstrapping and sets > > BOOTSTRAPJDKDIR accordingly. We then have: > > > > # if no valid jdk found, set dependency > > .if !defined(BOOTSTRAPJDKDIR) > > BOOTSTRAPJDKDIR?=${LOCALBASE}/linux-sun-jdk${SUN_LINUX_JDK_VERSION} > > .endif > > BUILD_DEPENDS+=${BOOTSTRAPJDKDIR}/bin/javac:${PORTSDIR}/java/linux-sun-jdk15 > > > > > > I don't know why this causes the build-tools to install > > linux-sun-jdk15, but simply moving the BUILD_DEPENDS+= line inside > > the if-endif block, seems to fix the problem. That line is only > > needed if no jdk is present. > > Your analysis sounds right. What I don't understand is why portmaster doesn't leave missing build-dependencies to the ports-system itself. I wasn't using the -t option and ${BOOTSTRAPJDKDIR}/bin/javac is provided by jdk15.