$OpenBSD: patch-deploy_make_common_Sanity_gmk,v 1.1 2008/02/13 13:53:50 kurt Exp $
--- deploy/make/common/Sanity.gmk.orig	Mon Jan 28 17:59:34 2008
+++ deploy/make/common/Sanity.gmk	Mon Jan 28 17:59:37 2008
@@ -710,7 +710,7 @@ endif
 # JAVAWS_BOOTDIR must point to a valid JDK or
 # OUTPUTDIR (where the new jdk will be)
 ######################################################
-JAVA_VERSION_OK := $(shell $(ECHO) $(JAVA_VERSION) | $(EGREP) -c '^1.4|^1.4.[0-9]*')
+JAVA_VERSION_OK := $(shell $(ECHO) $(JAVA_VERSION) | sed -e 's/kaffe-//' | $(EGREP) -c '^1.4|^1.4.[0-9]*')
 bootdir:
 	@if [ -x $(JAVAWS_BOOTDIR)/bin/java$(EXE_SUFFIX) ]; then \
 	  if [ $(JAVA_VERSION_OK) -ne 1 ]; then \
