Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 May 2003 21:59:42 +0200 (CEST)
From:      Herve Quiroz <herve.quiroz@esil.univ-mrs.fr>
To:        Greg Lewis <glewis@misty.eyesbeyond.com>
Cc:        Munehiro Matsuda <haro@kgt.co.jp>
Subject:   Re: java/jdk13 does not autodetect itself
Message-ID:  <20030514213828.T78142@puget.esil.univ-mrs.fr>
In-Reply-To: <20030514174622.GA56109@misty.eyesbeyond.com>
References:  <20030514.125107.74756915.haro@kgt.co.jp> <20030514041736.88785.qmail@web13501.mail.yahoo.com> <20030514174622.GA56109@misty.eyesbeyond.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi all !

On Wed, 14 May 2003, Greg Lewis wrote:

> On Tue, May 13, 2003 at 09:17:36PM -0700, David Yeske wrote:
> > What do other people think about this?
>
> I think its worth considering.  Its not too difficult to do.
>
> > Do we want to expand detection in ports in general?
> > Is it bad to set NATIVE_BOOTSTRAP automatically?
>
> Its bad to set it automatically unless there is also a flag to turn it
> off, e.g. we would need to add a LINUX_BOOTSTRAP or a
> WITHOUT_NATIVE_BOOTSTRAP.

IMHO, this could be addressed by the future USE_JAVA variables we
discussed with Ernst and Greg recently (regarding bsd.java.mk/XSLT stuff)

If the USE_JAVA allows to specify a particular JDK version (regardless of
port but preferably native), we could just use it to even build the JDK
ports themselves. And with the ability to override it with make arguments,
it may work as if it had the NATIVE_BOOTSTRAP/WITHOUT_NATIVE_BOOTSTRAP
variable.

Well, actually it might work with the current bsd.java.mk settings.
Because when you specify USE_JAVA=1.3, it first checks if native JDK 1.3
is installed and then it checks for the linux one. The bad thing is that
if none is installed, it adds java/jdk13 in the dependencies, which is a
kind of cyclic dependency. And speaking of this, to use USE_JAVA for JDK
build you have to also define NO_RUN_DEPENDS_JAVA to have the linux JDK
only part of BUILD_DEPENDS.

What do you think of this ? If I've got enough (CPU) time in the next
days, I'll test it anyway. I shall check the porter's handbook to learn
what happens when a port is part of its own BUILD_DEPENDS...

Regards,

Herve



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030514213828.T78142>