From owner-freebsd-ports@FreeBSD.ORG Tue Aug 7 20:59:17 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 C12E816A417 for ; Tue, 7 Aug 2007 20:59:17 +0000 (UTC) (envelope-from rnoland@2hip.net) Received: from gizmo.2hip.net (gizmo.2hip.net [64.74.207.195]) by mx1.freebsd.org (Postfix) with ESMTP id 77A6E13C469 for ; Tue, 7 Aug 2007 20:59:17 +0000 (UTC) (envelope-from rnoland@2hip.net) Received: from [63.251.67.21] (rnoland-ibm.acs.internap.com [63.251.67.21]) (authenticated bits=0) by gizmo.2hip.net (8.13.8/8.13.8) with ESMTP id l77KxFOo092536 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Tue, 7 Aug 2007 16:59:15 -0400 (EDT) (envelope-from rnoland@2hip.net) From: Robert Noland To: Doug Barton In-Reply-To: <46B8D605.2060008@FreeBSD.org> References: <20070807205138.6c5759d6@gumby.homeunix.com.> <46B8D605.2060008@FreeBSD.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-NoNvTBpl9zwzni3CDFjq" Date: Tue, 07 Aug 2007 16:59:09 -0400 Message-Id: <1186520349.1257.58.camel@rnoland-ibm.acs.internap.com> Mime-Version: 1.0 X-Mailer: Evolution 2.10.3 FreeBSD GNOME Team Port X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.8 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on gizmo.2hip.net Cc: ports@FreeBSD.org, RW , 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:59:17 -0000 --=-NoNvTBpl9zwzni3CDFjq Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Tue, 2007-08-07 at 13:28 -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. > >=20 > > 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: > >=20 > > # if no valid jdk found, set dependency > > .if !defined(BOOTSTRAPJDKDIR) > > BOOTSTRAPJDKDIR?=3D${LOCALBASE}/linux-sun-jdk${SUN_LINUX_JDK_VERSION}=20 > > .endif > > BUILD_DEPENDS+=3D${BOOTSTRAPJDKDIR}/bin/javac:${PORTSDIR}/java/linux-su= n-jdk15 > >=20 > >=20 > > I don't know why this causes the build-tools to install > > linux-sun-jdk15, but simply moving the BUILD_DEPENDS+=3D line inside th= e > > if-endif block, seems to fix the problem. That line is only needed if > > no jdk is present. >=20 > Your analysis sounds right. Almost, doing this will remove the dependency on linux-sun-jdk15 if another bootstrap is installed, but it won't add one for the installed bootstrap. Currently, it will always have a dependency on linux-sun-jdk15 even if another bootstrap jdk is installed. jdk14 also has this issue. robert. > Doug >=20 --=-NoNvTBpl9zwzni3CDFjq Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQBGuN0XM4TrQ4qfROMRAiGIAJ9PFyuUEfV7WPJENqeZNP5qybdvKgCfWNxr GU0A4myM8GEUnSbq49S7ewE= =0Tz1 -----END PGP SIGNATURE----- --=-NoNvTBpl9zwzni3CDFjq--