From owner-freebsd-ports@FreeBSD.ORG Tue Aug 7 20:28:58 2007 Return-Path: Delivered-To: ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 814AE16A417 for ; Tue, 7 Aug 2007 20:28:58 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx22.fluidhosting.com [204.14.89.5]) by mx1.freebsd.org (Postfix) with SMTP id 2A4A013C457 for ; Tue, 7 Aug 2007 20:28:57 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: (qmail 13870 invoked by uid 399); 7 Aug 2007 20:28:55 -0000 Received: from localhost (HELO ?192.168.0.4?) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTP; 7 Aug 2007 20:28:55 -0000 X-Originating-IP: 127.0.0.1 Message-ID: <46B8D605.2060008@FreeBSD.org> Date: Tue, 07 Aug 2007 13:28:53 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: RW References: <20070807205138.6c5759d6@gumby.homeunix.com.> In-Reply-To: <20070807205138.6c5759d6@gumby.homeunix.com.> X-Enigmail-Version: 0.95.3 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: ports@FreeBSD.org, glewis@FreeBSD.org 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:28:58 -0000 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. Doug -- This .signature sanitized for your protection