summaryrefslogtreecommitdiffstats
path: root/recipes-core/icedtea/openjdk-7-03b147/icedtea-jdk-sane-x86-arch.patch
diff options
context:
space:
mode:
authorHenning Heinold <heinold@inf.fu-berlin.de>2012-11-22 18:47:13 +0100
committerHenning Heinold <heinold@inf.fu-berlin.de>2012-11-22 18:49:40 +0100
commit7dbdd2420d3888d8b7e4e1418ba1bbfe0b1f687c (patch)
treeca625d3583eee077c9750bd47a97b83e8ffef540 /recipes-core/icedtea/openjdk-7-03b147/icedtea-jdk-sane-x86-arch.patch
parente6e59540e4540dfca17c5904aad6fdc23cf6934e (diff)
downloadmeta-java-7dbdd2420d3888d8b7e4e1418ba1bbfe0b1f687c.tar.gz
icedtea7-native: simple copy over from openjdk-7 branch
Diffstat (limited to 'recipes-core/icedtea/openjdk-7-03b147/icedtea-jdk-sane-x86-arch.patch')
-rw-r--r--recipes-core/icedtea/openjdk-7-03b147/icedtea-jdk-sane-x86-arch.patch204
1 files changed, 204 insertions, 0 deletions
diff --git a/recipes-core/icedtea/openjdk-7-03b147/icedtea-jdk-sane-x86-arch.patch b/recipes-core/icedtea/openjdk-7-03b147/icedtea-jdk-sane-x86-arch.patch
new file mode 100644
index 0000000..0ff00b7
--- /dev/null
+++ b/recipes-core/icedtea/openjdk-7-03b147/icedtea-jdk-sane-x86-arch.patch
@@ -0,0 +1,204 @@
1From 634840cbdefe385590ed170f0ed0f48d4b412550 Mon Sep 17 00:00:00 2001
2From: Henning Heinold <heinold@inf.fu-berlin.de>
3Date: Wed, 14 Mar 2012 22:34:51 +0100
4Subject: [PATCH] real patch
5
6---
7 jdk/make/common/shared/Compiler-gcc.gmk | 4 +-
8 jdk/make/common/shared/Platform.gmk | 18 ++++------
9 jdk/make/javax/sound/SoundDefs.gmk | 6 ++--
10 .../share/native/com/sun/media/sound/SoundDefs.h | 2 +-
11 jdk/src/solaris/bin/i586/jvm.cfg | 38 --------------------
12 jdk/src/solaris/bin/x86/jvm.cfg | 38 ++++++++++++++++++++
13 6 files changed, 51 insertions(+), 55 deletions(-)
14 delete mode 100644 jdk/src/solaris/bin/i586/jvm.cfg
15 create mode 100644 jdk/src/solaris/bin/x86/jvm.cfg
16
17diff --git openjdk/jdk/make/common/shared/Compiler-gcc.gmk openjdk/jdk/make/common/shared/Compiler-gcc.gmk
18index e99068b..a05ca09 100644
19--- openjdk/jdk/make/common/shared/Compiler-gcc.gmk
20+++ openjdk/jdk/make/common/shared/Compiler-gcc.gmk
21@@ -91,8 +91,8 @@ ifeq ($(PLATFORM), linux)
22 REQUIRED_CC_VER = 3.2
23 REQUIRED_GCC_VER = 3.2.*
24 endif
25- ifeq ($(ARCH), i586)
26- # i586
27+ ifeq ($(ARCH), x86)
28+ # x86
29 REQUIRED_CC_VER = 3.2
30 REQUIRED_GCC_VER = 3.2.1*
31 REQUIRED_GCC_VER_INT = 3.2.1-7a
32diff --git openjdk/jdk/make/common/shared/Platform.gmk openjdk/jdk/make/common/shared/Platform.gmk
33index 5b21888..e508be0 100644
34--- openjdk/jdk/make/common/shared/Platform.gmk
35+++ openjdk/jdk/make/common/shared/Platform.gmk
36@@ -53,11 +53,11 @@ PLATFORM_SHARED=done
37 # VARIANT OPT or DBG, OPT is the default
38 # TEMP_DISK /tmp or C:/temp
39 # ARCH_DATA_MODEL 32 or 64
40-# ARCH sparc, sparcv9, i586, amd64, or ia64
41-# ARCH_FAMILY sparc or i586
42+# ARCH sparc, sparcv9, x86, amd64, or ia64
43+# ARCH_FAMILY sparc or x86
44 # ARCHPROP sparc or x86
45 # ARCH_VM_SUBDIR jre/bin, jre/lib/sparc, etc.
46-# LIBARCH sparc, sparcv9, i386, amd64, or ia64
47+# LIBARCH sparc, sparcv9, x86, amd64, or ia64
48 # DEV_NULL destination of /dev/null, NUL or /dev/NULL
49 # CLASSPATH_SEPARATOR separator in classpath, ; or :
50 # LIB_PREFIX dynamic or static library prefix, lib or empty
51@@ -67,7 +67,7 @@ PLATFORM_SHARED=done
52 # EXE_SUFFIX executable file suffix, .exe or empty
53 # BUNDLE_FILE_SUFFIX suffix for bundles: .tar or .tar.gz
54 # ISA_DIR solaris only: /sparcv9 or /amd64
55-# LIBARCH32 solaris only: sparc or i386
56+# LIBARCH32 solaris only: sparc or x86
57 # LIBARCH64 solaris only: sparcv9 or amd64
58 # USING_CYGWIN windows only: true or false
59 # ISHIELD_TEMP_MIN windows only: minimum disk space in temp area
60@@ -165,7 +165,7 @@ ifeq ($(SYSTEM_UNAME), Linux)
61 endif
62 archExpr = case "$(mach)" in \
63 i[3-9]86) \
64- echo i586 \
65+ echo x86 \
66 ;; \
67 ia64) \
68 echo ia64 \
69@@ -217,12 +217,8 @@ ifeq ($(SYSTEM_UNAME), Linux)
70 endif
71 endif
72
73- # Need to maintain the jre/lib/i386 location for 32-bit Intel
74- ifeq ($(ARCH), i586)
75- LIBARCH = i386
76- else
77- LIBARCH = $(ARCH)
78- endif
79+ # Need to maintain the jre/lib/x86 location for 32-bit Intel
80+ LIBARCH = $(ARCH)
81
82 # Value of Java os.arch property
83 ARCHPROP = $(LIBARCH)
84diff --git openjdk/jdk/make/javax/sound/SoundDefs.gmk openjdk/jdk/make/javax/sound/SoundDefs.gmk
85index 73b6e0d..055c71d 100644
86--- openjdk/jdk/make/javax/sound/SoundDefs.gmk
87+++ openjdk/jdk/make/javax/sound/SoundDefs.gmk
88@@ -70,9 +70,9 @@ else
89 CPPFLAGS += -DX_ARCH=X_ARM
90 endif # ARCH arm
91
92- ifeq ($(ARCH), i586)
93- CPPFLAGS += -DX_ARCH=X_I586
94- endif # ARCH i586
95+ ifeq ($(ARCH), x86)
96+ CPPFLAGS += -DX_ARCH=X_X86
97+ endif # ARCH x86
98
99 ifeq ($(ARCH), ia64)
100 CPPFLAGS += -DX_ARCH=X_IA64
101diff --git openjdk/jdk/src/share/native/com/sun/media/sound/SoundDefs.h openjdk/jdk/src/share/native/com/sun/media/sound/SoundDefs.h
102index 2810548..4d00827 100644
103--- openjdk/jdk/src/share/native/com/sun/media/sound/SoundDefs.h
104+++ openjdk/jdk/src/share/native/com/sun/media/sound/SoundDefs.h
105@@ -33,7 +33,7 @@
106 #define X_LINUX 3
107
108 // types for X_ARCH
109-#define X_I586 1
110+#define X_X86 1
111 #define X_SPARC 2
112 #define X_SPARCV9 3
113 #define X_IA64 4
114diff --git openjdk/jdk/src/solaris/bin/i586/jvm.cfg openjdk/jdk/src/solaris/bin/i586/jvm.cfg
115deleted file mode 100644
116index 0f8fe07..0000000
117--- openjdk/jdk/src/solaris/bin/i586/jvm.cfg
118+++ /dev/null
119@@ -1,38 +0,0 @@
120-# Copyright (c) 2001, 2004, Oracle and/or its affiliates. All rights reserved.
121-# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
122-#
123-# This code is free software; you can redistribute it and/or modify it
124-# under the terms of the GNU General Public License version 2 only, as
125-# published by the Free Software Foundation. Oracle designates this
126-# particular file as subject to the "Classpath" exception as provided
127-# by Oracle in the LICENSE file that accompanied this code.
128-#
129-# This code is distributed in the hope that it will be useful, but WITHOUT
130-# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
131-# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
132-# version 2 for more details (a copy is included in the LICENSE file that
133-# accompanied this code).
134-#
135-# You should have received a copy of the GNU General Public License version
136-# 2 along with this work; if not, write to the Free Software Foundation,
137-# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
138-#
139-# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
140-# or visit www.oracle.com if you need additional information or have any
141-# questions.
142-#
143-# List of JVMs that can be used as an option to java, javac, etc.
144-# Order is important -- first in this list is the default JVM.
145-# NOTE that this both this file and its format are UNSUPPORTED and
146-# WILL GO AWAY in a future release.
147-#
148-# You may also select a JVM in an arbitrary location with the
149-# "-XXaltjvm=<jvm_dir>" option, but that too is unsupported
150-# and may not be available in a future release.
151-#
152--client IF_SERVER_CLASS -server
153--server KNOWN
154--hotspot ALIASED_TO -client
155--classic WARN
156--native ERROR
157--green ERROR
158diff --git openjdk/jdk/src/solaris/bin/x86/jvm.cfg openjdk/jdk/src/solaris/bin/x86/jvm.cfg
159new file mode 100644
160index 0000000..0f8fe07
161--- /dev/null
162+++ openjdk/jdk/src/solaris/bin/x86/jvm.cfg
163@@ -0,0 +1,38 @@
164+# Copyright (c) 2001, 2004, Oracle and/or its affiliates. All rights reserved.
165+# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
166+#
167+# This code is free software; you can redistribute it and/or modify it
168+# under the terms of the GNU General Public License version 2 only, as
169+# published by the Free Software Foundation. Oracle designates this
170+# particular file as subject to the "Classpath" exception as provided
171+# by Oracle in the LICENSE file that accompanied this code.
172+#
173+# This code is distributed in the hope that it will be useful, but WITHOUT
174+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
175+# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
176+# version 2 for more details (a copy is included in the LICENSE file that
177+# accompanied this code).
178+#
179+# You should have received a copy of the GNU General Public License version
180+# 2 along with this work; if not, write to the Free Software Foundation,
181+# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
182+#
183+# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
184+# or visit www.oracle.com if you need additional information or have any
185+# questions.
186+#
187+# List of JVMs that can be used as an option to java, javac, etc.
188+# Order is important -- first in this list is the default JVM.
189+# NOTE that this both this file and its format are UNSUPPORTED and
190+# WILL GO AWAY in a future release.
191+#
192+# You may also select a JVM in an arbitrary location with the
193+# "-XXaltjvm=<jvm_dir>" option, but that too is unsupported
194+# and may not be available in a future release.
195+#
196+-client IF_SERVER_CLASS -server
197+-server KNOWN
198+-hotspot ALIASED_TO -client
199+-classic WARN
200+-native ERROR
201+-green ERROR
202--
2031.7.7
204