diff options
author | maho <maho@FreeBSD.org> | 2006-09-12 04:11:49 +0800 |
---|---|---|
committer | maho <maho@FreeBSD.org> | 2006-09-12 04:11:49 +0800 |
commit | 89386a8eb453eb2b436e4a92a964216ba0b6be26 (patch) | |
tree | 19f8a201c8e0535dace3be3936fe2434d9f7af1c /editors | |
parent | 86c6d812b57c5207402c690043b9fece7353da27 (diff) | |
download | freebsd-ports-gnome-89386a8eb453eb2b436e4a92a964216ba0b6be26.tar.gz freebsd-ports-gnome-89386a8eb453eb2b436e4a92a964216ba0b6be26.tar.zst freebsd-ports-gnome-89386a8eb453eb2b436e4a92a964216ba0b6be26.zip |
1) Unbreak for __FreeBSD_version >= 601103
2) buildable/usable with JDK1.5
Patch is taken from http://wiki.linuxfromscratch.org/blfs/browser/trunk/patches/OOo_1.1.5-jdk_1.5.0_fix-1.patch?rev=5150&format=txt
Note: it doesn't break my policy (author must submit the JCA) since
this patch will never be integrated. OOo 1.1.x branch is closed.
Diffstat (limited to 'editors')
-rw-r--r-- | editors/openoffice.org-1.1-devel/Makefile | 4 | ||||
-rw-r--r-- | editors/openoffice.org-1.1-devel/files/moz-patch | 52 | ||||
-rw-r--r-- | editors/openoffice.org-1.1-devel/files/patch-gethostbyname_r | 55 | ||||
-rw-r--r-- | editors/openoffice.org-1.1-devel/files/patch-jdk15 | 778 |
4 files changed, 887 insertions, 2 deletions
diff --git a/editors/openoffice.org-1.1-devel/Makefile b/editors/openoffice.org-1.1-devel/Makefile index 84fcfa25222c..f36c73a39058 100644 --- a/editors/openoffice.org-1.1-devel/Makefile +++ b/editors/openoffice.org-1.1-devel/Makefile @@ -55,9 +55,9 @@ ONLY_FOR_ARCHS= i386 #.if !defined(WITHOUT_JAVA) USE_JAVA= yes -JAVA_VERSION= 1.4 +JAVA_VERSION= 1.4+ JAVA_BUILD= jdk -JAVA_VENDOR= bsdjava +JAVA_VENDOR= freebsd bsdjava #.endif .include <bsd.port.pre.mk> diff --git a/editors/openoffice.org-1.1-devel/files/moz-patch b/editors/openoffice.org-1.1-devel/files/moz-patch index 40445f27f3ca..0d4947d1c5a0 100644 --- a/editors/openoffice.org-1.1-devel/files/moz-patch +++ b/editors/openoffice.org-1.1-devel/files/moz-patch @@ -63,3 +63,55 @@ this functionality is not used at all. + #endif + + /* +--- moz/mozilla-source-1.0.patch~ Sun Sep 10 09:28:29 2006 ++++ moz/mozilla-source-1.0.patch Sun Sep 10 12:01:05 2006 +@@ -4516,3 +4516,49 @@ + #endif + + /* ++*** misc/mozilla/configure Tue May 28 04:29:00 2002 ++--- misc/build/mozilla/configure Sun Sep 10 11:56:33 2006 ++*************** ++*** 6589,6594 **** ++--- 6589,6596 ---- ++ case $target in ++ *-hpux11.*) ++ ;; +++ *-freebsd*) +++ ;; ++ *) ++ echo $ac_n "checking for gethostbyname_r in -lc_r""... $ac_c" 1>&6 ++ echo "configure:6595: checking for gethostbyname_r in -lc_r" >&5 ++*** misc/mozilla/configure.in Tue May 28 04:29:12 2002 ++--- misc/build/mozilla/configure.in Sun Sep 10 11:56:18 2006 ++*************** ++*** 1606,1611 **** ++--- 1606,1613 ---- ++ case $target in ++ *-hpux11.*) ++ ;; +++ *-freebsd*) +++ ;; ++ *) ++ AC_CHECK_LIB(c_r, gethostbyname_r) ++ ;; ++*** misc/mozilla/nsprpub/pr/src/misc/prnetdb.c Wed Apr 10 12:17:35 2002 ++--- misc/build/mozilla/nsprpub/pr/src/misc/prnetdb.c Sun Sep 10 11:55:27 2006 ++*************** ++*** 105,111 **** ++ #define _PR_HAVE_GETPROTO_R_INT ++ #endif ++ ++! #if (defined(LINUX) && defined(__GLIBC__) && __GLIBC__ >= 2) ++ #define _PR_HAVE_GETPROTO_R ++ #define _PR_HAVE_5_ARG_GETPROTO_R ++ #endif ++--- 105,112 ---- ++ #define _PR_HAVE_GETPROTO_R_INT ++ #endif ++ ++! #if (defined(LINUX) && defined(__GLIBC__) && __GLIBC__ >= 2) || \ ++! (defined(__FreeBSD__) && __FreeBSD_version > 601103) ++ #define _PR_HAVE_GETPROTO_R ++ #define _PR_HAVE_5_ARG_GETPROTO_R ++ #endif diff --git a/editors/openoffice.org-1.1-devel/files/patch-gethostbyname_r b/editors/openoffice.org-1.1-devel/files/patch-gethostbyname_r new file mode 100644 index 000000000000..63b243e146f9 --- /dev/null +++ b/editors/openoffice.org-1.1-devel/files/patch-gethostbyname_r @@ -0,0 +1,55 @@ +Index: sal/osl/unx/socket.c +=================================================================== +RCS file: /cvs/porting/sal/osl/unx/socket.c,v +retrieving revision 1.22.10.1 +diff -u -r1.22.10.1 socket.c +--- sal/osl/unx/socket.c 18 Aug 2003 15:12:26 -0000 1.22.10.1 ++++ sal/osl/unx/socket.c 10 Sep 2006 03:18:08 -0000 +@@ -836,7 +836,7 @@ + const char *name, struct hostent *result, + char *buffer, int buflen, int *h_errnop) + { +-#ifdef LINUX ++#if defined(LINUX) || (defined(FREEBSD) && (__FreeBSD_version >= 601103)) + struct hostent *__result; /* will be the same as result */ + int __error; + __error = gethostbyname_r (name, result, buffer, buflen, +Index: sal/osl/unx/system.c +=================================================================== +RCS file: /cvs/porting/sal/osl/unx/system.c,v +retrieving revision 1.8 +diff -u -r1.8 system.c +--- sal/osl/unx/system.c 16 Jul 2003 17:21:47 -0000 1.8 ++++ sal/osl/unx/system.c 10 Sep 2006 03:18:08 -0000 +@@ -371,6 +371,8 @@ + + extern int h_errno; + ++#if !defined(FREEBSD) || (__FreeBSD_version < 601103) ++ + struct hostent *gethostbyname_r(const char *name, struct hostent *result, + char *buffer, int buflen, int *h_errnop) + { +@@ -459,6 +461,8 @@ + + return res; + } ++#endif /* !defined(FREEBSD) || (__FreeBSD_version < 601103) */ ++ + + #if defined(MACOSX) + /* + +--- sal/osl/unx/system.h.orig Fri Aug 15 20:38:50 2003 ++++ sal/osl/unx/system.h Sun Sep 10 13:32:43 2006 +@@ -576,8 +576,10 @@ + struct tm *localtime_r(const time_t *timep, struct tm *buffer); + struct tm *gmtime_r(const time_t *timep, struct tm *buffer); + #endif /* !defined FREEBSD || (__FreeBSD_version < 500112) */ ++#if !defined(FREEBSD) || (__FreeBSD_version < 601103) + struct hostent *gethostbyname_r(const char *name, struct hostent *result, + char *buffer, int buflen, int *h_errnop); ++#endif /* !defined(FREEBSD) || (__FreeBSD_version < 601103) */ + #endif + + #endif /* __OSL_SYSTEM_H__ */ diff --git a/editors/openoffice.org-1.1-devel/files/patch-jdk15 b/editors/openoffice.org-1.1-devel/files/patch-jdk15 new file mode 100644 index 000000000000..f39b5414c9fa --- /dev/null +++ b/editors/openoffice.org-1.1-devel/files/patch-jdk15 @@ -0,0 +1,778 @@ +Index: jvmaccess/source/javainfoimpl.cxx +=================================================================== +RCS file: /cvs/udk/jvmaccess/source/Attic/javainfoimpl.cxx,v +retrieving revision 1.7.12.6 +diff -u -r1.7.12.6 javainfoimpl.cxx +--- jvmaccess/source/javainfoimpl.cxx 2 May 2005 13:30:59 -0000 1.7.12.6 ++++ jvmaccess/source/javainfoimpl.cxx 10 Sep 2006 04:51:58 -0000 +@@ -244,6 +244,8 @@ + "jdk1.4.2", \ + "diablo-jre1.3.1", \ + "diablo-jdk1.3.1", \ ++ "diablo-jre1.5.0", \ ++ "diablo-jdk1.5.0", \ + "linux-sun-jdk1.3.1", \ + "linux-sun-jdk1.4.2", \ + "linux-ibm-jdk1.3.1", \ + + +taken from http://wiki.linuxfromscratch.org/blfs/browser/trunk/patches/OOo_1.1.5-jdk_1.5.0_fix-1.patch?rev=5150&format=txt +--- XmlSearch/src/com/sun/xmlsearch/db/VectorBtree.java 2000-11-30 12:02:54.000000000 -0600 ++++ XmlSearch/src/com/sun/xmlsearch/db/VectorBtree.java 2005-04-19 01:56:30.289021048 -0500 +@@ -274,10 +274,10 @@ + return accessBlock(bl.integerAt(index*4)); + } + +- public static void assert(boolean assertion) { ++ /*public static void assert(boolean assertion) { + if (assertion == false) + System.err.println("assertion failed"); +- } ++ }*/ + + public int getIteratorBufferLength() { + return _blockSize + _vecLen*2; + +--- javaunohelper/com/sun/star/comp/helper/Bootstrap.java 2004-03-30 08:23:53.000000000 -0600 ++++ javaunohelper/com/sun/star/comp/helper/Bootstrap.java 2005-04-19 01:56:30.000000000 -0500 +@@ -220,11 +220,11 @@ + if (null != bootstrap_parameters) + { + pairs = new String [ 2 * bootstrap_parameters.size() ]; +- Enumeration enum = bootstrap_parameters.keys(); ++ Enumeration enumer = bootstrap_parameters.keys(); + int n = 0; +- while (enum.hasMoreElements()) ++ while (enumer.hasMoreElements()) + { +- String name = (String)enum.nextElement(); ++ String name = (String)enumer.nextElement(); + pairs[ n++ ] = name; + pairs[ n++ ] = (String)bootstrap_parameters.get( name ); + } + +--- javaunohelper/com/sun/star/lib/loader/Loader.java 2004-03-30 08:25:21.000000000 -0600 ++++ javaunohelper/com/sun/star/lib/loader/Loader.java 2005-04-19 01:56:30.000000000 -0500 +@@ -106,9 +106,9 @@ + ClassLoader loader = clazz.getClassLoader(); + Vector res = new Vector(); + try { +- Enumeration enum = loader.getResources( "META-INF/MANIFEST.MF" ); +- while ( enum.hasMoreElements() ) { +- res.add( (URL) enum.nextElement() ); ++ Enumeration enumer = loader.getResources( "META-INF/MANIFEST.MF" ); ++ while ( enumer.hasMoreElements() ) { ++ res.add( (URL) enumer.nextElement() ); + } + // the jarfile with the com/sun/star/lib/loader/Loader.class + // per-entry attribute is most probably the last resource in the + +--- jurt/com/sun/star/comp/servicemanager/ServiceManager.java 2002-10-30 09:28:39.000000000 -0600 ++++ jurt/com/sun/star/comp/servicemanager/ServiceManager.java 2005-04-19 01:56:30.000000000 -0500 +@@ -500,10 +500,10 @@ + throws com.sun.star.uno.RuntimeException + { + if (eventListener != null) { +- java.util.Enumeration enum = eventListener.elements(); ++ java.util.Enumeration enumer = eventListener.elements(); + +- while (enum.hasMoreElements()) { +- XEventListener listener = (XEventListener) enum.nextElement(); ++ while (enumer.hasMoreElements()) { ++ XEventListener listener = (XEventListener) enumer.nextElement(); + listener.disposing(new com.sun.star.lang.EventObject(this)); + } + } +@@ -732,16 +732,16 @@ + public XEnumeration createContentEnumeration( String serviceName ) + throws com.sun.star.uno.RuntimeException + { +- XEnumeration enum = null; ++ XEnumeration xenum = null; + + java.util.Vector serviceList = (java.util.Vector) factoriesByServiceNames.get(serviceName); + + if (serviceList != null) +- enum = new ServiceEnumerationImpl( serviceList.elements() ); ++ xenum = new ServiceEnumerationImpl( serviceList.elements() ); + else +- enum = new ServiceEnumerationImpl(); ++ xenum = new ServiceEnumerationImpl(); + +- return enum; ++ return xenum; + } + + /** +@@ -809,11 +809,11 @@ + /** + * Constructs a new instance with a given enumeration. + * <p> +- * @param enum is the enumeration which should been wrapped. ++ * @param enumer is the enumeration which should been wrapped. + * @see com.sun.star.container.XEnumeration + */ +- public ServiceEnumerationImpl(java.util.Enumeration enum) { +- enumeration = enum; ++ public ServiceEnumerationImpl(java.util.Enumeration enumer) { ++ enumeration = enumer; + } + + /** + +--- jurt/com/sun/star/comp/typedescriptionmanager/EnumTypeDescription.java 2001-12-03 05:00:41.000000000 -0600 ++++ jurt/com/sun/star/comp/typedescriptionmanager/EnumTypeDescription.java 2005-04-19 01:56:30.000000000 -0500 +@@ -136,12 +136,12 @@ + Field field = fields[nPos]; + int nMod = field.getModifiers(); + +- if (Enum.class.isAssignableFrom( field.getType() ) && ++ if (com.sun.star.uno.Enum.class.isAssignableFrom( field.getType() ) && + Modifier.isPublic( nMod ) && Modifier.isFinal( nMod ) && Modifier.isStatic( nMod )) + { + try + { +- values[nLen] = ((Enum)field.get( null )).getValue(); ++ values[nLen] = ((com.sun.star.uno.Enum)field.get( null )).getValue(); + names[nLen] = field.getName(); + ++nLen; + } + +--- jurt/com/sun/star/comp/typedescriptionmanager/TypeDescriptionManager.java 2000-09-18 10:27:52.000000000 -0500 ++++ jurt/com/sun/star/comp/typedescriptionmanager/TypeDescriptionManager.java 2005-04-19 01:56:30.000000000 -0500 +@@ -236,7 +236,7 @@ + ret = new InterfaceTypeDescription( this, c ); + else if (c.isArray()) + ret = new SequenceTypeDescription( (XTypeDescription)getByClass( c.getComponentType(), bUnsigned, bInterface ) ); +- else if (Enum.class.isAssignableFrom( c )) ++ else if (com.sun.star.uno.Enum.class.isAssignableFrom( c )) + ret = new EnumTypeDescription( c ); + // else if (com.sun.star.uno.Union.class.isAssignableFrom( c )) + // ret = new UnionTypeDescription( c ); + +--- jurt/com/sun/star/lib/uno/protocols/iiop/Marshal.java 2001-01-16 12:01:30.000000000 -0600 ++++ jurt/com/sun/star/lib/uno/protocols/iiop/Marshal.java 2005-04-19 01:56:30.000000000 -0500 +@@ -446,10 +446,10 @@ + writeObject(typeDescription, object); + } + +- void writeEnum(Enum enum) throws Exception { +- if(DEBUG) System.err.println("##### " + getClass().getName() + ".writeEnum:" + enum + " " + enum.getValue()); ++ void writeEnum(Enum writeenum) throws Exception { ++ if(DEBUG) System.err.println("##### " + getClass().getName() + ".writeEnum:" + writeenum + " " + writeenum.getValue()); + +- write_long(enum.getValue()); ++ write_long(writeenum.getValue()); + } + + void writeThrowable(TypeDescription typeDescription, Throwable throwable) throws Exception { + +--- jurt/com/sun/star/lib/uno/protocols/iiop/iiop.java 2001-02-02 03:01:03.000000000 -0600 ++++ jurt/com/sun/star/lib/uno/protocols/iiop/iiop.java 2005-04-19 01:56:30.000000000 -0500 +@@ -588,13 +588,13 @@ + Enumeration elements = _flushList.elements(); + while(elements.hasMoreElements()) { + Object objects[] = (Object[])elements.nextElement(); +- Enum enum = (Enum)objects[0]; ++ Enum enumer = (Enum)objects[0]; + Marshal marshal = (Marshal)objects[1]; + + int size = marshal.getSize(); + byte bytes[] = marshal.reset(); + +- writeMessageHeader(enum.getValue(), size, dataOutput); ++ writeMessageHeader(enumer.getValue(), size, dataOutput); + if(DEBUG) System.err.println("##### " + getClass().getName() + ".flush - bytes:" + size); + + dataOutput.write(bytes, 0, size); + +--- jurt/com/sun/star/lib/uno/protocols/urp/Marshal.java 2003-03-26 06:33:00.000000000 -0600 ++++ jurt/com/sun/star/lib/uno/protocols/urp/Marshal.java 2005-04-19 01:56:30.000000000 -0500 +@@ -293,10 +293,10 @@ + writedouble(zDouble.doubleValue()); + } + +- void writeEnum(Enum enum) { +- if(DEBUG) System.err.println("##### " + getClass().getName() + ".writeEnum:" + enum + " " + enum.getValue()); ++ void writeEnum(Enum writeenum) { ++ if(DEBUG) System.err.println("##### " + getClass().getName() + ".writeEnum:" + writeenum + " " + writeenum.getValue()); + +- writeint(enum.getValue()); ++ writeint(writeenum.getValue()); + } + + void writeThrowable(ITypeDescription iTypeDescription, Throwable throwable) { + +--- odk/source/OOSupport/org/netbeans/modules/openoffice/wizard/OOAddInCreateIterator.java 2003-03-26 07:40:24.000000000 -0600 ++++ odk/source/OOSupport/org/netbeans/modules/openoffice/wizard/OOAddInCreateIterator.java 2005-04-19 01:56:30.000000000 -0500 +@@ -200,7 +200,7 @@ + index--; + } + +- public org.openide.WizardDescriptor$Panel current() { ++ public org.openide.WizardDescriptor.Panel current() { + return panels[index]; + } + + +--- odk/source/OOSupport/org/netbeans/modules/openoffice/wizard/OOIDLWizardIterator.java 2002-09-03 11:25:06.000000000 -0500 ++++ odk/source/OOSupport/org/netbeans/modules/openoffice/wizard/OOIDLWizardIterator.java 2005-04-19 01:56:30.000000000 -0500 +@@ -207,7 +207,7 @@ + index--; + } + +- public org.openide.WizardDescriptor$Panel current() ++ public org.openide.WizardDescriptor.Panel current() + { + return panels[index]; + } + +--- odk/source/OOSupport/org/netbeans/modules/openoffice/wizard/OOServiceCreateIterator.java 2003-03-26 07:40:24.000000000 -0600 ++++ odk/source/OOSupport/org/netbeans/modules/openoffice/wizard/OOServiceCreateIterator.java 2005-04-19 01:56:30.000000000 -0500 +@@ -214,7 +214,7 @@ + index--; + } + +- public org.openide.WizardDescriptor$Panel current() { ++ public org.openide.WizardDescriptor.Panel current() { + return panels[index]; + } + + +--- qadevOOo/runner/base/java_complex.java 2003-06-11 11:24:17.000000000 -0500 ++++ qadevOOo/runner/base/java_complex.java 2005-04-19 01:56:30.000000000 -0500 +@@ -178,9 +178,9 @@ + java.io.InputStream in = connection.getInputStream(); + Properties props = new Properties(); + props.load(in); +- Enumeration enum = props.keys(); +- while (enum.hasMoreElements()) { +- String key = (String)enum.nextElement(); ++ Enumeration enumer = props.keys(); ++ while (enumer.hasMoreElements()) { ++ String key = (String)enumer.nextElement(); + String value = (String)props.get(key); + param.put(key.trim(), value.trim()); + } + +--- qadevOOo/runner/org/openoffice/RunnerService.java 2003-03-31 11:01:51.000000000 -0600 ++++ qadevOOo/runner/org/openoffice/RunnerService.java 2005-04-19 01:56:30.000000000 -0500 +@@ -252,10 +252,10 @@ + // get Jar file from connection + java.util.jar.JarFile f = con.getJarFile(); + // Enumerate over all entries +- java.util.Enumeration enum = f.entries(); ++ java.util.Enumeration enumer = f.entries(); + +- while (enum.hasMoreElements()) { +- String entry = enum.nextElement().toString(); ++ while (enumer.hasMoreElements()) { ++ String entry = enumer.nextElement().toString(); + if (entry.endsWith(".csv")) { + String module = null; + String object = null; + +--- qadevOOo/runner/util/DBTools.java 2003-01-27 10:27:05.000000000 -0600 ++++ qadevOOo/runner/util/DBTools.java 2005-04-19 01:56:30.000000000 -0500 +@@ -673,12 +673,12 @@ + XEnumerationAccess dbContEA = (XEnumerationAccess) + UnoRuntime.queryInterface(XEnumerationAccess.class, dbContext) ; + +- XEnumeration enum = dbContEA.createEnumeration() ; ++ XEnumeration enumer = dbContEA.createEnumeration() ; + + out.println("DatabaseContext registered DataSource's :") ; +- while (enum.hasMoreElements()) { ++ while (enumer.hasMoreElements()) { + try { +- DataSourceInfo inf = new DataSourceInfo(enum.nextElement()) ; ++ DataSourceInfo inf = new DataSourceInfo(enumer.nextElement()) ; + inf.printInfo(out) ; + } catch (com.sun.star.container.NoSuchElementException e) {} + catch (com.sun.star.lang.WrappedTargetException e) {} +@@ -849,4 +849,4 @@ + throws java.sql.SQLException { + statement.executeUpdate("drop table if exists " + tbl_name); + } +-} +\ No newline at end of file ++} + +--- qadevOOo/tests/java/ifc/reflection/_XTypeDescriptionEnumerationAccess.java 2003-01-27 12:11:20.000000000 -0600 ++++ qadevOOo/tests/java/ifc/reflection/_XTypeDescriptionEnumerationAccess.java 2005-04-19 01:56:30.000000000 -0500 +@@ -94,13 +94,13 @@ + return; + } + try { +- XTypeDescriptionEnumeration enum = ++ XTypeDescriptionEnumeration enumer = + oObj.createTypeDescriptionEnumeration(sString, tClass, + TypeDescriptionSearchDepth.INFINITE); + try { + log.println("Got an enumeration."); + while (true) { +- XTypeDescription desc = enum.nextTypeDescription(); ++ XTypeDescription desc = enumer.nextTypeDescription(); + i++; + log.println("\tdesc name: " + desc.getName()); + } + +--- qadevOOo/tests/java/mod/_dbaccess/SbaXGridControl.java 2003-05-27 07:37:57.000000000 -0500 ++++ qadevOOo/tests/java/mod/_dbaccess/SbaXGridControl.java 2005-04-19 01:56:30.000000000 -0500 +@@ -376,7 +376,7 @@ + new Object[]{ new Integer(0) }, new Object[]{ new Integer(1) }}); + tEnv.addObjRelation("Comparer", new Comparator() { + public int compare(Object o1, Object o2) { +- return ((Integer)o1).compareTo(o2); ++ return compare((Integer) o1, o2); + } + public boolean equals(Object obj) { + return compare(this, obj) == 0; + +--- qadevOOo/tests/java/mod/_servicemgr.uno/OServiceManager.java 2003-05-27 08:25:05.000000000 -0500 ++++ qadevOOo/tests/java/mod/_servicemgr.uno/OServiceManager.java 2005-04-19 01:56:30.000000000 -0500 +@@ -162,12 +162,12 @@ + (XSet.class, oInterface) ; + XSet set1 = (XSet) UnoRuntime.queryInterface + (XSet.class, srvMan) ; +- XEnumeration enum = set1.createEnumeration(); +- Object srv = enum.nextElement(); ++ XEnumeration enumer = set1.createEnumeration(); ++ Object srv = enumer.nextElement(); + + set.insert(srv) ; + +- newElement = enum.nextElement(); ++ newElement = enumer.nextElement(); + + XPropertySet xProp = (XPropertySet)UnoRuntime.queryInterface( + XPropertySet.class, oInterface); + +--- qadevOOo/tests/java/mod/_smgr/OServiceManager.java 2003-05-27 08:28:36.000000000 -0500 ++++ qadevOOo/tests/java/mod/_smgr/OServiceManager.java 2005-04-19 01:56:30.000000000 -0500 +@@ -162,12 +162,12 @@ + (XSet.class, oInterface) ; + XSet set1 = (XSet) UnoRuntime.queryInterface + (XSet.class, srvMan) ; +- XEnumeration enum = set1.createEnumeration(); +- Object srv = enum.nextElement(); ++ XEnumeration enumer = set1.createEnumeration(); ++ Object srv = enumer.nextElement(); + + set.insert(srv) ; + +- newElement = enum.nextElement(); ++ newElement = enumer.nextElement(); + + XPropertySet xProp = (XPropertySet)UnoRuntime.queryInterface( + XPropertySet.class, oInterface); + +--- sandbox/com/sun/star/lib/sandbox/ClassContextImpl.java 2002-11-21 10:49:00.000000000 -0600 ++++ sandbox/com/sun/star/lib/sandbox/ClassContextImpl.java 2005-04-19 01:56:30.000000000 -0500 +@@ -304,10 +304,10 @@ + m_class_path_jars = class_path_jars; + } + +- java.util.Enumeration enum = m_class_path_jars.elements(); +- while (enum.hasMoreElements()) ++ java.util.Enumeration enumer = m_class_path_jars.elements(); ++ while (enumer.hasMoreElements()) + { +- ClassContext context = (ClassContext)enum.nextElement(); ++ ClassContext context = (ClassContext)enumer.nextElement(); + try + { + xClass = context.loadClass( className ); + +--- sj2/stardiv/app/AppletProps.java 2000-09-18 11:54:03.000000000 -0500 ++++ sj2/stardiv/app/AppletProps.java 2005-04-19 01:56:30.000000000 -0500 +@@ -138,7 +138,7 @@ + if (System.getProperty("http.proxyHost") != null) { + proxyHost.setText(System.getProperty("http.proxyHost")); + proxyPort.setText(System.getProperty("http.proxyPort")); +- HttpClient.proxyPort = Integer.valueOf(System.getProperty("http.proxyPort")).intValue(); ++ //HttpClient.proxyPort = Integer.valueOf(System.getProperty("http.proxyPort")).intValue(); + } + else { + proxyHost.setText(""); + +--- sj2/stardiv/controller/PropertyEditor.java 2000-09-18 11:54:03.000000000 -0500 ++++ sj2/stardiv/controller/PropertyEditor.java 2005-04-19 01:56:30.000000000 -0500 +@@ -197,10 +197,10 @@ + + m_DefaultList.removeAll(); + m_List.removeAll(); +- java.util.Enumeration enum = m_Properties.propertyNames(); +- while (enum.hasMoreElements()) ++ java.util.Enumeration enumer = m_Properties.propertyNames(); ++ while (enumer.hasMoreElements()) + { +- String strKey = (String)enum.nextElement(); ++ String strKey = (String)enumer.nextElement(); + + if (isDefaultKey(strKey)) + addToList(m_DefaultList, strKey, m_Properties.getProperty(strKey)); +@@ -551,19 +551,19 @@ + { + int nMax = 0; + +- java.util.Enumeration enum = props.propertyNames(); +- while (enum.hasMoreElements()) +- nMax = Math.max(nMax, ((String)enum.nextElement()).length()); ++ java.util.Enumeration enumer = props.propertyNames(); ++ while (enumer.hasMoreElements()) ++ nMax = Math.max(nMax, ((String)enumer.nextElement()).length()); + + return nMax+2; + } + + protected static boolean isDefaultKey(String strKey) + { +- java.util.Enumeration enum = c_DefaultProperties.elements(); +- while (enum.hasMoreElements()) ++ java.util.Enumeration enumer = c_DefaultProperties.elements(); ++ while (enumer.hasMoreElements()) + { +- if (strKey.equals((String)enum.nextElement())) ++ if (strKey.equals((String)enumer.nextElement())) + return true; + } + +@@ -574,10 +574,10 @@ + { + java.util.Properties saveProps = new java.util.Properties(); + +- java.util.Enumeration enum = m_Properties.propertyNames(); +- while (enum.hasMoreElements()) ++ java.util.Enumeration enumer = m_Properties.propertyNames(); ++ while (enumer.hasMoreElements()) + { +- String strKey = (String)enum.nextElement(); ++ String strKey = (String)enumer.nextElement(); + + if (!isDefaultKey(strKey)) + saveProps.put(strKey, m_Properties.getProperty(strKey)); +@@ -623,9 +623,9 @@ + + try + { +- java.util.Enumeration enum = System.getProperties().propertyNames(); +- while (enum.hasMoreElements()) +- c_DefaultProperties.addElement(enum.nextElement()); ++ java.util.Enumeration enumer = System.getProperties().propertyNames(); ++ while (enumer.hasMoreElements()) ++ c_DefaultProperties.addElement(enumer.nextElement()); + } + catch (Exception ignore0) {} + } +@@ -656,10 +656,10 @@ + } + catch (Exception ignore2) {} + +- java.util.Enumeration enum = props.propertyNames(); +- while (enum.hasMoreElements()) ++ java.util.Enumeration enumer = props.propertyNames(); ++ while (enumer.hasMoreElements()) + { +- String propKey = (String)enum.nextElement(); ++ String propKey = (String)enumer.nextElement(); + + // if the key is not a default put the new property into the table + if (!isDefaultKey(propKey)) + +--- sj2/stardiv/controller/StreamObserver.java 2000-09-18 11:54:04.000000000 -0500 ++++ sj2/stardiv/controller/StreamObserver.java 2005-04-19 01:56:30.000000000 -0500 +@@ -65,8 +65,7 @@ + import java.util.Observable; + import java.net.URL; + import java.net.MalformedURLException; +-import sun.net.ProgressData; +-import sun.net.ProgressEntry; ++import sun.net.ProgressSource; + + + /** +@@ -79,12 +78,12 @@ + { + public StreamObserver() + { +- ProgressData.pdata.addObserver( this ); ++ progressSource.beginTracking(); + } + + public void dispose() + { +- ProgressData.pdata.deleteObserver( this ); ++ progressSource.finishTracking(); + } + + static long nLastTime; +@@ -95,48 +94,47 @@ + nLastTime = System.currentTimeMillis(); + + String aStatus = null; +- ProgressEntry pEntry = (ProgressEntry)aArg; +- switch( pEntry.what ) ++ switch( progressSource.getState() ) + { +- case ProgressData.CONNECTED: ++ case CONNECTED: + { + try + { +- URL aURL = new URL( pEntry.label ); ++ URL aURL = progressSource.getURL(); + aStatus = "Connect: Host " + aURL.getHost() + " contacted. Waiting for reply..."; + } +- catch( MalformedURLException e ) ++ catch( Exception e ) + { +- aStatus = "Connect: " + pEntry.label; ++ aStatus = "Connect: " + progressSource.getURL().toString(); + } + } + break; + +- case ProgressData.UPDATE: ++ case UPDATE: + if( System.currentTimeMillis() - nLastTime > 3000 ) + // Only 1 update / 3s + return; +- if( pEntry.need != 0 ) ++ if( progressSource.getExpected() > 0 ) + { + // Java kommt mit dem letzten Byte nicht r"uber +- aStatus = "Transfered: " + pEntry.label + " - "; +- int nPercent = (int)(((long)pEntry.read * 100) / pEntry.need); ++ aStatus = "Transfered: " + progressSource.getURL().toString() + " - "; ++ int nPercent = (int)(((long)progressSource.getProgress() * 100) / progressSource.getExpected()); + aStatus += String.valueOf( nPercent ) + "% of "; +- if( pEntry.need >= 1000 ) +- aStatus += String.valueOf( pEntry.need / 1000 ) + "K "; ++ if( progressSource.getExpected() >= 1000 ) ++ aStatus += String.valueOf( progressSource.getExpected() / 1000 ) + "K "; + else +- aStatus += String.valueOf( pEntry.need ); ++ aStatus += String.valueOf( progressSource.getExpected() ); + aStatus += "bytes."; + } + else +- aStatus = "Transfered: " + pEntry.label; ++ aStatus = "Transfered: " + progressSource.getURL().toString(); + break; + +- case ProgressData.NEW: +- aStatus = "Try: " + pEntry.label; ++ case NEW: ++ aStatus = "Try: " + progressSource.getURL().toString(); + break; +- case ProgressData.DELETE: +- aStatus = "Done: " + pEntry.label; ++ case DELETE: ++ aStatus = "Done: " + progressSource.getURL().toString(); + break; + } + if( aStatus != null ) +@@ -179,6 +177,7 @@ + System.out.println( pStatus ); + } + } ++ private ProgressSource progressSource; + } + + + +--- unoil/makefile.pmk 2002-06-20 11:41:33.000000000 -0500 ++++ unoil/makefile.pmk 2005-04-19 01:56:30.000000000 -0500 +@@ -77,7 +77,7 @@ + GENJAVAFILES := $(foreach,i,$(JAVAFILESLIST) $(GENJAVADIR)$/$(PACKAGE)$/$i) + GENCLASSFILES := $(foreach,i,$(JAVAFILESLIST:b) $(GENCLASSDIR)$/$(PACKAGE)$/$i.class) + +-JAVAFLAGS = -target 1.1 ++#JAVAFLAGS = -target 1.1 + # --- Targets ------------------------------------------------------ + + JAVAFILES=$(GENJAVAFILES) + +--- xmerge/java/org/openoffice/xmerge/ConvertData.java 2002-03-07 10:45:20.000000000 -0600 ++++ xmerge/java/org/openoffice/xmerge/ConvertData.java 2005-04-19 01:56:30.000000000 -0500 +@@ -127,8 +127,8 @@ + * <code>Vector</code> of <code>Document</code> objects. + */ + public Enumeration getDocumentEnumeration() { +- Enumeration enum = v.elements(); +- return (enum); ++ Enumeration enumer = v.elements(); ++ return (enumer); + } + + + +--- xmerge/java/org/openoffice/xmerge/converter/xml/xslt/DocumentDeserializerImpl.java 2003-05-29 04:03:38.000000000 -0500 ++++ xmerge/java/org/openoffice/xmerge/converter/xml/xslt/DocumentDeserializerImpl.java 2005-04-19 01:56:30.000000000 -0500 +@@ -155,14 +155,14 @@ + */ + public Document deserialize() throws ConvertException, IOException { + log("\nFound the XSLT deserializer"); +- Enumeration enum = cd.getDocumentEnumeration(); ++ Enumeration enumer = cd.getDocumentEnumeration(); + org.w3c.dom.Document domDoc=null; + DOMDocument docOut=null; + GenericOfficeDocument doc = null; + ByteArrayOutputStream baos =null; + GenericOfficeDocument sxwDoc = new GenericOfficeDocument("output"); +- while (enum.hasMoreElements()) { +- docOut = (DOMDocument) enum.nextElement(); ++ while (enumer.hasMoreElements()) { ++ docOut = (DOMDocument) enumer.nextElement(); + } + domDoc = docOut.getContentDOM(); + try{ + +--- xmerge/java/org/openoffice/xmerge/converter/xml/xslt/PluginFactoryImpl.java 2002-04-09 07:18:44.000000000 -0500 ++++ xmerge/java/org/openoffice/xmerge/converter/xml/xslt/PluginFactoryImpl.java 2005-04-19 01:56:30.000000000 -0500 +@@ -183,9 +183,9 @@ + String ext= ".txt"; + String mimeType = null; + ConverterInfo ci = this.getConverterInfo(); +- Enumeration enum = ci.getDeviceMime(); +- while (enum.hasMoreElements()) { +- mimeType= (String) enum.nextElement(); ++ Enumeration enumer = ci.getDeviceMime(); ++ while (enumer.hasMoreElements()) { ++ mimeType= (String) enumer.nextElement(); + } + try { + props.load(is); + +--- xmlhelp/source/com/sun/star/help/HelpIndexer.java 2004-10-28 06:52:44.000000000 -0500 ++++ xmlhelp/source/com/sun/star/help/HelpIndexer.java 2005-04-19 01:56:30.000000000 -0500 +@@ -197,13 +197,13 @@ + table.close( 0 ); + + System.out.println( "Indexing..." ); +- Enumeration enum = _hashDocInfo.elements(); ++ Enumeration enumer = _hashDocInfo.elements(); + int cut = 0; +- while( enum.hasMoreElements() && cut < 100000000 ) ++ while( enumer.hasMoreElements() && cut < 100000000 ) + { + try + { +- DocInfo info = ( DocInfo ) enum.nextElement(); ++ DocInfo info = ( DocInfo ) enumer.nextElement(); + String url = info.getURL(); + if( url == null ) + { +@@ -421,12 +421,12 @@ + + void dump() + { +- Enumeration enum = _hash.keys(); ++ Enumeration enumer = _hash.keys(); + int j = 0; + String[] list = new String[ _hash.size() ]; +- while( enum.hasMoreElements() ) ++ while( enumer.hasMoreElements() ) + { +- list[j++] = ( String ) enum.nextElement(); ++ list[j++] = ( String ) enumer.nextElement(); + } + + Db table; +@@ -462,12 +462,12 @@ + + void dumpHelptext() + { +- Enumeration enum = _hashHelptext.keys(); ++ Enumeration enumer = _hashHelptext.keys(); + int j = 0; + String[] list = new String[ _hashHelptext.size() ]; +- while( enum.hasMoreElements() ) ++ while( enumer.hasMoreElements() ) + { +- list[j++] = ( String ) enum.nextElement(); ++ list[j++] = ( String ) enumer.nextElement(); + } + + Db table; + +--- xmlhelp/source/com/sun/star/help/HelpTransformer.java 2001-02-07 03:35:47.000000000 -0600 ++++ xmlhelp/source/com/sun/star/help/HelpTransformer.java 2005-04-19 01:56:30.000000000 -0500 +@@ -14,11 +14,11 @@ + { + String styleName; + Hashtable styles; +- Enumeration enum = defs.getTable().keys(); ++ Enumeration enumer = defs.getTable().keys(); + +- while( enum.hasMoreElements() ) ++ while( enumer.hasMoreElements() ) + { +- styleName = ( String ) enum.nextElement(); ++ styleName = ( String ) enumer.nextElement(); + styles = defs.getEffectiveStyle( styleName ); + + Enumeration styleOptions = styles.keys(); +@@ -112,11 +112,11 @@ + while( it.hasNext() ) + { + Hashtable curr; +- Enumeration enum = (curr = ( Hashtable )it.next()).keys(); +- while( enum.hasMoreElements() ) ++ Enumeration enumer = (curr = ( Hashtable )it.next()).keys(); ++ while( enumer.hasMoreElements() ) + { + String str; +- if( result.get( str = ( String ) enum.nextElement() ) == null ) ++ if( result.get( str = ( String ) enumer.nextElement() ) == null ) + result.put( str,curr.get( str ) ); + } + } +@@ -129,11 +129,11 @@ + { + String str; + Hashtable a = getEffectiveStyle( "p.def1" ); +- Enumeration enum = a.keys(); ++ Enumeration enumer = a.keys(); + +- while( enum.hasMoreElements() ) ++ while( enumer.hasMoreElements() ) + { +- System.out.println( (str = ( String ) enum.nextElement()) + " : " + ((String)a.get(str)) ); ++ System.out.println( (str = ( String ) enumer.nextElement()) + " : " + ((String)a.get(str)) ); + } + } + +Index: config_office/set_soenv.in +=================================================================== +RCS file: /cvs/tools/config_office/set_soenv.in,v +retrieving revision 1.10.6.12 +diff -u -r1.10.6.12 set_soenv.in +--- config_office/set_soenv.in 29 Apr 2005 14:58:58 -0000 1.10.6.12 ++++ config_office/set_soenv.in 10 Sep 2006 08:15:16 -0000 +@@ -63,7 +63,7 @@ + my ( $BIG_SVX, $COM, $CPU, $CPUNAME, $CVER, $DLLSUFFIX, $GLIBC, $GUI, $GUIBASE, $GUIENV, + $GVER, $GVERDIR, $OS, $OSVERSION, $OUTPATH, $INPATH, $PATH_SEPERATOR, $PROSWITCH, $XPVERSION, $BOTH, + $DEMO_ENV, $DYNAMIC_CRT, $SET_EXCEPTIONS, $emergency, $use_shl_versions, $CDPATHx, $JRELIBDIR, +- $JRETOOLKITDIR, $JRETHREADDIR, $EXCEPTIONS, $WRAPCMD ); ++ $JREEXTRALIBDIR, $JRETOOLKITDIR, $JRETHREADDIR, $EXCEPTIONS, $WRAPCMD ); + # + #------------------------------------------- + # IIc. Declaring the environment variables. +@@ -364,6 +364,7 @@ + $JRELIBDIR = '$JAVA_HOME'.$ds."jre".$ds."lib".$ds."i386"; + $JRETOOLKITDIR = '$JAVA_HOME'.$ds."jre".$ds."lib".$ds."i386".$ds."client"; + $JRETHREADDIR = '$JAVA_HOME'.$ds."jre".$ds."lib".$ds."i386".$ds."native_threads"; ++ $JREEXTRALIBDIR = '$JAVA_HOME'.$ds."jre".$ds."lib".$ds."i386".$ds."xawt"; + } + elsif ( $platform eq "$Linux" ) + { +@@ -901,6 +902,7 @@ + $ps.$JRELIBDIR. + $ps.$JRETOOLKITDIR. + $ps.$JRETHREADDIR. ++ $ps.$JREEXTRALIBDIR. + $ps.$par_dir.$LIB. + $ps_STLPORT_LIB. + $ps.'$SOLARVER'.$ds.'$UPD'.$ds.'$INPATH'.$LIB. |