summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPreston A. Elder <prez@gentoo.org>2002-08-29 09:52:11 +0000
committerPreston A. Elder <prez@gentoo.org>2002-08-29 09:52:11 +0000
commit1c6d1ef9425d4fe1191aeacdd709572459708a45 (patch)
treed8905c003635ab88fc14574c2ec45a19c1de3d2c /dev-java/sun-j2sdk/files
parentmerge kde-i18n.org.eclass into kde-i18n.eclass and rework its code to use mir... (diff)
downloadgentoo-2-1c6d1ef9425d4fe1191aeacdd709572459708a45.tar.gz
gentoo-2-1c6d1ef9425d4fe1191aeacdd709572459708a45.tar.bz2
gentoo-2-1c6d1ef9425d4fe1191aeacdd709572459708a45.zip
Added sun-j2sdk to portage tree (masked). It does not compile inside an
ebuild right now (but does outside of one), more investigation needed.
Diffstat (limited to 'dev-java/sun-j2sdk/files')
-rw-r--r--dev-java/sun-j2sdk/files/digest-sun-j2sdk-1.4.04
-rw-r--r--dev-java/sun-j2sdk/files/j2sdk-1.4.0-gcc3.patch200
2 files changed, 204 insertions, 0 deletions
diff --git a/dev-java/sun-j2sdk/files/digest-sun-j2sdk-1.4.0 b/dev-java/sun-j2sdk/files/digest-sun-j2sdk-1.4.0
new file mode 100644
index 000000000000..d2cf995a6633
--- /dev/null
+++ b/dev-java/sun-j2sdk/files/digest-sun-j2sdk-1.4.0
@@ -0,0 +1,4 @@
+MD5 71458396566ebfa82ba64ce104c8ffe3 j2sdk-1_4_0-src-scsl.zip 45652516
+MD5 cde82327c7f6443399ad80a6a0a0aa15 j2sdk-sec-1_4_0-src-scsl.zip 565434
+MD5 2cddf9413919e7760fd05207979db222 j2sdk-1_4_0-motif-linux-i386.zip 1380844
+MD5 a2a393dc237d168918b11728038d8239 j2sdk-1_4_0-mozilla_headers-unix.zip 6455027
diff --git a/dev-java/sun-j2sdk/files/j2sdk-1.4.0-gcc3.patch b/dev-java/sun-j2sdk/files/j2sdk-1.4.0-gcc3.patch
new file mode 100644
index 000000000000..81c9694ec54b
--- /dev/null
+++ b/dev-java/sun-j2sdk/files/j2sdk-1.4.0-gcc3.patch
@@ -0,0 +1,200 @@
+diff -urNd j2sdk/hotspot/src/share/vm/c1/c1_FrameMap.hpp j2sdk-new/hotspot/src/share/vm/c1/c1_FrameMap.hpp
+--- j2sdk/hotspot/src/share/vm/c1/c1_FrameMap.hpp Tue Feb 12 07:53:20 2002
++++ j2sdk-new/hotspot/src/share/vm/c1/c1_FrameMap.hpp Fri Jun 7 03:16:23 2002
+@@ -171,7 +171,7 @@
+ //--------------------------------------------------------
+
+ class ArgumentLocation VALUE_OBJ_CLASS_SPEC {
+- friend CallingConvention;
++ friend class CallingConvention;
+ private:
+ int _n; // either a register number 0-5 (I0-I5 or O0-O5), or an offset (in words) from SP/FP
+
+@@ -221,7 +221,7 @@
+ //--------------------------------------------------------
+
+ class CallingConvention: public ResourceObj {
+- friend FrameMap;
++ friend class FrameMap;
+
+ private:
+ intStack* _args;
+diff -urNd j2sdk/hotspot/src/share/vm/opto/loopnode.hpp j2sdk-new/hotspot/src/share/vm/opto/loopnode.hpp
+--- j2sdk/hotspot/src/share/vm/opto/loopnode.hpp Tue Feb 12 07:53:44 2002
++++ j2sdk-new/hotspot/src/share/vm/opto/loopnode.hpp Fri Jun 7 03:16:23 2002
+@@ -308,7 +308,7 @@
+ // Computes the mapping from Nodes to IdealLoopTrees. Organizes IdealLoopTrees into a
+ // loop tree. Drives the loop-based transformations on the ideal graph.
+ class PhaseIdealLoop : public PhaseTransform {
+- friend IdealLoopTree;
++ friend class IdealLoopTree;
+ // Pre-computed def-use info
+ PhaseIterGVN &_igvn;
+
+diff -urNd j2sdk/hotspot/src/share/vm/prims/jvmdi.cpp j2sdk-new/hotspot/src/share/vm/prims/jvmdi.cpp
+--- j2sdk/hotspot/src/share/vm/prims/jvmdi.cpp Tue Feb 12 07:53:48 2002
++++ j2sdk-new/hotspot/src/share/vm/prims/jvmdi.cpp Fri Jun 7 03:16:23 2002
+@@ -3770,7 +3770,8 @@
+ }
+ // remove the frame's entry
+ JvmdiFramePops* fps = thread->jvmdi_thread_state()->get_jvmdi_frame_pops();
+- fps->clear(JvmdiFramePop(cur_frame_number));
++ JvmdiFramePop tmp(cur_frame_number);
++ fps->clear(tmp);
+ // recompute method entry and exit flags if no more frame pops
+ if (fps->length() == 0) {
+ recompute_method_entry_and_exit_on();
+diff -urNd j2sdk/j2se/ext/plugin/oji-plugin/src/motif/common/utils.c j2sdk-new/j2se/ext/plugin/oji-plugin/src/motif/common/utils.c
+--- j2sdk/j2se/ext/plugin/oji-plugin/src/motif/common/utils.c Tue Feb 12 08:10:26 2002
++++ j2sdk-new/j2se/ext/plugin/oji-plugin/src/motif/common/utils.c Fri Jun 7 02:06:33 2002
+@@ -11,6 +11,7 @@
+ #include <sys/socket.h>
+ #include <locale.h>
+ #include <errno.h>
++#include <string.h>
+ #include <strings.h>
+ #include <dlfcn.h>
+ #include "plugin_defs.h"
+diff -urNd j2sdk/j2se/ext/plugin/oji-plugin/src/motif/navig5/remotejni.cpp j2sdk-new/j2se/ext/plugin/oji-plugin/src/motif/navig5/remotejni.cpp
+--- j2sdk/j2se/ext/plugin/oji-plugin/src/motif/navig5/remotejni.cpp Tue Feb 12 08:10:28 2002
++++ j2sdk-new/j2se/ext/plugin/oji-plugin/src/motif/navig5/remotejni.cpp Fri Jun 7 02:06:33 2002
+@@ -16,6 +16,7 @@
+ #include <sys/ipc.h>
+ #include <sys/types.h>
+ #include <sys/time.h>
++#include <time.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <unistd.h>
+diff -urNd j2sdk/j2se/ext/plugin/oji-plugin/src/motif/resources/zh_TW/sunw_java_plugin.po j2sdk-new/j2se/ext/plugin/oji-plugin/src/motif/resources/zh_TW/sunw_java_plugin.po
+--- j2sdk/j2se/ext/plugin/oji-plugin/src/motif/resources/zh_TW/sunw_java_plugin.po Tue Feb 12 08:10:28 2002
++++ j2sdk-new/j2se/ext/plugin/oji-plugin/src/motif/resources/zh_TW/sunw_java_plugin.po Fri Jun 7 02:06:33 2002
+@@ -21,8 +21,6 @@
+ msgstr "plugin: java á£Ê©ÄØÇÞعæÀÈÔäÚ"
+ msgid " a core file was generated"
+ msgstr " ÄØܨÆíÕøÅÀóòÕù"
+-msgid "Plugin: trouble with work request from child"
+-msgstr "Plugin: ÄÍùËɱÍÔÓÑÊåÎûÄÖÉ¢àõÆíÙÂ÷î"
+ msgid "Plugin: can't find IP address for current host"
+ msgstr "Plugin: ÊÆÄâ̯ÆøЩÅäñ¢Îû IP ÈíÉß"
+ msgid "Plugin: trouble reading Netscape proxy configuration URL from\n"
+diff -urNd j2sdk/j2se/ext/plugin/oji-plugin/src/motif/resources/zh_TW.BIG5/sunw_java_plugin.po j2sdk-new/j2se/ext/plugin/oji-plugin/src/motif/resources/zh_TW.BIG5/sunw_java_plugin.po
+--- j2sdk/j2se/ext/plugin/oji-plugin/src/motif/resources/zh_TW.BIG5/sunw_java_plugin.po Tue Feb 12 08:10:28 2002
++++ j2sdk-new/j2se/ext/plugin/oji-plugin/src/motif/resources/zh_TW.BIG5/sunw_java_plugin.po Fri Jun 7 02:06:33 2002
+@@ -21,8 +21,6 @@
+ msgstr "plugin: java µ{§Ç¤w¦]°T¸¹¦Ó·´"
+ msgid " a core file was generated"
+ msgstr " ¤w²£¥Í®Ö¤ßÀÉ®×"
+-msgid "Plugin: trouble with work request from child"
+-msgstr "Plugin: ¤lÃþ§O©Ò­n¨Dªº¤u§@µo¥Í°ÝÃD"
+ msgid "Plugin: can't find IP address for current host"
+ msgstr "Plugin: §ä¤£¨ì¥Ø«e¥D¾÷ªº IP ¦ì§}"
+ msgid "Plugin: trouble reading Netscape proxy configuration URL from\n"
+diff -urNd j2sdk/j2se/make/common/Defs-linux.gmk j2sdk-new/j2se/make/common/Defs-linux.gmk
+--- j2sdk/j2se/make/common/Defs-linux.gmk Tue Feb 12 07:55:14 2002
++++ j2sdk-new/j2se/make/common/Defs-linux.gmk Fri Jun 7 02:07:54 2002
+@@ -38,7 +38,7 @@
+ CMP = $(USRBIN_PATH)cmp
+ COMPRESS = $(USRBIN_PATH)compress
+ CP = $(UNIXCOMMAND_PATH)cp
+-CPIO = $(UNIXCOMMAND_PATH)cpio
++CPIO = $(USRBIN_PATH)cpio
+ CUT = $(USRBIN_PATH)cut
+ DATE = $(UNIXCOMMAND_PATH)date
+ DF = $(UNIXCOMMAND_PATH)df
+diff -urNd j2sdk/j2se/make/common/Library.gmk j2sdk-new/j2se/make/common/Library.gmk
+--- j2sdk/j2se/make/common/Library.gmk Tue Feb 12 07:55:14 2002
++++ j2sdk-new/j2se/make/common/Library.gmk Fri Jun 7 02:06:33 2002
+@@ -42,6 +42,19 @@
+
+ $(OPTIMIZED) $(DEBUG):: $(INIT) $(OBJDIR) $(TMPDIR) $(LIBDIR) $(EXTDIR) $(BINDIR) classheaders
+
++#
++# Note that we have to link -lthread even when USE_PTHREADS is true.
++# This is becuase checkForCorrectLibthread() croaks otherwise.
++#
++ifneq ($(PLATFORM), win32)
++LIBTHREAD = -lthread
++ifeq ($(USE_PTHREADS),true)
++THREADLIBS = -lpthread $(LIBTHREAD)
++else # USE_PTHREADS
++THREADLIBS = $(LIBTHREAD)
++endif # USE_PTHREADS
++endif # PLATFORM
++
+ ifeq ($(PLATFORM), win32)
+
+ #
+@@ -131,9 +144,9 @@
+ $(AR) -r $@ $(FILES_o)
+ else # LIBRARY
+ ifeq ($(CC_VERSION), gcc)
+- $(LINKER) -shared -mimpure-text -o $@ $(FILES_o) $(LDLIBS)
++ $(LINKER) -shared -mimpure-text -o $@ $(FILES_o) $(THREADLIBS) $(LDLIBS)
+ else # CC_VERSION
+- $(LINKER) -G -o $@ $(FILES_o) $(LDLIBS)
++ $(LINKER) -G -o $@ $(FILES_o) $(THREADLIBS) $(LDLIBS)
+ endif # CC_VERSION
+ $(POST_PROCESS)
+
+diff -urNd j2sdk/j2se/make/common/Sanity.gmk j2sdk-new/j2se/make/common/Sanity.gmk
+--- j2sdk/j2se/make/common/Sanity.gmk Tue Feb 12 07:55:14 2002
++++ j2sdk-new/j2se/make/common/Sanity.gmk Fri Jun 7 02:07:26 2002
+@@ -695,6 +695,7 @@
+ # Check for existence of DEVTOOLS_PATH
+ ######################################################
+ devtools_path:
++ifneq ($(PLATFORM), linux)
+ @if [ ! -r $(DEVTOOLS_PATH) ]; then \
+ $(ECHO) "ERROR: You do not have a valid DEVTOOLS_PATH setting. \n" \
+ " Please check your access to \n" \
+@@ -702,6 +703,7 @@
+ " and/or check your value of ALT_DEVTOOLS_PATH. \n" \
+ "" >> $(ERROR_FILE) ; \
+ fi
++endif
+
+ ######################################################
+ # Check for existence of COMPILER_PATH
+@@ -902,16 +904,7 @@
+ @#
+ @# On Linux we need egcs-2.91.66
+ @#
+- @if [ -r $(CC) ]; then \
+- if [ ! "$(CC_VER)" = 2.91.66 ]; then \
+- $(ECHO) "ERROR: The Linux GCC compiler must be version egcs-2.91.66. \n" \
+- " You are using the following compiler version: $(CC_VER) \n" \
+- " The compiler was obtained from the following location: \n" \
+- " $(COMPILER_PATH) \n" \
+- " Please change your compiler. \n" \
+- "" >> $(ERROR_FILE) ; \
+- fi \
+- else \
++ @if [ ! -r $(CC) ]; then \
+ $(ECHO) "ERROR: There is no GNU CC compiler at the location: \n" \
+ " $(COMPILER_PATH) \n" \
+ "" >> $(ERROR_FILE) ; \
+diff -urNd j2sdk/j2se/src/share/native/sun/awt/font/fontmanager/fontobjects/fontObject.cpp j2sdk-new/j2se/src/share/native/sun/awt/font/fontmanager/fontobjects/fontObject.cpp
+--- j2sdk/j2se/src/share/native/sun/awt/font/fontmanager/fontobjects/fontObject.cpp Tue Feb 12 08:06:58 2002
++++ j2sdk-new/j2se/src/share/native/sun/awt/font/fontmanager/fontobjects/fontObject.cpp Fri Jun 7 02:06:33 2002
+@@ -900,7 +900,7 @@
+ /*
+ * u_strncmpi - Compare unicode strings case independent
+ */
+-u_strncmpi(const Unicode * n1, const Unicode * n2, int len) {
++int u_strncmpi(const Unicode * n1, const Unicode * n2, int len) {
+ int len2 = 0;
+ const Unicode * str2 = n2;
+
+diff -urNd j2sdk/j2se/src/solaris/back/exec_md.c j2sdk-new/j2se/src/solaris/back/exec_md.c
+--- j2sdk/j2se/src/solaris/back/exec_md.c Tue Feb 12 08:08:22 2002
++++ j2sdk-new/j2se/src/solaris/back/exec_md.c Fri Jun 7 02:06:33 2002
+@@ -72,7 +72,7 @@
+ }
+ argv[i] = NULL; /* NULL terminate */
+
+- if ((pid = fork1()) == 0) {
++ if ((pid = fork()) == 0) {
+ /* Child process */
+ int i, max_fd;
+