openbsd-ports/devel/jdk/1.5/patches/patch-bin_bootscript
ian 31e312eb64 Enable JDK/JRE build on amd64. Switch to bootstrapping using Kaffe + Solaris JDK binary,
obviating need to build with JDK Linux compat (which was i386 only anyway).
Add native_bootstrap pseudo-flavor so you can build with a native Sun JDK if you
have one (tested by building this way using JDK built with default Kaffe-based build).
Work by kurt@, tested by him on i386 and me on amd64. OK kurt@.
2006-05-15 18:11:22 +00:00

32 lines
679 B
Plaintext

$OpenBSD: patch-bin_bootscript,v 1.2 2006/05/15 18:11:22 ian Exp $
--- bin/bootscript.orig Thu May 11 11:29:23 2006
+++ bin/bootscript Thu May 11 11:35:16 2006
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+# this makes sure the sanity check passes
+case $1 in
+ -version|-fullversion)
+ echo 'java version "1.4.2"'
+ exit 0
+ ;;
+esac;
+
+progname=`basename $0`
+
+case $progname in
+ jar|java|javah)
+ exec $ALT_BOOTDIR2/bin/$progname "$@"
+ ;;
+ javac)
+ # for select cases only
+ # use jikes
+ case "$*" in
+ *hotspot*|*\.\.\/tools\/*|*java\.text\/tools\/*)
+ exec jikes -bootclasspath $ABS_OUTPUTDIR/classes "$@"
+ ;;
+ esac;
+esac;
+
+exit 0