From owner-freebsd-ports@FreeBSD.ORG Tue Aug 7 20:39:36 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 2844916A417; Tue, 7 Aug 2007 20:39:36 +0000 (UTC) (envelope-from scf@FreeBSD.org) Received: from mail.farley.org (farley.org [67.64.95.201]) by mx1.freebsd.org (Postfix) with ESMTP id EDF1113C45D; Tue, 7 Aug 2007 20:39:35 +0000 (UTC) (envelope-from scf@FreeBSD.org) Received: from thor.farley.org (thor.farley.org [192.168.1.5]) by mail.farley.org (8.14.1/8.14.1) with ESMTP id l77KdU1X085176; Tue, 7 Aug 2007 15:39:30 -0500 (CDT) (envelope-from scf@FreeBSD.org) Date: Tue, 7 Aug 2007 15:39:30 -0500 (CDT) From: "Sean C. Farley" To: RW In-Reply-To: <20070807205138.6c5759d6@gumby.homeunix.com.> Message-ID: <20070807153205.M12870@thor.farley.org> References: <20070807205138.6c5759d6@gumby.homeunix.com.> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.1 X-Spam-Checker-Version: SpamAssassin 3.2.1 (2007-05-02) on mail.farley.org Cc: ports@FreeBSD.org, glewis@FreeBSD.org, Doug Barton 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:39:36 -0000 On Tue, 7 Aug 2007, 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. The port now depends on the Diablo JDK, but that exposed BUILD_DEPENDS line still brings in the diablo-jdk15 port even if a native JDK is already available. It would be nice to use an installed java/jdk15 port to build itself. Sean -- scf@FreeBSD.org