$OpenBSD: patch-j2se_make_common_Sanity_gmk,v 1.1 2008/02/13 13:53:50 kurt Exp $
--- j2se/make/common/Sanity.gmk.orig	Mon Jan 28 17:59:35 2008
+++ j2se/make/common/Sanity.gmk	Mon Jan 28 17:59:37 2008
@@ -795,7 +795,7 @@ endif
 ######################################################
 # BOOTDIR must point to a valid JDK.
 ######################################################
-JAVA_VERSION_OK := $(shell $(ECHO) $(JAVA_VERSION) | $(EGREP) -c '^1.4.[1-9]')
+JAVA_VERSION_OK := $(shell $(ECHO) $(JAVA_VERSION) | sed -e 's/kaffe-//' | $(EGREP) -c '^1.4.[1-9]')
 bootdir:
 	@if [ -x $(BOOTDIR)/bin/java$(EXE_SUFFIX) ]; then \
 	  if [ $(JAVA_VERSION_OK) -ne 1 ]; then \
