Portmaster and Portmanager problem with jdk15

Robert Noland rnoland at 2hip.net
Tue Aug 7 13:59:17 PDT 2007


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.
> > 
> > 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.

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
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20070807/1397513c/attachment.pgp


More information about the freebsd-ports mailing list