On Sat, Nov 27, 2010 at 04:19:06PM +0100, Francois Tigeot wrote: > > I have been given access to pkgsrc-wip and will integrate my changes there > piece by piece : > > http://pkgsrc-wip.cvs.sourceforge.net/viewvc/pkgsrc-wip/wip/jdk15/
With the latest changes, the jdk 1.5 can now be built on both DragonFly/x86_64 and /i386. I have integrated some patches from OpenBSD which allow the build to be bootstrapped without any other version of the jdk. Kaffe is used to take care of the small number of .java files which need to be compiled, there's no need for Linux emulation. The only issue is with Kaffe itself: on i386, it miscompiles most of the time. So far the only way I've found to make it run properly, is to use gcc44 and no optimization. So, be sure to build devel/kaffe by hand with CCVER=gcc44 and put CFLAGS=-O0 in your mk.conf if you're running an i386 system. The resulting binaries can not yet be installed properly by the pkgsrc framework, but they are usable. I have been able to run some java programs by setting JAVA_HOME to work/control/build/bsd-{amd64|i586} Have fun. -- Francois Tigeot