diff options
author | Henning Heinold <heinold@inf.fu-berlin.de> | 2012-11-22 18:47:13 +0100 |
---|---|---|
committer | Henning Heinold <heinold@inf.fu-berlin.de> | 2012-11-22 18:49:40 +0100 |
commit | 7dbdd2420d3888d8b7e4e1418ba1bbfe0b1f687c (patch) | |
tree | ca625d3583eee077c9750bd47a97b83e8ffef540 /recipes-core/icedtea/openjdk-7-03b147/icedtea-ecj-disable-compilation.patch | |
parent | e6e59540e4540dfca17c5904aad6fdc23cf6934e (diff) | |
download | meta-java-7dbdd2420d3888d8b7e4e1418ba1bbfe0b1f687c.tar.gz |
icedtea7-native: simple copy over from openjdk-7 branch
Diffstat (limited to 'recipes-core/icedtea/openjdk-7-03b147/icedtea-ecj-disable-compilation.patch')
-rw-r--r-- | recipes-core/icedtea/openjdk-7-03b147/icedtea-ecj-disable-compilation.patch | 840 |
1 files changed, 840 insertions, 0 deletions
diff --git a/recipes-core/icedtea/openjdk-7-03b147/icedtea-ecj-disable-compilation.patch b/recipes-core/icedtea/openjdk-7-03b147/icedtea-ecj-disable-compilation.patch new file mode 100644 index 0000000..a9ee96c --- /dev/null +++ b/recipes-core/icedtea/openjdk-7-03b147/icedtea-ecj-disable-compilation.patch | |||
@@ -0,0 +1,840 @@ | |||
1 | diff --git openjdk/jdk/make/common/Sanity.gmk openjdk/jdk/make/common/Sanity.gmk | ||
2 | index 27fe5bd..97ad549 100644 | ||
3 | --- openjdk/jdk/make/common/Sanity.gmk | ||
4 | +++ openjdk/jdk/make/common/Sanity.gmk | ||
5 | @@ -91,19 +91,7 @@ sanity-all:: sanity-base \ | ||
6 | sane-ld_run_path \ | ||
7 | sane-alt_bootdir \ | ||
8 | sane-bootdir \ | ||
9 | - sane-local-bootdir \ | ||
10 | - sane-alsa-headers | ||
11 | - | ||
12 | -ifdef OPENJDK | ||
13 | -sanity-all:: sane-freetype | ||
14 | -endif | ||
15 | - | ||
16 | - | ||
17 | -# Always check cups header paths on solaris & linux | ||
18 | -ifneq ($(PLATFORM), windows) | ||
19 | -sanity-all:: \ | ||
20 | - sane-cups | ||
21 | -endif | ||
22 | + sane-local-bootdir | ||
23 | |||
24 | # Always check hotspot binary paths even if we are building them from scratch | ||
25 | HOTSPOT_IMPORT_CHECK=true | ||
26 | diff --git openjdk/jdk/make/common/shared/Defs-java.gmk openjdk/jdk/make/common/shared/Defs-java.gmk | ||
27 | index 401f7db..bbd1157 100644 | ||
28 | --- openjdk/jdk/make/common/shared/Defs-java.gmk | ||
29 | +++ openjdk/jdk/make/common/shared/Defs-java.gmk | ||
30 | @@ -36,14 +36,6 @@ | ||
31 | # Memory related -J flags that all uses of java tools should use. | ||
32 | # | ||
33 | JAVA_MEM_FLAGS = -Xmx$(MAX_VM_MEMORY)m | ||
34 | -ifeq ($(ARCH), ia64) | ||
35 | - # Special flags for javac on ia64 to work around a VM problem with | ||
36 | - # bad code generation during inlining (what version had this problem?): | ||
37 | - # Suspect this may not be needed anymore. | ||
38 | - JAVA_MEM_FLAGS += -Xms$(MAX_VM_MEMORY)m -XX:-Inline | ||
39 | -else | ||
40 | - JAVA_MEM_FLAGS += -Xms$(MIN_VM_MEMORY)m -XX:PermSize=32m -XX:MaxPermSize=160m | ||
41 | -endif | ||
42 | |||
43 | # | ||
44 | # All java tools (javac, javah, and javadoc) run faster with certain java | ||
45 | diff --git openjdk/jdk/make/common/shared/Sanity.gmk openjdk/jdk/make/common/shared/Sanity.gmk | ||
46 | index a566d07..25ca978 100644 | ||
47 | --- openjdk/jdk/make/common/shared/Sanity.gmk | ||
48 | +++ openjdk/jdk/make/common/shared/Sanity.gmk | ||
49 | @@ -200,7 +200,6 @@ include $(JDK_MAKE_SHARED_DIR)/Sanity-Settings.gmk | ||
50 | sane-alt_bootdir \ | ||
51 | sane-bootdir \ | ||
52 | sane-local-bootdir \ | ||
53 | - sane-cups \ | ||
54 | sane-devtools_path \ | ||
55 | sane-compiler_path \ | ||
56 | sane-unixcommand_path \ | ||
57 | @@ -218,12 +217,10 @@ include $(JDK_MAKE_SHARED_DIR)/Sanity-Settings.gmk | ||
58 | sane-compiler \ | ||
59 | sane-link \ | ||
60 | sane-cacerts \ | ||
61 | - sane-alsa-headers \ | ||
62 | sane-ant_version \ | ||
63 | sane-zip_version \ | ||
64 | sane-unzip_version \ | ||
65 | - sane-msvcrt_path \ | ||
66 | - sane-freetype | ||
67 | + sane-msvcrt_path | ||
68 | |||
69 | ###################################################### | ||
70 | # check for COPYRIGHT_YEAR variable | ||
71 | diff --git openjdk/jdk/make/javax/sound/jsoundalsa/Makefile openjdk/jdk/make/javax/sound/jsoundalsa/Makefile | ||
72 | index 5fa0124..e56be17 100644 | ||
73 | --- openjdk/jdk/make/javax/sound/jsoundalsa/Makefile | ||
74 | +++ openjdk/jdk/make/javax/sound/jsoundalsa/Makefile | ||
75 | @@ -44,34 +44,11 @@ include $(BUILDDIR)/common/Mapfile-vers.gmk | ||
76 | # Files | ||
77 | # | ||
78 | |||
79 | -FILES_c = \ | ||
80 | - Utilities.c \ | ||
81 | - $(DAUDIOFILES_c) \ | ||
82 | - $(MIDIFILES_c) \ | ||
83 | - $(PORTFILES_c) | ||
84 | - | ||
85 | -# platform dependent files | ||
86 | -FILES_c += \ | ||
87 | - PLATFORM_API_LinuxOS_ALSA_CommonUtils.c \ | ||
88 | - PLATFORM_API_LinuxOS_ALSA_PCM.c \ | ||
89 | - PLATFORM_API_LinuxOS_ALSA_PCMUtils.c \ | ||
90 | - PLATFORM_API_LinuxOS_ALSA_MidiIn.c \ | ||
91 | - PLATFORM_API_LinuxOS_ALSA_MidiOut.c \ | ||
92 | - PLATFORM_API_LinuxOS_ALSA_MidiUtils.c \ | ||
93 | - PLATFORM_API_LinuxOS_ALSA_Ports.c | ||
94 | - | ||
95 | -FILES_export = \ | ||
96 | - $(DAUDIOFILES_export) \ | ||
97 | - $(MIDIFILES_export) \ | ||
98 | - $(PORTFILES_export) | ||
99 | - | ||
100 | -OTHER_LDLIBS += -lasound | ||
101 | - | ||
102 | CPPFLAGS += \ | ||
103 | - -DUSE_DAUDIO=TRUE \ | ||
104 | - -DUSE_PORTS=TRUE \ | ||
105 | - -DUSE_PLATFORM_MIDI_OUT=TRUE \ | ||
106 | - -DUSE_PLATFORM_MIDI_IN=TRUE \ | ||
107 | + -DUSE_DAUDIO=FALSE \ | ||
108 | + -DUSE_PORTS=FALSE \ | ||
109 | + -DUSE_PLATFORM_MIDI_OUT=FALSE \ | ||
110 | + -DUSE_PLATFORM_MIDI_IN=FALSE \ | ||
111 | -I$(SHARE_SRC)/native/com/sun/media/sound | ||
112 | |||
113 | # | ||
114 | diff --git openjdk/jdk/make/launchers/Makefile openjdk/jdk/make/launchers/Makefile | ||
115 | index cc07bbe..bdd7b1f 100644 | ||
116 | --- openjdk/jdk/make/launchers/Makefile | ||
117 | +++ openjdk/jdk/make/launchers/Makefile | ||
118 | @@ -43,18 +43,7 @@ $(MAKE) -f Makefile.launcher \ | ||
119 | MAIN_ARGS="$(strip $4)" | ||
120 | endef | ||
121 | |||
122 | -# Run MAKE $@ for all generic launchers | ||
123 | -ifndef BUILD_HEADLESS_ONLY | ||
124 | -define make-appletviewer | ||
125 | -$(call make-launcher, appletviewer, sun.applet.Main, , ) | ||
126 | -endef | ||
127 | -else | ||
128 | -define make-appletviewer | ||
129 | -endef | ||
130 | -endif | ||
131 | - | ||
132 | define make-all-launchers | ||
133 | -$(make-appletviewer) | ||
134 | $(call make-launcher, apt, com.sun.tools.apt.Main, , ) | ||
135 | $(call make-launcher, extcheck, com.sun.tools.extcheck.Main, , ) | ||
136 | $(call make-launcher, idlj, com.sun.tools.corba.se.idl.toJavaPortable.Compile, , ) | ||
137 | diff --git openjdk/jdk/make/sun/awt/Makefile openjdk/jdk/make/sun/awt/Makefile | ||
138 | index 43c9ad2..c29c167 100644 | ||
139 | --- openjdk/jdk/make/sun/awt/Makefile | ||
140 | +++ openjdk/jdk/make/sun/awt/Makefile | ||
141 | @@ -178,7 +178,7 @@ COMPILEFONTCONFIG_FLAGS = | ||
142 | ifdef ALT_COMPILEFONTCONFIG_FLAGS | ||
143 | COMPILEFONTCONFIG_FLAGS += $(ALT_COMPILEFONTCONFIG_FLAGS) | ||
144 | endif | ||
145 | -build: fontconfigs | ||
146 | +build: | ||
147 | |||
148 | |||
149 | ifeq ($(PLATFORM), windows) | ||
150 | @@ -503,10 +503,6 @@ CPPFLAGS += -I$(SHARE_SRC)/native/$(PKGDIR)/debug \ | ||
151 | -I$(PLATFORM_SRC)/native/$(PKGDIR) \ | ||
152 | $(EVENT_MODEL) | ||
153 | |||
154 | -ifeq ($(PLATFORM), linux) | ||
155 | -LDFLAGS += -L$(OPENWIN_LIB) | ||
156 | -endif | ||
157 | - | ||
158 | LDFLAGS += -L$(LIBDIR)/$(LIBARCH)/$(TSOBJDIR) \ | ||
159 | $(AWT_RUNPATH) | ||
160 | |||
161 | diff --git openjdk/jdk/make/sun/jawt/Makefile openjdk/jdk/make/sun/jawt/Makefile | ||
162 | index afbce78..ed6a1c3 100644 | ||
163 | --- openjdk/jdk/make/sun/jawt/Makefile | ||
164 | +++ openjdk/jdk/make/sun/jawt/Makefile | ||
165 | @@ -36,7 +36,7 @@ include $(BUILDDIR)/common/Defs.gmk | ||
166 | ifeq ($(PLATFORM), windows) | ||
167 | FILES_cpp = jawt.cpp | ||
168 | else # PLATFORM | ||
169 | -FILES_c = jawt.c | ||
170 | +FILES_c = | ||
171 | endif # PLATFORM | ||
172 | |||
173 | FILES_h = $(INCLUDEDIR)/jawt.h \ | ||
174 | diff --git openjdk/jdk/src/share/classes/java/awt/GraphicsEnvironment.java openjdk/jdk/src/share/classes/java/awt/GraphicsEnvironment.java | ||
175 | index cf3f1e5..657716a 100644 | ||
176 | --- openjdk/jdk/src/share/classes/java/awt/GraphicsEnvironment.java | ||
177 | +++ openjdk/jdk/src/share/classes/java/awt/GraphicsEnvironment.java | ||
178 | @@ -137,7 +137,7 @@ public abstract class GraphicsEnvironment { | ||
179 | * @since 1.4 | ||
180 | */ | ||
181 | public static boolean isHeadless() { | ||
182 | - return getHeadlessProperty(); | ||
183 | + return true; | ||
184 | } | ||
185 | |||
186 | /** | ||
187 | diff --git openjdk/jdk/src/solaris/native/sun/awt/CUPSfuncs.c openjdk/jdk/src/solaris/native/sun/awt/CUPSfuncs.c | ||
188 | index 483f6f7..90812ee 100644 | ||
189 | --- openjdk/jdk/src/solaris/native/sun/awt/CUPSfuncs.c | ||
190 | +++ openjdk/jdk/src/solaris/native/sun/awt/CUPSfuncs.c | ||
191 | @@ -25,12 +25,6 @@ | ||
192 | |||
193 | #include <jni.h> | ||
194 | #include <jni_util.h> | ||
195 | -#include <cups/cups.h> | ||
196 | -#include <cups/ppd.h> | ||
197 | - | ||
198 | -#ifndef USE_SYSTEM_CUPS | ||
199 | -#include <cups_fp.h> | ||
200 | -#endif | ||
201 | |||
202 | //#define CUPS_DEBUG | ||
203 | |||
204 | @@ -47,11 +41,7 @@ | ||
205 | JNIEXPORT jboolean JNICALL | ||
206 | Java_sun_print_CUPSPrinter_initIDs(JNIEnv *env, | ||
207 | jobject printObj) { | ||
208 | -#ifndef USE_SYSTEM_CUPS | ||
209 | - return cups_init(); | ||
210 | -#else | ||
211 | return JNI_TRUE; | ||
212 | -#endif | ||
213 | } | ||
214 | |||
215 | /* | ||
216 | @@ -62,17 +52,7 @@ JNIEXPORT jstring JNICALL | ||
217 | Java_sun_print_CUPSPrinter_getCupsServer(JNIEnv *env, | ||
218 | jobject printObj) | ||
219 | { | ||
220 | - jstring cServer = NULL; | ||
221 | - const char* server = cupsServer(); | ||
222 | - if (server != NULL) { | ||
223 | - // Is this a local domain socket? | ||
224 | - if (strncmp(server, "/", 1) == 0) { | ||
225 | - cServer = JNU_NewStringPlatform(env, "localhost"); | ||
226 | - } else { | ||
227 | - cServer = JNU_NewStringPlatform(env, server); | ||
228 | - } | ||
229 | - } | ||
230 | - return cServer; | ||
231 | + return NULL; | ||
232 | } | ||
233 | |||
234 | /* | ||
235 | @@ -83,8 +63,7 @@ JNIEXPORT jint JNICALL | ||
236 | Java_sun_print_CUPSPrinter_getCupsPort(JNIEnv *env, | ||
237 | jobject printObj) | ||
238 | { | ||
239 | - int port = ippPort(); | ||
240 | - return (jint) port; | ||
241 | + return 8080; | ||
242 | } | ||
243 | |||
244 | |||
245 | @@ -98,16 +77,6 @@ Java_sun_print_CUPSPrinter_canConnect(JNIEnv *env, | ||
246 | jstring server, | ||
247 | jint port) | ||
248 | { | ||
249 | - const char *serverName; | ||
250 | - serverName = (*env)->GetStringUTFChars(env, server, NULL); | ||
251 | - if (serverName != NULL) { | ||
252 | - http_t *http = httpConnect(serverName, (int)port); | ||
253 | - (*env)->ReleaseStringUTFChars(env, server, serverName); | ||
254 | - if (http != NULL) { | ||
255 | - httpClose(http); | ||
256 | - return JNI_TRUE; | ||
257 | - } | ||
258 | - } | ||
259 | return JNI_FALSE; | ||
260 | } | ||
261 | |||
262 | @@ -120,111 +89,7 @@ Java_sun_print_CUPSPrinter_getMedia(JNIEnv *env, | ||
263 | jobject printObj, | ||
264 | jstring printer) | ||
265 | { | ||
266 | - ppd_file_t *ppd; | ||
267 | - ppd_option_t *optionTray, *optionPage; | ||
268 | - ppd_choice_t *choice; | ||
269 | - const char *name; | ||
270 | - const char *filename; | ||
271 | - int i, nTrays=0, nPages=0, nTotal=0; | ||
272 | - jstring utf_str; | ||
273 | - jclass cls; | ||
274 | - jobjectArray nameArray = NULL; | ||
275 | - | ||
276 | - name = (*env)->GetStringUTFChars(env, printer, NULL); | ||
277 | - if (name == NULL) { | ||
278 | - return NULL; | ||
279 | - } | ||
280 | - | ||
281 | - // NOTE: cupsGetPPD returns a pointer to a filename of a temporary file. | ||
282 | - // unlink() must be caled to remove the file when finished using it. | ||
283 | - filename = cupsGetPPD(name); | ||
284 | - (*env)->ReleaseStringUTFChars(env, printer, name); | ||
285 | - | ||
286 | - cls = (*env)->FindClass(env, "java/lang/String"); | ||
287 | - | ||
288 | - if (filename == NULL) { | ||
289 | - return NULL; | ||
290 | - } | ||
291 | - | ||
292 | - if ((ppd = ppdOpenFile(filename)) == NULL) { | ||
293 | - unlink(filename); | ||
294 | - DPRINTF("CUPSfuncs::unable to open PPD %s\n", filename); | ||
295 | - return NULL; | ||
296 | - } | ||
297 | - | ||
298 | - optionPage = ppdFindOption(ppd, "PageSize"); | ||
299 | - if (optionPage != NULL) { | ||
300 | - nPages = optionPage->num_choices; | ||
301 | - } | ||
302 | - | ||
303 | - optionTray = ppdFindOption(ppd, "InputSlot"); | ||
304 | - if (optionTray != NULL) { | ||
305 | - nTrays = optionTray->num_choices; | ||
306 | - } | ||
307 | - | ||
308 | - if ((nTotal = (nPages+nTrays) *2) > 0) { | ||
309 | - nameArray = (*env)->NewObjectArray(env, nTotal, cls, NULL); | ||
310 | - if (nameArray == NULL) { | ||
311 | - unlink(filename); | ||
312 | - ppdClose(ppd); | ||
313 | - DPRINTF("CUPSfuncs::bad alloc new array\n", "") | ||
314 | - JNU_ThrowOutOfMemoryError(env, "OutOfMemoryError"); | ||
315 | - return NULL; | ||
316 | - } | ||
317 | - | ||
318 | - for (i = 0; optionPage!=NULL && i<nPages; i++) { | ||
319 | - choice = (optionPage->choices)+i; | ||
320 | - utf_str = JNU_NewStringPlatform(env, choice->text); | ||
321 | - if (utf_str == NULL) { | ||
322 | - unlink(filename); | ||
323 | - ppdClose(ppd); | ||
324 | - DPRINTF("CUPSfuncs::bad alloc new string ->text\n", "") | ||
325 | - JNU_ThrowOutOfMemoryError(env, "OutOfMemoryError"); | ||
326 | - return NULL; | ||
327 | - } | ||
328 | - (*env)->SetObjectArrayElement(env, nameArray, i*2, utf_str); | ||
329 | - (*env)->DeleteLocalRef(env, utf_str); | ||
330 | - utf_str = JNU_NewStringPlatform(env, choice->choice); | ||
331 | - if (utf_str == NULL) { | ||
332 | - unlink(filename); | ||
333 | - ppdClose(ppd); | ||
334 | - DPRINTF("CUPSfuncs::bad alloc new string ->choice\n", "") | ||
335 | - JNU_ThrowOutOfMemoryError(env, "OutOfMemoryError"); | ||
336 | - return NULL; | ||
337 | - } | ||
338 | - (*env)->SetObjectArrayElement(env, nameArray, i*2+1, utf_str); | ||
339 | - (*env)->DeleteLocalRef(env, utf_str); | ||
340 | - } | ||
341 | - | ||
342 | - for (i = 0; optionTray!=NULL && i<nTrays; i++) { | ||
343 | - choice = (optionTray->choices)+i; | ||
344 | - utf_str = JNU_NewStringPlatform(env, choice->text); | ||
345 | - if (utf_str == NULL) { | ||
346 | - unlink(filename); | ||
347 | - ppdClose(ppd); | ||
348 | - DPRINTF("CUPSfuncs::bad alloc new string text\n", "") | ||
349 | - JNU_ThrowOutOfMemoryError(env, "OutOfMemoryError"); | ||
350 | - return NULL; | ||
351 | - } | ||
352 | - (*env)->SetObjectArrayElement(env, nameArray, | ||
353 | - (nPages+i)*2, utf_str); | ||
354 | - (*env)->DeleteLocalRef(env, utf_str); | ||
355 | - utf_str = JNU_NewStringPlatform(env, choice->choice); | ||
356 | - if (utf_str == NULL) { | ||
357 | - unlink(filename); | ||
358 | - ppdClose(ppd); | ||
359 | - DPRINTF("CUPSfuncs::bad alloc new string choice\n", "") | ||
360 | - JNU_ThrowOutOfMemoryError(env, "OutOfMemoryError"); | ||
361 | - return NULL; | ||
362 | - } | ||
363 | - (*env)->SetObjectArrayElement(env, nameArray, | ||
364 | - (nPages+i)*2+1, utf_str); | ||
365 | - (*env)->DeleteLocalRef(env, utf_str); | ||
366 | - } | ||
367 | - } | ||
368 | - ppdClose(ppd); | ||
369 | - unlink(filename); | ||
370 | - return nameArray; | ||
371 | + return NULL; | ||
372 | } | ||
373 | |||
374 | |||
375 | @@ -236,63 +101,5 @@ Java_sun_print_CUPSPrinter_getPageSizes(JNIEnv *env, | ||
376 | jobject printObj, | ||
377 | jstring printer) | ||
378 | { | ||
379 | - ppd_file_t *ppd; | ||
380 | - ppd_option_t *option; | ||
381 | - ppd_choice_t *choice; | ||
382 | - ppd_size_t *size; | ||
383 | - | ||
384 | - const char *name = (*env)->GetStringUTFChars(env, printer, NULL); | ||
385 | - const char *filename; | ||
386 | - int i; | ||
387 | - jobjectArray sizeArray = NULL; | ||
388 | - jfloat *dims; | ||
389 | - | ||
390 | - // NOTE: cupsGetPPD returns a pointer to a filename of a temporary file. | ||
391 | - // unlink() must be called to remove the file after using it. | ||
392 | - filename = cupsGetPPD(name); | ||
393 | - (*env)->ReleaseStringUTFChars(env, printer, name); | ||
394 | - if (filename == NULL) { | ||
395 | - return NULL; | ||
396 | - } | ||
397 | - if ((ppd = ppdOpenFile(filename)) == NULL) { | ||
398 | - unlink(filename); | ||
399 | - DPRINTF("unable to open PPD %s\n", filename) | ||
400 | - return NULL; | ||
401 | - } | ||
402 | - option = ppdFindOption(ppd, "PageSize"); | ||
403 | - if (option != NULL && option->num_choices > 0) { | ||
404 | - // create array of dimensions - (num_choices * 6) | ||
405 | - //to cover length & height | ||
406 | - DPRINTF( "CUPSfuncs::option->num_choices %d\n", option->num_choices) | ||
407 | - sizeArray = (*env)->NewFloatArray(env, option->num_choices*6); | ||
408 | - if (sizeArray == NULL) { | ||
409 | - unlink(filename); | ||
410 | - ppdClose(ppd); | ||
411 | - DPRINTF("CUPSfuncs::bad alloc new float array\n", "") | ||
412 | - JNU_ThrowOutOfMemoryError(env, "OutOfMemoryError"); | ||
413 | - return NULL; | ||
414 | - } | ||
415 | - | ||
416 | - dims = (*env)->GetFloatArrayElements(env, sizeArray, NULL); | ||
417 | - for (i = 0; i<option->num_choices; i++) { | ||
418 | - choice = (option->choices)+i; | ||
419 | - size = ppdPageSize(ppd, choice->choice); | ||
420 | - if (size != NULL) { | ||
421 | - // paper width and height | ||
422 | - dims[i*6] = size->width; | ||
423 | - dims[(i*6)+1] = size->length; | ||
424 | - // paper printable area | ||
425 | - dims[(i*6)+2] = size->left; | ||
426 | - dims[(i*6)+3] = size->top; | ||
427 | - dims[(i*6)+4] = size->right; | ||
428 | - dims[(i*6)+5] = size->bottom; | ||
429 | - } | ||
430 | - } | ||
431 | - | ||
432 | - (*env)->ReleaseFloatArrayElements(env, sizeArray, dims, 0); | ||
433 | - } | ||
434 | - | ||
435 | - ppdClose(ppd); | ||
436 | - unlink(filename); | ||
437 | - return sizeArray; | ||
438 | + return NULL; | ||
439 | } | ||
440 | diff --git openjdk/jdk/make/sun/Makefile openjdk/jdk/make/sun/Makefile | ||
441 | index 4c19f4e..ef0e8be 100644 | ||
442 | --- openjdk/jdk/make/sun/Makefile | ||
443 | +++ openjdk/jdk/make/sun/Makefile | ||
444 | @@ -74,7 +74,7 @@ ifdef BUILD_HEADLESS_ONLY | ||
445 | DISPLAY_LIBS = awt $(HEADLESS_SUBDIR) | ||
446 | DISPLAY_TOOLS = | ||
447 | else | ||
448 | - DISPLAY_LIBS = awt splashscreen $(XAWT_SUBDIR) $(HEADLESS_SUBDIR) | ||
449 | + DISPLAY_LIBS = awt $(XAWT_SUBDIR) $(HEADLESS_SUBDIR) | ||
450 | DISPLAY_TOOLS = applet | ||
451 | endif | ||
452 | SUBDIRS_desktop = audio $(RENDER_SUBDIR) image \ | ||
453 | diff --git openjdk/jdk/make/sun/xawt/Makefile openjdk/jdk/make/sun/xawt/Makefile | ||
454 | index e7d54e2..de23453 100644 | ||
455 | --- openjdk/jdk/make/sun/xawt/Makefile | ||
456 | +++ openjdk/jdk/make/sun/xawt/Makefile | ||
457 | @@ -46,15 +46,12 @@ include FILES_export_unix.gmk | ||
458 | AUTO_FILES_JAVA_DIRS = sun/awt/X11 | ||
459 | AUTO_JAVA_PRUNE = WrapperGenerator.java | ||
460 | |||
461 | -LDFLAGS += -L$(OPENWIN_LIB) | ||
462 | - | ||
463 | # For Xrender extension. | ||
464 | ifeq ($(PLATFORM), solaris) | ||
465 | LDFLAGS += -L/usr/openwin/sfw/lib$(ISA_DIR) -R/usr/openwin/sfw/lib$(ISA_DIR) | ||
466 | endif | ||
467 | |||
468 | ifeq ($(PLATFORM), linux) | ||
469 | -LDFLAGS += -lpthread | ||
470 | dummy := $(shell $(MKDIR) -p $(LIB_LOCATION)) | ||
471 | endif | ||
472 | |||
473 | @@ -96,9 +93,7 @@ ifndef USE_SYSTEM_GIO | ||
474 | vpath %.c $(PLATFORM_SRC)/native/common/deps/glib2 | ||
475 | endif | ||
476 | |||
477 | -ifndef USE_SYSTEM_GTK | ||
478 | vpath %.c $(PLATFORM_SRC)/native/common/deps/gtk2 | ||
479 | -endif | ||
480 | |||
481 | ifndef USE_SYSTEM_CUPS | ||
482 | vpath %.c $(PLATFORM_SRC)/native/common/deps | ||
483 | @@ -109,15 +104,7 @@ vpath %.c $(PLATFORM_SRC)/native/common/deps/fontconfig2 | ||
484 | endif | ||
485 | |||
486 | OTHER_LDLIBS = $(LIBM) -lawt -lXext -lX11 -lXrender -ldl \ | ||
487 | - $(LDFLAGS_COMMON) $(AWT_RUNPATH) $(OTHER_LDFLAGS) -lXtst -lXi | ||
488 | - | ||
489 | -ifdef USE_SYSTEM_GTK | ||
490 | - OTHER_LDLIBS += $(GTK_LIBS) | ||
491 | -endif | ||
492 | - | ||
493 | -ifdef USE_SYSTEM_CUPS | ||
494 | - OTHER_LDLIBS += $(CUPS_LIBS) | ||
495 | -endif | ||
496 | + $(LDFLAGS_COMMON) $(AWT_RUNPATH) $(OTHER_LDFLAGS) | ||
497 | |||
498 | ifdef USE_SYSTEM_FONTCONFIG | ||
499 | OTHER_LDLIBS += $(FONTCONFIG_LIBS) | ||
500 | @@ -132,12 +119,6 @@ CPPFLAGS += -DFUNCPROTO=15 | ||
501 | dummy := $(shell $(MKDIR) -p $(LIB_LOCATION)) | ||
502 | endif | ||
503 | |||
504 | -ifdef CUPS_CFLAGS | ||
505 | - CPPFLAGS += $(CUPS_CFLAGS) | ||
506 | -else | ||
507 | - CPPFLAGS += -I$(CUPS_HEADERS_PATH) | ||
508 | -endif | ||
509 | - | ||
510 | CPPFLAGS += -DXAWT -DXAWT_HACK \ | ||
511 | -I$(TEMPDIR)/../../sun.awt/awt/CClassHeaders \ | ||
512 | -I$(PLATFORM_SRC)/native/sun/awt \ | ||
513 | @@ -164,17 +145,7 @@ CPPFLAGS += -DXAWT -DXAWT_HACK \ | ||
514 | -I$(SHARE_SRC)/native/sun/awt \ | ||
515 | -I$(PLATFORM_SRC)/native/sun/awt | ||
516 | |||
517 | -ifdef USE_SYSTEM_GTK | ||
518 | - CPPFLAGS += $(GTK_CFLAGS) -DUSE_SYSTEM_GTK | ||
519 | -else | ||
520 | - CPPFLAGS += -I$(PLATFORM_SRC)/native/common/deps/gtk2 | ||
521 | -endif | ||
522 | - | ||
523 | -ifdef USE_SYSTEM_CUPS | ||
524 | - CPPFLAGS += -DUSE_SYSTEM_CUPS | ||
525 | -else | ||
526 | - CPPFLAGS += -I$(PLATFORM_SRC)/native/common/deps | ||
527 | -endif | ||
528 | +CPPFLAGS += -I$(PLATFORM_SRC)/native/common/deps/gtk2 | ||
529 | |||
530 | ifdef USE_SYSTEM_FONTCONFIG | ||
531 | CPPFLAGS += $(FONTCONFIG_CFLAGS) -DUSE_SYSTEM_FONTCONFIG | ||
532 | @@ -188,20 +159,6 @@ else | ||
533 | CPPFLAGS += -I$(PLATFORM_SRC)/native/common/deps/glib2 | ||
534 | endif | ||
535 | |||
536 | -ifeq ($(PLATFORM), linux) | ||
537 | - ifndef CROSS_COMPILE_ARCH | ||
538 | - # Allows for builds on Debian GNU Linux, X11 is in a different place | ||
539 | - # This should really be handled at a higher-level so we don't have to | ||
540 | - # work-around this when cross-compiling | ||
541 | - CPPFLAGS += -I/usr/X11R6/include/X11/extensions \ | ||
542 | - -I/usr/include/X11/extensions \ | ||
543 | - -I$(OPENWIN_HOME)/include | ||
544 | - else | ||
545 | - CPPFLAGS += -I$(OPENWIN_HOME)/include/X11/extensions \ | ||
546 | - -I$(OPENWIN_HOME)/include | ||
547 | - endif | ||
548 | -endif | ||
549 | - | ||
550 | # We have some odd logic here because some Solaris 10 updates | ||
551 | # have a render.h file that suggests gradients are supported, but | ||
552 | # the Xrender.h doesn't have the corresponding type definitions. | ||
553 | diff --git openjdk/jdk/make/sun/xawt/FILES_c_unix.gmk openjdk/jdk/make/sun/xawt/FILES_c_unix.gmk | ||
554 | index 57b34c3..c629f78 100644 | ||
555 | --- openjdk/jdk/make/sun/xawt/FILES_c_unix.gmk | ||
556 | +++ openjdk/jdk/make/sun/xawt/FILES_c_unix.gmk | ||
557 | @@ -84,15 +84,8 @@ FILES_c = \ | ||
558 | XRSurfaceData.c \ | ||
559 | XRBackendNative.c | ||
560 | |||
561 | -ifndef USE_SYSTEM_GTK | ||
562 | FILES_c += \ | ||
563 | gtk_fp.c | ||
564 | -endif | ||
565 | - | ||
566 | -ifndef USE_SYSTEM_CUPS | ||
567 | -FILES_c += \ | ||
568 | - cups_fp.c | ||
569 | -endif | ||
570 | |||
571 | ifndef USE_SYSTEM_FONTCONFIG | ||
572 | FILES_c += \ | ||
573 | diff --git openjdk/jdk/make/sun/awt/FILES_c_unix.gmk openjdk/jdk/make/sun/awt/FILES_c_unix.gmk | ||
574 | index dc1f61e..489abc1 100644 | ||
575 | --- openjdk/jdk/make/sun/awt/FILES_c_unix.gmk | ||
576 | +++ openjdk/jdk/make/sun/awt/FILES_c_unix.gmk | ||
577 | @@ -230,11 +230,6 @@ FILES_NO_MOTIF_c = \ | ||
578 | AccelGlyphCache.c \ | ||
579 | CUPSfuncs.c | ||
580 | |||
581 | -ifndef USE_SYSTEM_CUPS | ||
582 | -FILES_NO_MOTIF_c += \ | ||
583 | - cups_fp.c | ||
584 | -endif | ||
585 | - | ||
586 | ifndef USE_SYSTEM_FONTCONFIG | ||
587 | FILES_NO_MOTIF_c += \ | ||
588 | fontconfig_fp.c | ||
589 | diff --git openjdk/jdk/src/solaris/native/sun/java2d/x11/XRSurfaceData.c openjdk/jdk/src/solaris/native/sun/java2d/x11/XRSurfaceData.c | ||
590 | index 5de53ca..b598a22 100644 | ||
591 | --- openjdk/jdk/src/solaris/native/sun/java2d/x11/XRSurfaceData.c | ||
592 | +++ openjdk/jdk/src/solaris/native/sun/java2d/x11/XRSurfaceData.c | ||
593 | @@ -29,7 +29,7 @@ | ||
594 | #include "X11SurfaceData.h" | ||
595 | |||
596 | /*#include <xcb/xcb.h>*/ | ||
597 | -#include <Xrender.h> | ||
598 | +#include <X11/extensions/Xrender.h> | ||
599 | |||
600 | #ifndef RepeatNone /* added in 0.10 */ | ||
601 | #define RepeatNone 0 | ||
602 | diff --git openjdk/jdk/src/solaris/native/sun/awt/awt_Robot.c openjdk/jdk/src/solaris/native/sun/awt/awt_Robot.c | ||
603 | index c3384b2..867e40f 100644 | ||
604 | --- openjdk/jdk/src/solaris/native/sun/awt/awt_Robot.c | ||
605 | +++ openjdk/jdk/src/solaris/native/sun/awt/awt_Robot.c | ||
606 | @@ -35,10 +35,6 @@ | ||
607 | #include <X11/Intrinsic.h> | ||
608 | #include <X11/Xutil.h> | ||
609 | #include <X11/Xmd.h> | ||
610 | -#include <X11/extensions/xtestext1.h> | ||
611 | -#include <X11/extensions/XTest.h> | ||
612 | -#include <X11/extensions/XInput.h> | ||
613 | -#include <X11/extensions/XI.h> | ||
614 | #include <jni.h> | ||
615 | #include "robot_common.h" | ||
616 | #include "canvas.h" | ||
617 | @@ -55,37 +51,7 @@ static jint * masks; | ||
618 | static jint num_buttons; | ||
619 | |||
620 | static int32_t isXTestAvailable() { | ||
621 | - int32_t major_opcode, first_event, first_error; | ||
622 | - int32_t event_basep, error_basep, majorp, minorp; | ||
623 | - int32_t isXTestAvailable; | ||
624 | - | ||
625 | - /* check if XTest is available */ | ||
626 | - isXTestAvailable = XQueryExtension(awt_display, XTestExtensionName, &major_opcode, &first_event, &first_error); | ||
627 | - DTRACE_PRINTLN3("RobotPeer: XQueryExtension(XTEST) returns major_opcode = %d, first_event = %d, first_error = %d", | ||
628 | - major_opcode, first_event, first_error); | ||
629 | - if (isXTestAvailable) { | ||
630 | - /* check if XTest version is OK */ | ||
631 | - XTestQueryExtension(awt_display, &event_basep, &error_basep, &majorp, &minorp); | ||
632 | - DTRACE_PRINTLN4("RobotPeer: XTestQueryExtension returns event_basep = %d, error_basep = %d, majorp = %d, minorp = %d", | ||
633 | - event_basep, error_basep, majorp, minorp); | ||
634 | - if (majorp < 2 || (majorp == 2 && minorp < 2)) { | ||
635 | - /* bad version*/ | ||
636 | - DTRACE_PRINTLN2("XRobotPeer: XTEST version is %d.%d \n", majorp, minorp); | ||
637 | - if (majorp == 2 && minorp == 1) { | ||
638 | - DTRACE_PRINTLN("XRobotPeer: XTEST is 2.1 - no grab is available\n"); | ||
639 | - } else { | ||
640 | - isXTestAvailable = False; | ||
641 | - } | ||
642 | - } else { | ||
643 | - /* allow XTest calls even if someone else has the grab; e.g. during | ||
644 | - * a window resize operation. Works only with XTEST2.2*/ | ||
645 | - XTestGrabControl(awt_display, True); | ||
646 | - } | ||
647 | - } else { | ||
648 | - DTRACE_PRINTLN("RobotPeer: XTEST extension is unavailable"); | ||
649 | - } | ||
650 | - | ||
651 | - return isXTestAvailable; | ||
652 | + return False; | ||
653 | } | ||
654 | |||
655 | |||
656 | @@ -265,37 +231,12 @@ Java_sun_awt_X11_XRobotPeer_keyPressImpl (JNIEnv *env, | ||
657 | jclass cls, | ||
658 | jint keycode) { | ||
659 | |||
660 | - AWT_LOCK(); | ||
661 | - | ||
662 | - DTRACE_PRINTLN1("RobotPeer: keyPressImpl(%i)", keycode); | ||
663 | - | ||
664 | - XTestFakeKeyEvent(awt_display, | ||
665 | - XKeysymToKeycode(awt_display, awt_getX11KeySym(keycode)), | ||
666 | - True, | ||
667 | - CurrentTime); | ||
668 | - | ||
669 | - XSync(awt_display, False); | ||
670 | - | ||
671 | - AWT_UNLOCK(); | ||
672 | - | ||
673 | } | ||
674 | |||
675 | JNIEXPORT void JNICALL | ||
676 | Java_sun_awt_X11_XRobotPeer_keyReleaseImpl (JNIEnv *env, | ||
677 | jclass cls, | ||
678 | jint keycode) { | ||
679 | - AWT_LOCK(); | ||
680 | - | ||
681 | - DTRACE_PRINTLN1("RobotPeer: keyReleaseImpl(%i)", keycode); | ||
682 | - | ||
683 | - XTestFakeKeyEvent(awt_display, | ||
684 | - XKeysymToKeycode(awt_display, awt_getX11KeySym(keycode)), | ||
685 | - False, | ||
686 | - CurrentTime); | ||
687 | - | ||
688 | - XSync(awt_display, False); | ||
689 | - | ||
690 | - AWT_UNLOCK(); | ||
691 | } | ||
692 | |||
693 | JNIEXPORT void JNICALL | ||
694 | @@ -328,43 +269,6 @@ void mouseAction(JNIEnv *env, | ||
695 | jint buttonMask, | ||
696 | Bool isMousePress) | ||
697 | { | ||
698 | - AWT_LOCK(); | ||
699 | - | ||
700 | - DTRACE_PRINTLN1("RobotPeer: mouseAction(%i)", buttonMask); | ||
701 | - DTRACE_PRINTLN1("RobotPeer: mouseAction, press = %d", isMousePress); | ||
702 | - | ||
703 | - if (buttonMask & java_awt_event_InputEvent_BUTTON1_MASK || | ||
704 | - buttonMask & java_awt_event_InputEvent_BUTTON1_DOWN_MASK ) | ||
705 | - { | ||
706 | - XTestFakeButtonEvent(awt_display, 1, isMousePress, CurrentTime); | ||
707 | - } | ||
708 | - if ((buttonMask & java_awt_event_InputEvent_BUTTON2_MASK || | ||
709 | - buttonMask & java_awt_event_InputEvent_BUTTON2_DOWN_MASK) && | ||
710 | - (num_buttons >= 2)) { | ||
711 | - XTestFakeButtonEvent(awt_display, 2, isMousePress, CurrentTime); | ||
712 | - } | ||
713 | - if ((buttonMask & java_awt_event_InputEvent_BUTTON3_MASK || | ||
714 | - buttonMask & java_awt_event_InputEvent_BUTTON3_DOWN_MASK) && | ||
715 | - (num_buttons >= 3)) { | ||
716 | - XTestFakeButtonEvent(awt_display, 3, isMousePress, CurrentTime); | ||
717 | - } | ||
718 | - | ||
719 | - if (num_buttons > 3){ | ||
720 | - int32_t i; | ||
721 | - int32_t button = 0; | ||
722 | - for (i = 3; i<num_buttons; i++){ | ||
723 | - if ((buttonMask & masks[i])) { | ||
724 | - // arrays starts from zero index => +1 | ||
725 | - // users wants to affect 4 or 5 button but they are assigned | ||
726 | - // to the wheel so => we have to shift it to the right by 2. | ||
727 | - button = i + 3; | ||
728 | - XTestFakeButtonEvent(awt_display, button, isMousePress, CurrentTime); | ||
729 | - } | ||
730 | - } | ||
731 | - } | ||
732 | - | ||
733 | - XSync(awt_display, False); | ||
734 | - AWT_UNLOCK(); | ||
735 | } | ||
736 | |||
737 | JNIEXPORT void JNICALL | ||
738 | @@ -389,22 +293,4 @@ Java_sun_awt_X11_XRobotPeer_mouseWheelImpl (JNIEnv *env, | ||
739 | /* probably could have been hacked into robot_mouseButtonEvent, but it's */ | ||
740 | /* cleaner to give it its own command type, in case the implementation */ | ||
741 | /* needs to be changed later. -bchristi, 6/20/01 */ | ||
742 | - | ||
743 | - int32_t repeat = abs(wheelAmt); | ||
744 | - int32_t button = wheelAmt < 0 ? 4 : 5; /* wheel up: button 4 */ | ||
745 | - /* wheel down: button 5 */ | ||
746 | - int32_t loopIdx; | ||
747 | - | ||
748 | - AWT_LOCK(); | ||
749 | - | ||
750 | - DTRACE_PRINTLN1("RobotPeer: mouseWheelImpl(%i)", wheelAmt); | ||
751 | - | ||
752 | - for (loopIdx = 0; loopIdx < repeat; loopIdx++) { /* do nothing for */ | ||
753 | - /* wheelAmt == 0 */ | ||
754 | - XTestFakeButtonEvent(awt_display, button, True, CurrentTime); | ||
755 | - XTestFakeButtonEvent(awt_display, button, False, CurrentTime); | ||
756 | - } | ||
757 | - XSync(awt_display, False); | ||
758 | - | ||
759 | - AWT_UNLOCK(); | ||
760 | } | ||
761 | diff --git openjdk/jdk/src/solaris/native/sun/xawt/XToolkit.c openjdk/jdk/src/solaris/native/sun/xawt/XToolkit.c | ||
762 | index 0e6d021..7dc1c5d 100644 | ||
763 | --- openjdk/jdk/src/solaris/native/sun/xawt/XToolkit.c | ||
764 | +++ openjdk/jdk/src/solaris/native/sun/xawt/XToolkit.c | ||
765 | @@ -45,7 +45,6 @@ | ||
766 | #include "sun_awt_X11_XToolkit.h" | ||
767 | #include "java_awt_SystemColor.h" | ||
768 | #include "java_awt_TrayIcon.h" | ||
769 | -#include <X11/extensions/XTest.h> | ||
770 | |||
771 | #include <unistd.h> | ||
772 | |||
773 | @@ -1028,66 +1027,7 @@ JNIEXPORT jint JNICALL Java_sun_awt_X11_XToolkit_getNumberOfButtonsImpl | ||
774 | } | ||
775 | |||
776 | int32_t getNumButtons() { | ||
777 | - int32_t major_opcode, first_event, first_error; | ||
778 | - int32_t xinputAvailable; | ||
779 | - int32_t numDevices, devIdx, clsIdx; | ||
780 | - XDeviceInfo* devices; | ||
781 | - XDeviceInfo* aDevice; | ||
782 | - XButtonInfo* bInfo; | ||
783 | - int32_t local_num_buttons = 0; | ||
784 | - | ||
785 | - /* 4700242: | ||
786 | - * If XTest is asked to press a non-existant mouse button | ||
787 | - * (i.e. press Button3 on a system configured with a 2-button mouse), | ||
788 | - * then a crash may happen. To avoid this, we use the XInput | ||
789 | - * extension to query for the number of buttons on the XPointer, and check | ||
790 | - * before calling XTestFakeButtonEvent(). | ||
791 | - */ | ||
792 | - xinputAvailable = XQueryExtension(awt_display, INAME, &major_opcode, &first_event, &first_error); | ||
793 | - DTRACE_PRINTLN3("RobotPeer: XQueryExtension(XINPUT) returns major_opcode = %d, first_event = %d, first_error = %d", | ||
794 | - major_opcode, first_event, first_error); | ||
795 | - if (xinputAvailable) { | ||
796 | - devices = XListInputDevices(awt_display, &numDevices); | ||
797 | - for (devIdx = 0; devIdx < numDevices; devIdx++) { | ||
798 | - aDevice = &(devices[devIdx]); | ||
799 | -#ifdef IsXExtensionPointer | ||
800 | - if (aDevice->use == IsXExtensionPointer) { | ||
801 | - for (clsIdx = 0; clsIdx < aDevice->num_classes; clsIdx++) { | ||
802 | - if (aDevice->inputclassinfo[clsIdx].class == ButtonClass) { | ||
803 | - bInfo = (XButtonInfo*)(&(aDevice->inputclassinfo[clsIdx])); | ||
804 | - local_num_buttons = bInfo->num_buttons; | ||
805 | - DTRACE_PRINTLN1("RobotPeer: XPointer has %d buttons", num_buttons); | ||
806 | - break; | ||
807 | - } | ||
808 | - } | ||
809 | - break; | ||
810 | - } | ||
811 | -#endif | ||
812 | - if (local_num_buttons <= 0 ) { | ||
813 | - if (aDevice->use == IsXPointer) { | ||
814 | - for (clsIdx = 0; clsIdx < aDevice->num_classes; clsIdx++) { | ||
815 | - if (aDevice->inputclassinfo[clsIdx].class == ButtonClass) { | ||
816 | - bInfo = (XButtonInfo*)(&(aDevice->inputclassinfo[clsIdx])); | ||
817 | - local_num_buttons = bInfo->num_buttons; | ||
818 | - DTRACE_PRINTLN1("RobotPeer: XPointer has %d buttons", num_buttons); | ||
819 | - break; | ||
820 | - } | ||
821 | - } | ||
822 | - break; | ||
823 | - } | ||
824 | - } | ||
825 | - } | ||
826 | - | ||
827 | - XFreeDeviceList(devices); | ||
828 | - } | ||
829 | - else { | ||
830 | - DTRACE_PRINTLN1("RobotPeer: XINPUT extension is unavailable, assuming %d mouse buttons", num_buttons); | ||
831 | - } | ||
832 | - if (local_num_buttons == 0 ) { | ||
833 | - local_num_buttons = 3; | ||
834 | - } | ||
835 | - | ||
836 | - return local_num_buttons; | ||
837 | + return 3; | ||
838 | } | ||
839 | |||
840 | /* | ||