On Tuesday 09 January 2007 09:08, J.C. Roberts wrote: > > When I built 1.5 on openbsd 3.9-current, it didn't require building > > 1.3 and 1.4. It didn't look like 4.0 needed it either. In fact, > > on amd64, it won't build jdk1.4 > > Though people joke about the chicken-egg problem, you need a working > JVM to build the jdk, so maybe you just didn't notice the use/install > of a previous version (i.e. scrolled far off screen). >
As for the dependencies in the jdk/1.5 port, it varies based on arch and port flavor you want to build. There was a post to the ports@ mailing list recently regarding changes in the dependencies. In general, you need a jvm to build one. In the case of the jdk/1.5 port on 4.0-STABLE, it tends to use kaffe rather than Sun on most flavors other than the "native-bootstrap" flavor. BTW, if your goal is to have a working java plugin for mozilla/firefox I suggest you read /usr/ports/devel/jdk/1.5/pkg/MESSAGE-amd64 "NOTE: The plugin does not work on amd64 yet." Well, the 1.4 port completed it's build, installed successfully and surprisingly enough, actually runs. ;-) $ java -version java version "1.4.2-p7" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-p7-_09_jan_2007_05_58) Java HotSpot(TM) Client VM (build 1.4.2-p7-_09_jan_2007_05_58, mixed mode) $ I've hit a different problem than yours while trying to build jdk/1.5, well more accurately, trying to build the lang/kaffe dependency mentioned above. Adding java source files from VM directory /usr/ports/lang/kaffe/w-kaffe-1.1.7p2/kaffe-1.1.7/libraries/javalib/vmspecific Adding generated files in builddir '..'. gmake[3]: *** No rule to make target `/usr/ports/lang/kaffe/w-kaffe-1.1.7p2/kaffe-1.1.7/libraries/javaoosowxuownonowmkwssxozuwo', needed by `compile-classes'. Stop. gmake[3]: Leaving directory `/usr/ports/lang/kaffe/w-kaffe-1.1.7p2/build-i386/libraries/javalib/external/classpath/lib' gmake[2]: *** [install-recursive] Error 1 gmake[2]: Leaving directory `/usr/ports/lang/kaffe/w-kaffe-1.1.7p2/build-i386/libraries/javalib/external/classpath' gmake[1]: *** [install-recursive] Error 1 gmake[1]: Leaving directory `/usr/ports/lang/kaffe/w-kaffe-1.1.7p2/build-i386/libraries/javalib' gmake: *** [install-recursive] Error 1 *** Error code 2 Stop in /usr/ports/lang/kaffe (line 1995 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /usr/ports/devel/jdk/1.5 (line 1431 of /usr/ports/infrastructure/mk/bsd.port.mk). $ give me a few and I might be able to get it sorted out... jcr