$OpenBSD: patch-jdk_make_common_shared_Platform_gmk,v 1.1 2013/02/01 15:34:35 kurt Exp $
--- jdk/make/common/shared/Platform.gmk.orig	Mon Jan 28 22:43:28 2013
+++ jdk/make/common/shared/Platform.gmk	Tue Jan 29 09:31:35 2013
@@ -101,7 +101,7 @@ REQUIRED_FREETYPE_VERSION=2.3.0
 SCM_DIRs = .hg .svn CVS RCS SCCS Codemgr_wsdata deleted_files .hgignore .hgtags
 # When changing SCM_DIRs also change SCM_DIRS_rexp and SCM_DIRS_prune:
 SCM_DIRS_rexp = ".hg|.svn|CVS|RCS|SCCS|Codemgr_wsdata|deleted_files|.hgignore|.hgtags"
-SCM_DIRS_prune = \( -name .hg -o -name .svn -o -name CVS -o -name RCS -o -name SCCS -o -name Codemgr_wsdata -o -name deleted_files -o -name .hgignore -o -name .hgtags \) -prune
+SCM_DIRS_prune = \( -name .hg -o -name .svn -o -name CVS -o -name RCS -o -name SCCS -o -name Codemgr_wsdata -o -name deleted_files -o -name .hgignore -o -name .hgtags -o -name \*.orig \) -prune
 
 # Don't define this unless it's not defined
 ifndef VARIANT
@@ -289,7 +289,7 @@ ifeq ($(SYSTEM_UNAME), OpenBSD)
   PLATFORM = bsd
   OS_NAME = openbsd
   OS_VENDOR = OpenBSD
-  REQUIRED_OS_VERSION = 4.2
+  REQUIRED_OS_VERSION = 5.1
 endif
 
 # Platform settings specific to BSD
@@ -483,13 +483,6 @@ endif
 #    system swapping during the build.
 #    If we don't know, assume 512. Subtract 128 from MB for VM MAX.
 #    Don't set VM max over 1024-128=896.
-#    736 is the max for OpenBSD.
-ifeq ($(OS_VENDOR), OpenBSD)
-  ABS_MAX_MEMORY := "736"
-else
-  ABS_MAX_MEMORY := "896"
-endif
-
 ifneq ($(MB_OF_MEMORY),)
   LOW_MEMORY_MACHINE := $(shell \
     if [ $(MB_OF_MEMORY) -le 512 ] ; then \
@@ -501,7 +494,7 @@ ifneq ($(MB_OF_MEMORY),)
     if [ $(MB_OF_MEMORY) -le 1024 ] ; then \
       expr $(MB_OF_MEMORY) '-' 128 ; \
     else \
-      echo $(ABS_MAX_MEMORY); \
+      echo "896"; \
     fi)
   MIN_VM_MEMORY := $(shell \
     if [ $(MAX_VM_MEMORY) -le 128 ] ; then \
