Bug#211288: Updated patches to build RC5 without a JDK
I updated the patches for building without a JDK to RC5. I included
changelog entries for the Debian packaging and the ooo-build work. I
also added support in the Debian packaging to optionally build with a
JDK (based on the optional Mozilla support), if DEB_BUILD_OPTIONS
contains jdkhome=/absolute/path/to/jdk. However, I only tested building
the packages without a JDK. If there are no problems with these
patches, I will commit the ooo-build work to CVS as soon as my JCA is
listed on www.openoffice.org/copyright/copyrightapproved.html .
The packages built sucessfully, but the MANIFEST check failed due to
changes in the new Ximian icon set and to RC5 shipping pyuno and the
internal python by default. I tested the packages by building with
IGNORE_MANIFEST_CHANGES.
- Josh Triplett
diff -Naur -x CVS debian.orig/MANIFEST.i386 debian/MANIFEST.i386
--- debian.orig/MANIFEST.i386 2003-09-27 12:01:25.000000000 -0700
+++ debian/MANIFEST.i386 2003-09-17 12:17:43.000000000 -0700
@@ -109,25 +109,6 @@
usr/lib/openoffice/program/acceptor.uno.so
usr/lib/openoffice/program/bootstraprc
usr/lib/openoffice/program/bridgefac.uno.so
-usr/lib/openoffice/program/classes/XFlatXml.jar
-usr/lib/openoffice/program/classes/XMergeBridge.jar
-usr/lib/openoffice/program/classes/XSLTFilter.jar
-usr/lib/openoffice/program/classes/XSLTValidate.jar
-usr/lib/openoffice/program/classes/classes.jar
-usr/lib/openoffice/program/classes/common.jar
-usr/lib/openoffice/program/classes/docbook.jar
-usr/lib/openoffice/program/classes/htmlsoff.jar
-usr/lib/openoffice/program/classes/java_uno.jar
-usr/lib/openoffice/program/classes/juh.jar
-usr/lib/openoffice/program/classes/jurt.jar
-usr/lib/openoffice/program/classes/jut.jar
-usr/lib/openoffice/program/classes/officebean.jar
-usr/lib/openoffice/program/classes/report.jar
-usr/lib/openoffice/program/classes/ridl.jar
-usr/lib/openoffice/program/classes/sandbox.jar
-usr/lib/openoffice/program/classes/unoil.jar
-usr/lib/openoffice/program/classes/xmerge.jar
-usr/lib/openoffice/program/classes/xt.jar
usr/lib/openoffice/program/component.reg
usr/lib/openoffice/program/components/libaddrbook.so
usr/lib/openoffice/program/components/libmork.so
@@ -207,11 +188,6 @@
usr/lib/openoffice/program/introspection.uno.so
usr/lib/openoffice/program/invocadapt.uno.so
usr/lib/openoffice/program/invocation.uno.so
-usr/lib/openoffice/program/javaldx
-usr/lib/openoffice/program/javaloader.uno.so
-usr/lib/openoffice/program/javavm.uno.so
-usr/lib/openoffice/program/jvmsetup
-usr/lib/openoffice/program/jvmsetup.bin
usr/lib/openoffice/program/libabp645li.so
usr/lib/openoffice/program/libadabas2.so
usr/lib/openoffice/program/libanalysis645li.so
@@ -235,7 +211,6 @@
usr/lib/openoffice/program/libdate645li.so
usr/lib/openoffice/program/libdb-3.2.so
usr/lib/openoffice/program/libdb_cxx-3.2.so
-usr/lib/openoffice/program/libdb_java-3.2.so
usr/lib/openoffice/program/libdba645li.so
usr/lib/openoffice/program/libdbase645li.so
usr/lib/openoffice/program/libdbi645li.so
@@ -279,15 +254,6 @@
usr/lib/openoffice/program/libicuuc.so.22
usr/lib/openoffice/program/libicuuc.so.22.0
usr/lib/openoffice/program/libj645li_g.so
-usr/lib/openoffice/program/libjava_uno.so
-usr/lib/openoffice/program/libjdbc2.so
-usr/lib/openoffice/program/libjpipe.so
-usr/lib/openoffice/program/libjuh.so
-usr/lib/openoffice/program/libjuhx.so
-usr/lib/openoffice/program/libjvm645li.so
-usr/lib/openoffice/program/libjvmaccessgcc3.so
-usr/lib/openoffice/program/libjvmaccessgcc3.so.3
-usr/lib/openoffice/program/libjvmaccessgcc3.so.3.1.0
usr/lib/openoffice/program/libldap50.so
usr/lib/openoffice/program/liblng645li.so
usr/lib/openoffice/program/liblocaledata_en.so
@@ -307,7 +273,6 @@
usr/lib/openoffice/program/libodbcbase2.so
usr/lib/openoffice/program/libofa645li.so
usr/lib/openoffice/program/liboffacc645li.so
-usr/lib/openoffice/program/libofficebean.so
usr/lib/openoffice/program/libpackage2.so
usr/lib/openoffice/program/libpcr645li.so
usr/lib/openoffice/program/libpdffilter645li.so
@@ -383,8 +348,6 @@
usr/lib/openoffice/program/libvos3gcc3.so
usr/lib/openoffice/program/libwrp645li.so
usr/lib/openoffice/program/libxcr645li.so
-usr/lib/openoffice/program/libxmlfa645li.so
-usr/lib/openoffice/program/libxmlfd645li.so
usr/lib/openoffice/program/libxmx645li.so
usr/lib/openoffice/program/libxo645li.so
usr/lib/openoffice/program/libxpcom.so
@@ -435,7 +398,6 @@
usr/lib/openoffice/program/resource/gal64501.res
usr/lib/openoffice/program/resource/imp64501.res
usr/lib/openoffice/program/resource/iso64501.res
-usr/lib/openoffice/program/resource/jvm64501.res
usr/lib/openoffice/program/resource/lgd64501.res
usr/lib/openoffice/program/resource/ofa64501.res
usr/lib/openoffice/program/resource/ooo64501.res
@@ -2003,7 +1965,6 @@
usr/lib/openoffice/share/cde/types/zh_TW.UTF-8/vnd.sun.xml.writer.global.dt
usr/lib/openoffice/share/cde/types/zh_TW.UTF-8/writer.dt
usr/lib/openoffice/share/cde/types/zh_TW.UTF-8/writer.fp
-usr/lib/openoffice/share/config/javarc
usr/lib/openoffice/share/config/psetup.xpm
usr/lib/openoffice/share/config/psetupl.xpm
usr/lib/openoffice/share/config/symbol/sc05300.bmp
diff -Naur -x CVS debian.orig/MANIFEST.powerpc debian/MANIFEST.powerpc
--- debian.orig/MANIFEST.powerpc 2003-09-27 12:01:26.000000000 -0700
+++ debian/MANIFEST.powerpc 2003-09-17 12:17:43.000000000 -0700
@@ -109,25 +109,6 @@
usr/lib/openoffice/program/acceptor.uno.so
usr/lib/openoffice/program/bootstraprc
usr/lib/openoffice/program/bridgefac.uno.so
-usr/lib/openoffice/program/classes/XFlatXml.jar
-usr/lib/openoffice/program/classes/XMergeBridge.jar
-usr/lib/openoffice/program/classes/XSLTFilter.jar
-usr/lib/openoffice/program/classes/XSLTValidate.jar
-usr/lib/openoffice/program/classes/classes.jar
-usr/lib/openoffice/program/classes/common.jar
-usr/lib/openoffice/program/classes/docbook.jar
-usr/lib/openoffice/program/classes/htmlsoff.jar
-usr/lib/openoffice/program/classes/java_uno.jar
-usr/lib/openoffice/program/classes/juh.jar
-usr/lib/openoffice/program/classes/jurt.jar
-usr/lib/openoffice/program/classes/jut.jar
-usr/lib/openoffice/program/classes/officebean.jar
-usr/lib/openoffice/program/classes/report.jar
-usr/lib/openoffice/program/classes/ridl.jar
-usr/lib/openoffice/program/classes/sandbox.jar
-usr/lib/openoffice/program/classes/unoil.jar
-usr/lib/openoffice/program/classes/xmerge.jar
-usr/lib/openoffice/program/classes/xt.jar
usr/lib/openoffice/program/component.reg
usr/lib/openoffice/program/components/libabsyncsvc.so
usr/lib/openoffice/program/components/libaddrbook.so
@@ -208,11 +189,6 @@
usr/lib/openoffice/program/introspection.uno.so
usr/lib/openoffice/program/invocadapt.uno.so
usr/lib/openoffice/program/invocation.uno.so
-usr/lib/openoffice/program/javaldx
-usr/lib/openoffice/program/javaloader.uno.so
-usr/lib/openoffice/program/javavm.uno.so
-usr/lib/openoffice/program/jvmsetup
-usr/lib/openoffice/program/jvmsetup.bin
usr/lib/openoffice/program/libabp645lp.so
usr/lib/openoffice/program/libadabas2.so
usr/lib/openoffice/program/libanalysis645lp.so
@@ -236,7 +212,6 @@
usr/lib/openoffice/program/libdate645lp.so
usr/lib/openoffice/program/libdb-3.2.so
usr/lib/openoffice/program/libdb_cxx-3.2.so
-usr/lib/openoffice/program/libdb_java-3.2.so
usr/lib/openoffice/program/libdba645lp.so
usr/lib/openoffice/program/libdbase645lp.so
usr/lib/openoffice/program/libdbi645lp.so
@@ -279,15 +254,6 @@
usr/lib/openoffice/program/libicuuc.so.22
usr/lib/openoffice/program/libicuuc.so.22.0
usr/lib/openoffice/program/libj645lp_g.so
-usr/lib/openoffice/program/libjava_uno.so
-usr/lib/openoffice/program/libjdbc2.so
-usr/lib/openoffice/program/libjpipe.so
-usr/lib/openoffice/program/libjuh.so
-usr/lib/openoffice/program/libjuhx.so
-usr/lib/openoffice/program/libjvm645lp.so
-usr/lib/openoffice/program/libjvmaccessgcc3.so
-usr/lib/openoffice/program/libjvmaccessgcc3.so.3
-usr/lib/openoffice/program/libjvmaccessgcc3.so.3.1.0
usr/lib/openoffice/program/libldap50.so
usr/lib/openoffice/program/liblng645lp.so
usr/lib/openoffice/program/liblocaledata_en.so
@@ -307,7 +273,6 @@
usr/lib/openoffice/program/libodbcbase2.so
usr/lib/openoffice/program/libofa645lp.so
usr/lib/openoffice/program/liboffacc645lp.so
-usr/lib/openoffice/program/libofficebean.so
usr/lib/openoffice/program/libpackage2.so
usr/lib/openoffice/program/libpcr645lp.so
usr/lib/openoffice/program/libpdffilter645lp.so
@@ -383,8 +348,6 @@
usr/lib/openoffice/program/libvos3gcc3.so
usr/lib/openoffice/program/libwrp645lp.so
usr/lib/openoffice/program/libxcr645lp.so
-usr/lib/openoffice/program/libxmlfa645lp.so
-usr/lib/openoffice/program/libxmlfd645lp.so
usr/lib/openoffice/program/libxmx645lp.so
usr/lib/openoffice/program/libxo645lp.so
usr/lib/openoffice/program/libxpcom.so
@@ -428,7 +391,6 @@
usr/lib/openoffice/program/resource/gal64501.res
usr/lib/openoffice/program/resource/imp64501.res
usr/lib/openoffice/program/resource/iso64501.res
-usr/lib/openoffice/program/resource/jvm64501.res
usr/lib/openoffice/program/resource/lgd64501.res
usr/lib/openoffice/program/resource/ofa64501.res
usr/lib/openoffice/program/resource/ooo64501.res
@@ -2047,7 +2009,6 @@
usr/lib/openoffice/share/cde/types/zh_TW.UTF-8/vnd.sun.xml.writer.global.dt
usr/lib/openoffice/share/cde/types/zh_TW.UTF-8/writer.dt
usr/lib/openoffice/share/cde/types/zh_TW.UTF-8/writer.fp
-usr/lib/openoffice/share/config/javarc
usr/lib/openoffice/share/config/psetup.xpm
usr/lib/openoffice/share/config/psetupl.xpm
usr/lib/openoffice/share/config/symbol/sc05300.bmp
diff -Naur -x CVS debian.orig/MANIFEST.s390 debian/MANIFEST.s390
--- debian.orig/MANIFEST.s390 2003-09-27 12:01:26.000000000 -0700
+++ debian/MANIFEST.s390 2003-09-17 12:17:43.000000000 -0700
@@ -109,25 +109,6 @@
usr/lib/openoffice/program/acceptor.uno.so
usr/lib/openoffice/program/bootstraprc
usr/lib/openoffice/program/bridgefac.uno.so
-usr/lib/openoffice/program/classes/XFlatXml.jar
-usr/lib/openoffice/program/classes/XMergeBridge.jar
-usr/lib/openoffice/program/classes/XSLTFilter.jar
-usr/lib/openoffice/program/classes/XSLTValidate.jar
-usr/lib/openoffice/program/classes/classes.jar
-usr/lib/openoffice/program/classes/common.jar
-usr/lib/openoffice/program/classes/docbook.jar
-usr/lib/openoffice/program/classes/htmlsoff.jar
-usr/lib/openoffice/program/classes/java_uno.jar
-usr/lib/openoffice/program/classes/juh.jar
-usr/lib/openoffice/program/classes/jurt.jar
-usr/lib/openoffice/program/classes/jut.jar
-usr/lib/openoffice/program/classes/officebean.jar
-usr/lib/openoffice/program/classes/report.jar
-usr/lib/openoffice/program/classes/ridl.jar
-usr/lib/openoffice/program/classes/sandbox.jar
-usr/lib/openoffice/program/classes/unoil.jar
-usr/lib/openoffice/program/classes/xmerge.jar
-usr/lib/openoffice/program/classes/xt.jar
usr/lib/openoffice/program/component.reg
usr/lib/openoffice/program/components/libabsyncsvc.so
usr/lib/openoffice/program/components/libaddrbook.so
@@ -208,11 +189,6 @@
usr/lib/openoffice/program/introspection.uno.so
usr/lib/openoffice/program/invocadapt.uno.so
usr/lib/openoffice/program/invocation.uno.so
-usr/lib/openoffice/program/javaldx
-usr/lib/openoffice/program/javaloader.uno.so
-usr/lib/openoffice/program/javavm.uno.so
-usr/lib/openoffice/program/jvmsetup
-usr/lib/openoffice/program/jvmsetup.bin
usr/lib/openoffice/program/libabp645l3.so
usr/lib/openoffice/program/libadabas2.so
usr/lib/openoffice/program/libanalysis645l3.so
@@ -236,7 +212,6 @@
usr/lib/openoffice/program/libdate645l3.so
usr/lib/openoffice/program/libdb-3.2.so
usr/lib/openoffice/program/libdb_cxx-3.2.so
-usr/lib/openoffice/program/libdb_java-3.2.so
usr/lib/openoffice/program/libdba645l3.so
usr/lib/openoffice/program/libdbase645l3.so
usr/lib/openoffice/program/libdbi645l3.so
@@ -280,15 +255,6 @@
usr/lib/openoffice/program/libicuuc.so.22
usr/lib/openoffice/program/libicuuc.so.22.0
usr/lib/openoffice/program/libj645l3_g.so
-usr/lib/openoffice/program/libjava_uno.so
-usr/lib/openoffice/program/libjdbc2.so
-usr/lib/openoffice/program/libjpipe.so
-usr/lib/openoffice/program/libjuh.so
-usr/lib/openoffice/program/libjuhx.so
-usr/lib/openoffice/program/libjvm645l3.so
-usr/lib/openoffice/program/libjvmaccessgcc3.so
-usr/lib/openoffice/program/libjvmaccessgcc3.so.3
-usr/lib/openoffice/program/libjvmaccessgcc3.so.3.1.0
usr/lib/openoffice/program/libldap50.so
usr/lib/openoffice/program/liblng645l3.so
usr/lib/openoffice/program/liblocaledata_en.so
@@ -308,7 +274,6 @@
usr/lib/openoffice/program/libodbcbase2.so
usr/lib/openoffice/program/libofa645l3.so
usr/lib/openoffice/program/liboffacc645l3.so
-usr/lib/openoffice/program/libofficebean.so
usr/lib/openoffice/program/libpackage2.so
usr/lib/openoffice/program/libpcr645l3.so
usr/lib/openoffice/program/libpdffilter645l3.so
@@ -384,8 +349,6 @@
usr/lib/openoffice/program/libvos3gcc3.so
usr/lib/openoffice/program/libwrp645l3.so
usr/lib/openoffice/program/libxcr645l3.so
-usr/lib/openoffice/program/libxmlfa645l3.so
-usr/lib/openoffice/program/libxmlfd645l3.so
usr/lib/openoffice/program/libxmx645l3.so
usr/lib/openoffice/program/libxo645l3.so
usr/lib/openoffice/program/libxpcom.so
@@ -436,7 +399,6 @@
usr/lib/openoffice/program/resource/gal64501.res
usr/lib/openoffice/program/resource/imp64501.res
usr/lib/openoffice/program/resource/iso64501.res
-usr/lib/openoffice/program/resource/jvm64501.res
usr/lib/openoffice/program/resource/lgd64501.res
usr/lib/openoffice/program/resource/ofa64501.res
usr/lib/openoffice/program/resource/ooo64501.res
@@ -2006,7 +1968,6 @@
usr/lib/openoffice/share/cde/types/zh_TW.UTF-8/writer.fp
usr/lib/openoffice/share/config/psetup.xpm
usr/lib/openoffice/share/config/psetupl.xpm
-usr/lib/openoffice/share/config/javarc
usr/lib/openoffice/share/config/symbol/sc05300.bmp
usr/lib/openoffice/share/config/symbol/sc05301.bmp
usr/lib/openoffice/share/config/symbol/sc05302.bmp
diff -Naur -x CVS debian.orig/README debian/README
--- debian.orig/README 2003-09-27 12:01:26.000000000 -0700
+++ debian/README 2003-09-26 23:47:56.000000000 -0700
@@ -7,7 +7,6 @@
=================================
Overview:
apt-get source openoffice.org
- [install a jdk if needed]
[install moz zips if building for powerpc, s390 or sparc]
apt-get build-dep openoffice.org (to install build dependencies)
cd openoffice.org-1.0.99+1.1rc
@@ -53,21 +52,15 @@
jdkhome=/absolute/path/to/jdk - use the JDK installed in this path.
-Installing a JDK
-----------------
-OpenOffice.org still needs a non-free JDK. You can find a suitable JDK here:
+JDK Support
+-----------
--i386, powerpc and sparc-
- deb http://ftp.gwdg.de/pub/languages/java/linux/debian unstable main non-free
-
--s390-
- https://www6.software.ibm.com/dl/lxdk/lxdk-p (unpack tarball under /usr/local)
-
-If you a building on a machine without a JDK and have no root access to install
-one, you can install the JDK to your home directory and specify the path using
-DEB_BUILD_OPTIONS=jdkhome=/absolute/path/to/jdk
-
-Hint: use dpkg-buildpackage -d to skip the build dependencies check.
+The official Debian packages of OpenOffice.org are built without a JDK. This
+disables support for some features which require a JDK at runtime. In order
+to enable these features, a JDK must be present at build time. To build the
+packages from source using a JDK, add jdkhome=/absolute/path/to/jdk to
+DEB_BUILD_OPTIONS. You will also need libcrimson-java, libxalan-java, and
+libxalan2-java, in addition to the standard build dependencies.
We are working on adding support for other JDKs to OOo. See this issue for progress:
http://www.openoffice.org/issues/show_bug.cgi?id=10477
diff -Naur -x CVS debian.orig/changelog debian/changelog
--- debian.orig/changelog 2003-09-27 12:01:26.000000000 -0700
+++ debian/changelog 2003-09-27 10:45:17.000000000 -0700
@@ -19,6 +19,52 @@
* Updated patches:
+ obsolete parts of doc-defaults.diff removed in favour of being
configurable through app-compatible.diff (closes: #212157) [MM]
+ * Build without a JDK. (closes: #211288) [JT]
+ * Added patches:
+ + allow-no-jdk.diff [JT]: If java is disabled with --disable-java,
+ don't look for a JDK, but do look for xsltproc, and set XSLTPROC
+ in set_soenv.
+ + solenv-set-solar-java-only-if-unset.diff [JT]: Set the
+ SOLAR_JAVA variable conditionally with "*=".
+ + readlicense-oo-xsltproc.diff [JT]: Use xsltproc to replace
+ java for xml transforms in readlicense_oo.
+ + officecfg-xsltproc.diff [JT]: Use xsltproc to replace java
+ for xml transforms in officecfg.
+ + berkeleydb-handle-no-solar-java.diff [JT]: If SOLAR_JAVA is
+ not set, don't pass --enable-java to the configure script, and
+ don't expect the jar when finished.
+ + ridljar-handle-no-solar-java.diff [JT]: If SOLAR_JAVA is not
+ set, don't attempt to zip up the compiled java files, since they
+ will not be built.
+ + jurt-handle-no-solar-java.diff [JT]: Don't build jpipe with
+ SOLAR_JAVA not set.
+ + jvmaccess-handle-no-solar-java.diff [JT]: Don't build jvmaccess
+ with SOLAR_JAVA not set.
+ + jni-uno-handle-no-solar-java.diff [JT]: Don't build jni_uno
+ with SOLAR_JAVA not set.
+ + javaunohelper-handle-no-solar-java.diff [JT]: Don't build
+ javaunohelper with SOLAR_JAVA not set
+ + psprint-handle-no-solar-java.diff [JT]: Don't use jvmaccess
+ to get JDK font path with SOLAR_JAVA not set.
+ + sj2-handle-no-solar-java.diff [JT]: When SOLAR_JAVA is not set,
+ replace java applet support with stubs that throw an exception.
+ + setup2-handle-no-solar-java.diff [JT]: Don't build jvmsetup
+ or use jvmaccess for java-related setup with SOLAR_JAVA not set.
+ + scp-handle-no-solar-java.diff [JT]: Don't ship various
+ java-related files that will no longer be built, but ship the
+ stubbed out libj from sj2 because setup fails without it.
+ + svg-handle-no-solar-java.diff [JT]: Disable SVG import support
+ with SOLAR_JAVA not set, since it depends on compile-time and
+ run-time java support.
+ + xsltvalidate-handle-no-solar-java.diff [JT]: Disable java
+ components with SOLAR_JAVA not set.
+ + xsltfilter-handle-no-solar-java.diff [JT]: Disable java
+ components with SOLAR_JAVA not set.
+ + desktop-handle-no-solar-java.diff [JT]: Don't build javaldx
+ with SOLAR_JAVA not set, and check for javaldx in soffice.sh
+ before using it.
+ + odk-handle-no-solar-java.diff [JT]: Disable java components
+ and documentation of java jars with SOLAR_JAVA not set.
* debian/rules:
+ fix typos, makes mozilla autodisable actually work, thanks
Jerome Warnier [RE]
@@ -29,9 +75,31 @@
+ add pieces to uudecode the Ximian icons and to restore the old ones
after the build.. [MK, RE]
+ make apply.pl executable in patch.unapply too... [MK]
+ + conditionalize java support based on finding jdkhome in
+ DEB_BUILD_OPTIONS [JT]:
+ + Add appropriate configure flag (--disable-java or
+ --with-jdk-home=$(JDK_HOME)) to CONFIGURE_FLAGS [JT]
+ + set and export IGNORE_MANIFEST_CHANGES when building with a JDK [JT]
+ + prefix BUILDCMD with classpath when building with a JDK [JT]
+ + check for a valid JDK and the necessary java jars when building with
+ a JDK [JT]
+ + remove --with-jdk-home=$(JDK_HOME) from configure invocation in favor
+ of CONFIGURE_FLAGS [JT]
+ + move installation of files only built with a JDK into debian/rules
+ surrounded by a conditional [JT]
+ * debian/scripts/detect_java.sh:
+ + removed [JT]
+ * debian/setperms:
+ + remove chmod of scripts/detect_java.sh [JT]
* debian/openoffice.org{,-bin}.install:
+ remove mozilla files [RE]
+ install usr/lib/openoffice/share/gallery/htmlexpo/*.png
+ + remove java files [JT]
+ * debian/MANIFEST.{i386,powerpc,s390}:
+ + remove java files [JT]
+ * debian/README:
+ + update documentation to reflect that OpenOffice.org no longer requires
+ a JDK to build, but can optionally be built with one.
* debian/control.in:
+ Build-Depend: on libpng12-dev | libpng2-dev, thanks again nobse
(closes: #207774) [RE]
@@ -40,6 +108,9 @@
+ Build-Depend on binutils (>=2.14.90.0.6-2) for sparc because ld crashes
on earlier versions (see bug#205548) [CH]
+ Build-Depend on libfontconfig1-dev for new fontconfig support [CH]
+ + Remove Build-Depends for j2sdk1.3 and lib*-java [JT]
+ + Build-Depend on xsltproc [JT]
+ + Move from contrib to main [JT]
* debian/po:
+ add japanese debconf template translation, thanks Kenshi Muto
(closes: #207714) [RE]
diff -Naur -x CVS debian.orig/control debian/control
--- debian.orig/control 2003-09-27 12:01:26.000000000 -0700
+++ debian/control 2003-09-26 22:23:03.000000000 -0700
@@ -1,9 +1,9 @@
Source: openoffice.org
-Section: contrib/editors
+Section: editors
Priority: optional
Maintainer: Debian OpenOffice Team <debian-openoffice@lists.debian.org>
Uploaders: Chris Halls <halls@debian.org>, Jan-Hendrik Palic <jan.palic@linux-debian.de>, Rene Engelhard <rene@debian.org>
-Build-Depends: bison (<= 1:1.75-1) | bison (>= 1:1.875a-1), bzip2, debhelper (>= 4.0.9) | debhelper (= 4.0.2.openoffice), flex | flex-old, libpam0g-dev | libpam-dev, libxaw7-dev, tcsh, unzip, zip, g++-3.3 (>= 1:3.3.1-1) | g++-3.0 [!powerpc], autoconf (>= 2.54), j2sdk1.3 [!s390], sharutils, libcrimson-java, libxalan-java, libxalan2-java, libgtk2.0-dev, pkg-config, libpng12-dev | libpng2-dev, libjpeg62-dev, libtiff3g-dev, libart-2.0-dev (>= 2.3.13), imagemagick, xutils, libfontconfig1-dev, binutils (>=2.14.90.0.6-2) [sparc]
+Build-Depends: bison (<= 1:1.75-1) | bison (>= 1:1.875a-1), bzip2, debhelper (>= 4.0.9) | debhelper (= 4.0.2.openoffice), flex | flex-old, libpam0g-dev | libpam-dev, libxaw7-dev, tcsh, unzip, zip, g++-3.3 (>= 1:3.3.1-1) | g++-3.0 [!powerpc], autoconf (>= 2.54), sharutils, libgtk2.0-dev, pkg-config, libpng12-dev | libpng2-dev, libjpeg62-dev, libtiff3g-dev, libart-2.0-dev (>= 2.3.13), xsltproc, imagemagick, xutils, libfontconfig1-dev, binutils (>=2.14.90.0.6-2) [sparc]
Build-Conflicts: libc6 (<< 2.2.5-13) [powerpc]
Standards-Version: 3.5.6
@@ -72,7 +72,7 @@
KDE and KOffice.
Package: openoffice.org-crashrep
-Section: contrib/utils
+Section: utils
Architecture: any
Recommends: openoffice.org
Enhances: openoffice.org
@@ -85,7 +85,7 @@
Package: openoffice.org-gnome
Architecture: any
-Section: contrib/gnome
+Section: gnome
Depends: openoffice.org (>> 1.0.99+1.1rc), ${shlibs:Depends}
Suggests: gnome
Description: GNOME desktop integration for OpenOffice.org
diff -Naur -x CVS debian.orig/control.in debian/control.in
--- debian.orig/control.in 2003-09-27 12:01:26.000000000 -0700
+++ debian/control.in 2003-09-26 22:22:36.000000000 -0700
@@ -1,9 +1,9 @@
Source: openoffice.org
-Section: contrib/editors
+Section: editors
Priority: optional
Maintainer: Debian OpenOffice Team <debian-openoffice@lists.debian.org>
Uploaders: Chris Halls <halls@debian.org>, Jan-Hendrik Palic <jan.palic@linux-debian.de>, Rene Engelhard <rene@debian.org>
-Build-Depends: bison (<= 1:1.75-1) | bison (>= 1:1.875a-1), bzip2, debhelper (>= 4.0.9) | debhelper (= 4.0.2.openoffice), flex | flex-old, libpam0g-dev | libpam-dev, libxaw7-dev, tcsh, unzip, zip, g++-3.3 (>= 1:3.3.1-1) | g++-3.0 [!powerpc], autoconf (>= 2.54), j2sdk1.3 [!s390], sharutils, libcrimson-java, libxalan-java, libxalan2-java, libgtk2.0-dev, pkg-config, libpng12-dev | libpng2-dev, libjpeg62-dev, libtiff3g-dev, libart-2.0-dev (>= 2.3.13), imagemagick, xutils, libfontconfig1-dev, binutils (>=2.14.90.0.6-2) [sparc]
+Build-Depends: bison (<= 1:1.75-1) | bison (>= 1:1.875a-1), bzip2, debhelper (>= 4.0.9) | debhelper (= 4.0.2.openoffice), flex | flex-old, libpam0g-dev | libpam-dev, libxaw7-dev, tcsh, unzip, zip, g++-3.3 (>= 1:3.3.1-1) | g++-3.0 [!powerpc], autoconf (>= 2.54), sharutils, libgtk2.0-dev, pkg-config, libpng12-dev | libpng2-dev, libjpeg62-dev, libtiff3g-dev, libart-2.0-dev (>= 2.3.13), xsltproc, imagemagick, xutils, libfontconfig1-dev, binutils (>=2.14.90.0.6-2) [sparc]
Build-Conflicts: libc6 (<< 2.2.5-13) [powerpc]
Standards-Version: 3.5.6
@@ -72,7 +72,7 @@
KDE and KOffice.
Package: openoffice.org-crashrep
-Section: contrib/utils
+Section: utils
Architecture: any
Recommends: openoffice.org
Enhances: openoffice.org
@@ -85,7 +85,7 @@
Package: openoffice.org-gnome
Architecture: any
-Section: contrib/gnome
+Section: gnome
Depends: openoffice.org (>> 1.0.99+1.1rc), ${shlibs:Depends}
Suggests: gnome
Description: GNOME desktop integration for OpenOffice.org
diff -Naur -x CVS debian.orig/openoffice.org-bin.install debian/openoffice.org-bin.install
--- debian.orig/openoffice.org-bin.install 2003-09-27 12:01:26.000000000 -0700
+++ debian/openoffice.org-bin.install 2003-09-17 12:17:43.000000000 -0700
@@ -32,10 +32,6 @@
usr/lib/openoffice/program/introspection.uno.so
usr/lib/openoffice/program/invocadapt.uno.so
usr/lib/openoffice/program/invocation.uno.so
-usr/lib/openoffice/program/javaldx
-usr/lib/openoffice/program/javaloader.uno.so
-usr/lib/openoffice/program/javavm.uno.so
-usr/lib/openoffice/program/jvmsetup.bin
usr/lib/openoffice/program/libabp645l[ip3].so
usr/lib/openoffice/program/libadabas2.so
usr/lib/openoffice/program/libanalysis645l[ip3].so
@@ -54,7 +50,6 @@
usr/lib/openoffice/program/libdate645l[ip3].so
usr/lib/openoffice/program/libdb-3.2.so
usr/lib/openoffice/program/libdb_cxx-3.2.so
-usr/lib/openoffice/program/libdb_java-3.2.so
usr/lib/openoffice/program/libdba645l[ip3].so
usr/lib/openoffice/program/libdbase645l[ip3].so
usr/lib/openoffice/program/libdbi645l[ip3].so
@@ -89,13 +84,6 @@
usr/lib/openoffice/program/libicule.so.22.0
usr/lib/openoffice/program/libicuuc.so.22.0
usr/lib/openoffice/program/libj645l[ip3]_g.so
-usr/lib/openoffice/program/libjava_uno.so
-usr/lib/openoffice/program/libjdbc2.so
-usr/lib/openoffice/program/libjpipe.so
-usr/lib/openoffice/program/libjuh.so
-usr/lib/openoffice/program/libjuhx.so
-usr/lib/openoffice/program/libjvm645l[ip3].so
-usr/lib/openoffice/program/libjvmaccessgcc3.so.3.1.0
usr/lib/openoffice/program/liblng645l[ip3].so
usr/lib/openoffice/program/liblocaledata_en.so
usr/lib/openoffice/program/liblocaledata_es.so
@@ -108,7 +96,6 @@
usr/lib/openoffice/program/libodbcbase2.so
usr/lib/openoffice/program/libofa645l[ip3].so
usr/lib/openoffice/program/liboffacc645l[ip3].so
-usr/lib/openoffice/program/libofficebean.so
usr/lib/openoffice/program/libpackage2.so
usr/lib/openoffice/program/libpcr645l[ip3].so
usr/lib/openoffice/program/libpdffilter645l[ip3].so
@@ -169,8 +156,6 @@
usr/lib/openoffice/program/libvos3gcc3.so
usr/lib/openoffice/program/libwrp645l[ip3].so
usr/lib/openoffice/program/libxcr645l[ip3].so
-usr/lib/openoffice/program/libxmlfa645l[ip3].so
-usr/lib/openoffice/program/libxmlfd645l[ip3].so
usr/lib/openoffice/program/libxmx645l[ip3].so
usr/lib/openoffice/program/libxo645l[ip3].so
usr/lib/openoffice/program/libxsltdlg645l[ip3].so
diff -Naur -x CVS debian.orig/openoffice.org.install debian/openoffice.org.install
--- debian.orig/openoffice.org.install 2003-09-27 12:01:26.000000000 -0700
+++ debian/openoffice.org.install 2003-09-17 12:17:43.000000000 -0700
@@ -5,28 +5,8 @@
usr/lib/openoffice/THIRDPARTYLICENSEREADME.html
usr/lib/openoffice/help/main_transform.xsl
usr/lib/openoffice/program/bootstraprc
-usr/lib/openoffice/program/classes/XFlatXml.jar
-usr/lib/openoffice/program/classes/XMergeBridge.jar
-usr/lib/openoffice/program/classes/XSLTFilter.jar
-usr/lib/openoffice/program/classes/XSLTValidate.jar
-usr/lib/openoffice/program/classes/classes.jar
-usr/lib/openoffice/program/classes/common.jar
-usr/lib/openoffice/program/classes/docbook.jar
-usr/lib/openoffice/program/classes/htmlsoff.jar
-usr/lib/openoffice/program/classes/java_uno.jar
-usr/lib/openoffice/program/classes/juh.jar
-usr/lib/openoffice/program/classes/jurt.jar
-usr/lib/openoffice/program/classes/jut.jar
-usr/lib/openoffice/program/classes/officebean.jar
-usr/lib/openoffice/program/classes/report.jar
-usr/lib/openoffice/program/classes/ridl.jar
-usr/lib/openoffice/program/classes/sandbox.jar
-usr/lib/openoffice/program/classes/unoil.jar
-usr/lib/openoffice/program/classes/xmerge.jar
-usr/lib/openoffice/program/classes/xt.jar
usr/lib/openoffice/program/configmgrrc
usr/lib/openoffice/program/fromtemplate
-usr/lib/openoffice/program/jvmsetup
usr/lib/openoffice/program/libcppu.so
usr/lib/openoffice/program/libcppu.so.3
usr/lib/openoffice/program/libcppuhelper3gcc3.so
@@ -40,8 +20,6 @@
usr/lib/openoffice/program/libicule.so.22
usr/lib/openoffice/program/libicuuc.so
usr/lib/openoffice/program/libicuuc.so.22
-usr/lib/openoffice/program/libjvmaccessgcc3.so
-usr/lib/openoffice/program/libjvmaccessgcc3.so.3
usr/lib/openoffice/program/libreg.so
usr/lib/openoffice/program/libreg.so.3
usr/lib/openoffice/program/librmcxt.so
@@ -176,7 +154,6 @@
usr/lib/openoffice/share/basic/WebWizard/WebWzrd.xdl
usr/lib/openoffice/share/basic/WebWizard/dialog.xlb
usr/lib/openoffice/share/basic/WebWizard/script.xlb
-usr/lib/openoffice/share/config/javarc
usr/lib/openoffice/share/config/psetup.xpm
usr/lib/openoffice/share/config/psetupl.xpm
usr/lib/openoffice/share/config/symbol/*.bmp
diff -Naur -x CVS debian.orig/rules debian/rules
--- debian.orig/rules 2003-09-27 12:01:26.000000000 -0700
+++ debian/rules 2003-09-27 11:58:02.000000000 -0700
@@ -42,11 +42,19 @@
# Read in architecture-specific variables of importance.
include debian/scripts/vars.$(ARCH)
-# include variable -- where is Java? ;)
+CONFIGURE_FLAGS=
+
+# If DEB_BUILD_OPTIONS contains jdkhome=/absolute/path/to/jdk, build with the
+# JDK at /absolute/path/to/jdk.
ifneq (jdkhome=,$(findstring jdkhome=,$(DEB_BUILD_OPTIONS)))
- JDK_HOME := $(shell /bin/sh debian/scripts/detect_java.sh)
+ USE_JAVA=n
+ CONFIGURE_FLAGS+= --disable-java
else
+ USE_JAVA=y
JDK_HOME:=$(shell echo "$(DEB_BUILD_OPTIONS)," | sed -n 's/^.*jdkhome=\([^,]*\),.*/\1/p')
+ CONFIGURE_FLAGS+= --with-jdk-home=$(JDK_HOME)
+ IGNORE_MANIFEST_CHANGES=1
+ export IGNORE_MANIFEST_CHANGES
endif
ifeq "$(BUILD_ALL_LANGPACKS)" "y"
@@ -65,8 +73,6 @@
# Package install directory
MAINPKGDIR:=$(CURDIR)/debian/openoffice.org$(VER)
-CONFIGURE_FLAGS=
-
# automatic configuration for woody backports
# check that default compiler is not gcc 2.x (as it is on Woody)
ifneq (gcc-2.9,$(findstring gcc-2.9,$(shell readlink /usr/bin/gcc)))
@@ -216,7 +222,10 @@
# Add parallel build flags and always hard link into the solver
#command to use to build OOo
-BUILDCMD:=XCLASSPATH=$$XCLASSPATH::/usr/share/java/crimson.jar:/usr/share/java/xalan.jar:/usr/share/java/xml-apis.jar:/usr/share/java/xalan2.jar
+ifeq "$(USE_JAVA)" "y"
+BUILDCMD+= XCLASSPATH=$$XCLASSPATH::/usr/share/java/crimson.jar:/usr/share/java/xalan.jar:/usr/share/java/xml-apis.jar:/usr/share/java/xalan2.jar
+endif
+
ifeq "$(ARCH)" "sparc"
# OOo isn't 64-bit clean - always build in 32 bit on Sparc
BUILDCMD+= sparc32
@@ -486,10 +495,19 @@
dh_testdir
$(MAKE) -f debian/rules environment
- # Make sure we have a valid JDK. If this test fails, please install the JDK
- # package (j2sdk1.3), or add the path to debian/scripts/detect_java.sh,
- # or specify a JDK location with DEB_BUILD_OPTIONS=jdkhome=/absolute/path/to/jdk
+ifeq "$(USE_JAVA)" "y"
+ # If building with a JDK, make sure we have a valid JDK and all the
+ # necessary java packages. If this test fails, please ensure that a
+ # valid JDK is provided in the path specified with
+ # DEB_BUILD_OPTIONS=jdkhome=/absolute/path/to/jdk, and that the
+ # libcrimson-java, libxalan-java, and libxalan2-java packages are
+ # installed.
test -x /$(JDK_HOME)/bin/javac
+ test -r /usr/share/java/crimson.jar
+ test -r /usr/share/java/xalan.jar
+ test -r /usr/share/java/xml-apis.jar
+ test -r /usr/share/java/xalan2.jar
+endif
# Make sure we have /proc mounted - otherwise idlc will fail later.
test -r /proc/version
@@ -500,7 +518,6 @@
cd $(SOURCE_TREE)/config_office && autoconf && \
CC="$(_CC)" CXX="$(CXX)" sh ./configure \
--with-lang=ALL \
- --with-jdk-home=$(JDK_HOME) \
--enable-libart \
--disable-rpath \
--enable-crashdump \
@@ -726,6 +743,47 @@
$(MAINPKGDIR)/$(OPENOFFICEDIR)/program
endif
+# If building with a JDK, install the additional files
+ifeq "$(USE_JAVA)" "y"
+ifeq "$(ARCH)" "i386"
+ LIBSUFFIX=i
+endif
+ifeq "$(ARCH)" "powerpc"
+ LIBSUFFIX=p
+endif
+ifeq "$(ARCH)" "s390"
+ LIBSUFFIX=3
+endif
+ifeq "$(LIBSUFFIX)" ""
+ echo 'LIBSUFFIX unknown for $(ARCH).' >&2
+ exit 1
+endif
+ for i in javaldx javaloader.uno.so javavm.uno.so jvmsetup.bin \
+ libdb_java-3.2.so libjava_uno.so libjdbc2.so libjpipe.so \
+ libjuh.so libjuhx.so libjvm645l$(LIBSUFFIX).so \
+ libjvmaccessgcc3.so.3.1.0 libofficebean.so \
+ libxmlfa645l$(LIBSUFFIX).so libxmlfd645l$(LIBSUFFIX).so; do \
+ cp -rf $(PKGOPENOFFICEDIR)/program/$$i \
+ $(MAINPKGDIR)-bin/$(OPENOFFICEDIR)/program; \
+ done
+ for i in jvmsetup libjvmaccessgcc3.so libjvmaccess3.so.3; do \
+ cp -rf $(PKGOPENOFFICEDIR)/program/$$i \
+ $(MAINPKGDIR)/$(OPENOFFICEDIR)/program; \
+ done
+ mkdir -p $(MAINPKGDIR)/$(OPENOFFICEDIR)/program/classes
+ for i in XFlatXml.jar XMergeBridge.jar XSLTFilter.jar \
+ XSLTValidate.jar classes.jar common.jar docbook.jar \
+ htmlsoff.jar java_uno.jar juh.jar jurt.jar jut.jar \
+ officebean.jar report.jar ridl.jar sandbox.jar unoil.jar \
+ xmerge.jar xt.jar ; do \
+ cp -rf $(PKGOPENOFFICEDIR)/program/classes/$$i \
+ $(MAINPKGDIR)/$(OPENOFFICEDIR)/program/classes; \
+ done
+ mkdir -p $(MAINPKGDIR)/$(OPENOFFICEDIR)/share/config
+ cp -rf $(PKGOPENOFFICEDIR)/share/config/javarc \
+ $(MAINPKGDIR)/$(OPENOFFICEDIR)/share/config
+endif
+
ifneq "$(USE_SYSTEM_LIBS)" "y"
# Copy libstlport if we are using the internal library
cp -f $(PKGOPENOFFICEDIR)/program/libstlport_gcc.so \
diff -Naur -x CVS debian.orig/scripts/detect_java.sh debian/scripts/detect_java.sh
--- debian.orig/scripts/detect_java.sh 2003-09-27 12:01:27.000000000 -0700
+++ debian/scripts/detect_java.sh 1969-12-31 16:00:00.000000000 -0800
@@ -1,16 +0,0 @@
-#!/bin/sh
-
-# where is Java? ;)
-if [ -x /usr/lib/j2sdk1.3/bin/javac ]; then
- JDK_HOME=/usr/lib/j2sdk1.3
-elif [ -x /usr/lib/j2se/1.3/bin/javac ]; then
- JDK_HOME=/usr/lib/j2se/1.3
-elif [ -x /usr/local/IBMJava2-s390-131/bin/javac ]; then
- JDK_HOME=/usr/local/IBMJava2-s390-131
-else
- # uh oh, this isn't supposed to happen :)
- JDK_HOME=JDK_HOME_NOT_FOUND
-fi
-
-# write found value to stdout
-echo $JDK_HOME
diff -Naur -x CVS debian.orig/setperms debian/setperms
--- debian.orig/setperms 2003-09-27 12:01:26.000000000 -0700
+++ debian/setperms 2003-09-17 12:17:43.000000000 -0700
@@ -12,7 +12,6 @@
scripts/source.patch \
scripts/source.unpack \
scripts/unfix.source.patch \
- scripts/detect_java.sh \
scripts/vars* \
scripts/installoverrides \
local/scripts/oo-xvfb-run \
diff -Naur -x CVS ooo-build.orig/ChangeLog ooo-build/ChangeLog
--- ooo-build.orig/ChangeLog 2003-09-27 11:36:17.000000000 -0700
+++ ooo-build/ChangeLog 2003-09-27 11:02:41.000000000 -0700
@@ -1,3 +1,71 @@
+2003-09-27 Josh Triplett <josh.trip@verizon.net>
+
+ * Support building without a JDK.
+
+ * allow-no-jdk.diff: If java is disabled with --disable-java,
+ don't look for a JDK, but do look for xsltproc, and set
+ XSLTPROC in set_soenv.
+
+ * solenv-set-solar-java-only-if-unset.diff: Set the SOLAR_JAVA
+ variable conditionally with "*=".
+
+ * readlicense-oo-xsltproc.diff: Use xsltproc to replace java
+ for xml transforms in readlicense_oo.
+
+ * officecfg-xsltproc.diff: Use xsltproc to replace java for
+ xml transforms in officecfg.
+
+ * berkeleydb-handle-no-solar-java.diff: If SOLAR_JAVA is
+ not set, don't pass --enable-java to the configure script,
+ and don't expect the jar when finished.
+
+ * ridljar-handle-no-solar-java.diff: If SOLAR_JAVA is not
+ set, don't attempt to zip up the compiled java files,
+ since they will not be built.
+
+ * jurt-handle-no-solar-java.diff: Don't build jpipe with
+ SOLAR_JAVA not set.
+
+ * jvmaccess-handle-no-solar-java.diff: Don't build jvmaccess
+ with SOLAR_JAVA not set.
+
+ * jni-uno-handle-no-solar-java.diff: Don't build jni_uno
+ with SOLAR_JAVA not set.
+
+ * javaunohelper-handle-no-solar-java.diff: Don't build
+ javaunohelper with SOLAR_JAVA not set
+
+ * psprint-handle-no-solar-java.diff: Don't use jvmaccess to
+ get JDK font path with SOLAR_JAVA not set.
+
+ * sj2-handle-no-solar-java.diff: When SOLAR_JAVA is not
+ set, replace java applet support with stubs that throw
+ an exception.
+
+ * setup2-handle-no-solar-java.diff: Don't build jvmsetup or
+ use jvmaccess for java-related setup with SOLAR_JAVA not set.
+
+ * scp-handle-no-solar-java.diff: Don't ship various
+ java-related files that will no longer be built, but ship
+ the stubbed out libj from sj2 because setup fails without it.
+
+ * svg-handle-no-solar-java.diff: Disable SVG import support
+ with SOLAR_JAVA not set, since it depends on compile-time
+ and run-time java support.
+
+ * xsltvalidate-handle-no-solar-java.diff: Disable java
+ components with SOLAR_JAVA not set.
+
+ * xsltfilter-handle-no-solar-java.diff: Disable java
+ components with SOLAR_JAVA not set.
+
+ * desktop-handle-no-solar-java.diff: Don't build javaldx
+ with SOLAR_JAVA not set, and check for javaldx in soffice.sh
+ before using it.
+
+ * odk-handle-no-solar-java.diff: Disable java components
+ and documentation of java jars with SOLAR_JAVA not set.
+
2003-09-26 Michael Meeks <michael@ximian.com>
* patches/OOO_1_1/bmp32.diff: re-enable the
diff -Naur -x CVS ooo-build.orig/patches/OOO_1_1/allow-no-jdk.diff ooo-build/patches/OOO_1_1/allow-no-jdk.diff
--- ooo-build.orig/patches/OOO_1_1/allow-no-jdk.diff 1969-12-31 16:00:00.000000000 -0800
+++ ooo-build/patches/OOO_1_1/allow-no-jdk.diff 2003-09-27 10:50:31.000000000 -0700
@@ -0,0 +1,145 @@
+--- config_office/configure.in.orig 2003-09-22 11:14:29.000000000 -0700
++++ config_office/configure.in 2003-09-22 11:33:19.000000000 -0700
+@@ -1124,66 +1124,79 @@
+ dnl ===================================================================
+ dnl Checks for JDK.
+ dnl ===================================================================
+-JAVA_HOME=; export JAVA_HOME
+-if test -z "$with_jdk_home"; then
+- AC_PATH_PROG(JAVAC, javac)
+- AC_PATH_PROG(JAVA, java)
+-else
+- _javac_path="$with_jdk_home/bin/javac"
+- dnl Check if there is a java compiler at all.
+- if test -x "$_javac_path"; then
+- JAVAC=$_javac_path
+- else
+- AC_MSG_ERROR([$_javac_path not found set with_jdk_home])
++if test "$enable_java" != "no"; then
++ JAVA_HOME=; export JAVA_HOME
++ if test -z "$with_jdk_home"; then
++ AC_PATH_PROG(JAVAC, javac)
++ AC_PATH_PROG(JAVA, java)
++ else
++ _javac_path="$with_jdk_home/bin/javac"
++ dnl Check if there is a java compiler at all.
++ if test -x "$_javac_path"; then
++ JAVAC=$_javac_path
++ else
++ AC_MSG_ERROR([$_javac_path not found set with_jdk_home])
++ fi
++
++ _java_path="$with_jdk_home/bin/java"
++ dnl Check if there is a java interpreter at all.
++ if test -x "$_java_path"; then
++ JAVA=$_java_path
++ else
++ AC_MSG_ERROR([$_java_path not found set with_jdk_home])
++ fi
+ fi
++ AC_MSG_CHECKING([the installed JDK])
++ if test "$JAVA"; then
+
+- _java_path="$with_jdk_home/bin/java"
+- dnl Check if there is a java interpreter at all.
+- if test -x "$_java_path"; then
+- JAVA=$_java_path
+- else
+- AC_MSG_ERROR([$_java_path not found set with_jdk_home])
+- fi
+-fi
+-AC_MSG_CHECKING([the installed JDK])
+-if test "$JAVA"; then
+-
+- dnl java -version sends output to stderr!
+- if test `$JAVA -version 2>&1 | grep -c "Kaffe"` -gt 0; then
+-
+- dnl Kaffe specific tests
+- KAFFE_VER=`$JAVA -version 2>&1 | $EGREP " Version:" | $SED -r "s/.* Version: ([[0-9\.]]*).*/\1/"`
+- if test -z "$KAFFE_VER"; then
+- AC_MSG_ERROR([looks like Kaffe but version detection failed])
+- fi
+- _kaffe_ver=`echo "$KAFFE_VER" | $AWK -F. '{ print (($1 * 100) + $2) * 100 + $3;}'`
+- if test "$_kaffe_ver" -lt 10100; then
+- AC_MSG_ERROR([Kaffe is too old ($KAFFE_VER - $_kaffe_ver), you need at least 1.1.0])
+- fi
+- JDK=kaffe
+-
+- dnl TODO: define some project exclusion variables
+-
+- AC_MSG_RESULT([checked (Kaffe $KAFFE_VER)])
+- AC_MSG_WARN([EXPERIMENTAL: Kaffe is not a full JDK replacement - some projects will fail to compile])
+- echo "EXPERIMENTAL: Kaffe is not a full JDK replacement - some projects will fail to compile" >>warn
+- else
+-
+- dnl SUN JDK specific tests
+- _jdk=`$JAVAC -J-version 2>&1 | $AWK -F'"' '{ print \$2 }' | $SED s/[[-A-Za-z]]*//`
+- _jdk_ver=`echo "$_jdk" | $AWK -F. '{ print (($1 * 100) + $2) * 100 + $3;}'`
+-
+- if test "$_jdk_ver" -lt 10300; then
+- AC_MSG_ERROR([JDK is too old, you need at least 1.3])
+- fi
+- AC_MSG_RESULT([checked (JDK $_jdk)])
++ dnl java -version sends output to stderr!
++ if test `$JAVA -version 2>&1 | grep -c "Kaffe"` -gt 0; then
++
++ dnl Kaffe specific tests
++ KAFFE_VER=`$JAVA -version 2>&1 | $EGREP " Version:" | $SED -r "s/.* Version: ([[0-9\.]]*).*/\1/"`
++ if test -z "$KAFFE_VER"; then
++ AC_MSG_ERROR([looks like Kaffe but version detection failed])
++ fi
++ _kaffe_ver=`echo "$KAFFE_VER" | $AWK -F. '{ print (($1 * 100) + $2) * 100 + $3;}'`
++ if test "$_kaffe_ver" -lt 10100; then
++ AC_MSG_ERROR([Kaffe is too old ($KAFFE_VER - $_kaffe_ver), you need at least 1.1.0])
++ fi
++ JDK=kaffe
++
++ dnl TODO: define some project exclusion variables
++
++ AC_MSG_RESULT([checked (Kaffe $KAFFE_VER)])
++ AC_MSG_WARN([EXPERIMENTAL: Kaffe is not a full JDK replacement - some projects will fail to compile])
++ echo "EXPERIMENTAL: Kaffe is not a full JDK replacement - some projects will fail to compile" >>warn
++ else
++
++ dnl SUN JDK specific tests
++ _jdk=`$JAVAC -J-version 2>&1 | $AWK -F'"' '{ print \$2 }' | $SED s/[[-A-Za-z]]*//`
++ _jdk_ver=`echo "$_jdk" | $AWK -F. '{ print (($1 * 100) + $2) * 100 + $3;}'`
++
++ if test "$_jdk_ver" -lt 10300; then
++ AC_MSG_ERROR([JDK is too old, you need at least 1.3])
++ fi
++ AC_MSG_RESULT([checked (JDK $_jdk)])
++ fi
++ JAVA_HOME=`echo $JAVAC | $SED -n "s,//*bin//*javac,,p"`
++ else
++ AC_MSG_ERROR([JAVA not found. You need at least jdk-1.3])
+ fi
+- JAVA_HOME=`echo $JAVAC | $SED -n "s,//*bin//*javac,,p"`
++ dnl xsltproc not needed with JDK present.
++ XSLTPROC=NO_XSLTPROC
+ else
+- AC_MSG_ERROR([JAVA not found. You need at least jdk-1.3])
++ dnl Java disabled
++ JAVA_HOME=NO_JAVA_HOME ; export JAVA_HOME
++ dnl Check for xsltproc
++ AC_PATH_PROG(XSLTPROC, xsltproc, no)
++ if test "$XSLTPROC" = "no"; then
++ AC_MSG_ERROR([xsltproc is required when building with --disable-java.])
++ fi
+ fi
+ AC_SUBST(JAVA_HOME)
+ AC_SUBST(JDK)
++AC_SUBST(XSLTPROC)
+
+ dnl ===================================================================
+ dnl Checks for specific files.
+--- config_office/set_soenv.in.orig 2003-09-22 11:27:24.000000000 -0700
++++ config_office/set_soenv.in 2003-09-22 11:30:33.000000000 -0700
+@@ -1359,6 +1359,7 @@
+ if ( '@JDK@' ne '' )
+ { ToFile( "JDK", "@JDK@", "e" );
+ }
++ToFile( "XSLTPROC", "@XSLTPROC@", "e" );
+ ToFile( "ANT_HOME", "@ANT_HOME@", "e" );
+ ToFile( "JDKLIB", $JAVA_LIB, "e" );
+ ToFile( "STLPORT4", $STLPORT4, "e" );
diff -Naur -x CVS ooo-build.orig/patches/OOO_1_1/berkeleydb-handle-no-solar-java.diff ooo-build/patches/OOO_1_1/berkeleydb-handle-no-solar-java.diff
--- ooo-build.orig/patches/OOO_1_1/berkeleydb-handle-no-solar-java.diff 1969-12-31 16:00:00.000000000 -0800
+++ ooo-build/patches/OOO_1_1/berkeleydb-handle-no-solar-java.diff 2003-09-27 10:50:31.000000000 -0700
@@ -0,0 +1,34 @@
+--- berkeleydb/makefile.mk.orig 2003-08-07 20:01:59.000000000 -0700
++++ berkeleydb/makefile.mk 2003-08-07 20:04:49.000000000 -0700
+@@ -80,7 +80,10 @@
+ CONFIGURE_DIR=out
+ #relative to CONFIGURE_DIR
+ CONFIGURE_ACTION=..$/dist$/configure
+-CONFIGURE_FLAGS=--enable-cxx --enable-java --enable-dynamic --enable-shared
++CONFIGURE_FLAGS=--enable-cxx --enable-dynamic --enable-shared
++.IF "$(SOLAR_JAVA)"!=""
++CONFIGURE_FLAGS+=--enable-java
++.ENDIF
+
+ BUILD_DIR=$(CONFIGURE_DIR)
+ .IF "$(OS)"=="IRIX"
+@@ -92,7 +95,9 @@
+
+ OUT2LIB=$(BUILD_DIR)$/.libs$/libdb*$(DLLPOST)
+
++.IF "$(SOLAR_JAVA)"!=""
+ OUT2BIN=java$/classes$/db.jar
++.ENDIF
+
+ .ENDIF # "$(GUI)"=="UNX"
+
+@@ -129,7 +134,9 @@
+ include$/db_185.h \
+ include$/db_cxx.h
+
++.IF "$(SOLAR_JAVA)"!=""
+ OUT2CLASS=java$/classes$/db.jar
++.ENDIF
+
+ # --- Targets ------------------------------------------------------
+
diff -Naur -x CVS ooo-build.orig/patches/OOO_1_1/desktop-handle-no-solar-java.diff ooo-build/patches/OOO_1_1/desktop-handle-no-solar-java.diff
--- ooo-build.orig/patches/OOO_1_1/desktop-handle-no-solar-java.diff 1969-12-31 16:00:00.000000000 -0800
+++ ooo-build/patches/OOO_1_1/desktop-handle-no-solar-java.diff 2003-09-27 10:50:31.000000000 -0700
@@ -0,0 +1,69 @@
+--- desktop/scripts/soffice.sh.orig 2003-09-22 12:07:01.000000000 -0700
++++ desktop/scripts/soffice.sh 2003-09-22 12:07:47.000000000 -0700
+@@ -144,25 +144,27 @@
+ esac
+
+ # extend the ld_library_path for java: javaldx checks the sofficerc for us
+-java_ld_library_path=`"$sd_prog/javaldx"`
+-if [ "$java_ld_library_path" != "" ] ; then
+- case $sd_platform in
+- AIX)
+- LIBPATH=${java_ld_library_path}:${LIBPATH}
+- ;;
+- Darwin)
+- DYLD_LIBRARY_PATH=${java_ld_library_path}:${DYLD_LIBRARY_PATH}
+- ;;
+- HP-UX)
+- SHLIB_PATH=${java_ld_library_path}:${SHLIB_PATH}
+- ;;
+- IRIX*)
+- LD_LIBRARYN32_PATH=${java_ld_library_path}:${LD_LIBRARYN32_PATH}
+- ;;
+- *)
+- LD_LIBRARY_PATH=${java_ld_library_path}:${LD_LIBRARY_PATH}
+- ;;
+- esac
++if [ -x "$sd_prog/javaldx" ] ; then
++ java_ld_library_path=`"$sd_prog/javaldx"`
++ if [ "$java_ld_library_path" != "" ] ; then
++ case $sd_platform in
++ AIX)
++ LIBPATH=${java_ld_library_path}:${LIBPATH}
++ ;;
++ Darwin)
++ DYLD_LIBRARY_PATH=${java_ld_library_path}:${DYLD_LIBRARY_PATH}
++ ;;
++ HP-UX)
++ SHLIB_PATH=${java_ld_library_path}:${SHLIB_PATH}
++ ;;
++ IRIX*)
++ LD_LIBRARYN32_PATH=${java_ld_library_path}:${LD_LIBRARYN32_PATH}
++ ;;
++ *)
++ LD_LIBRARY_PATH=${java_ld_library_path}:${LD_LIBRARY_PATH}
++ ;;
++ esac
++ fi
+ fi
+
+ # set java environment variables
+--- desktop/source/javaldx/makefile.mk.orig 2003-09-22 12:07:12.000000000 -0700
++++ desktop/source/javaldx/makefile.mk 2003-09-22 12:11:42.000000000 -0700
+@@ -77,6 +77,8 @@
+
+ # --- Files --------------------------------------------------------
+
++.IF "$(SOLAR_JAVA)"!=""
++
+ OBJFILES=$(OBJ)$/javaldx.obj
+
+ APP1TARGET=javaldx
+@@ -86,6 +88,8 @@
+ APP1STDLIBS+= -lstdc++
+ .ENDIF
+
++.ENDIF # "$(SOLAR_JAVA)"!=""
++
+ # --- Targets ------------------------------------------------------
+
+ .INCLUDE : target.mk
diff -Naur -x CVS ooo-build.orig/patches/OOO_1_1/javaunohelper-handle-no-solar-java.diff ooo-build/patches/OOO_1_1/javaunohelper-handle-no-solar-java.diff
--- ooo-build.orig/patches/OOO_1_1/javaunohelper-handle-no-solar-java.diff 1969-12-31 16:00:00.000000000 -0800
+++ ooo-build/patches/OOO_1_1/javaunohelper-handle-no-solar-java.diff 2003-09-27 10:50:31.000000000 -0700
@@ -0,0 +1,20 @@
+--- javaunohelper/source/makefile.mk.orig 2003-09-22 12:14:58.000000000 -0700
++++ javaunohelper/source/makefile.mk 2003-09-22 12:18:51.000000000 -0700
+@@ -76,6 +76,8 @@
+
+ # ------------------------------------------------------------------
+
++.IF "$(SOLAR_JAVA)"!=""
++
+ UNOUCRDEP=$(SOLARBINDIR)$/udkapi.rdb
+ UNOUCRRDB=$(SOLARBINDIR)$/udkapi.rdb
+
+@@ -153,6 +155,8 @@
+
+ DEF2NAME=$(SHL2TARGET)
+
++.ENDIF # "$(SOLAR_JAVA)"!=""
++
+ # --- Targets ------------------------------------------------------
+
+ .INCLUDE : target.mk
diff -Naur -x CVS ooo-build.orig/patches/OOO_1_1/jni-uno-handle-no-solar-java.diff ooo-build/patches/OOO_1_1/jni-uno-handle-no-solar-java.diff
--- ooo-build.orig/patches/OOO_1_1/jni-uno-handle-no-solar-java.diff 1969-12-31 16:00:00.000000000 -0800
+++ ooo-build/patches/OOO_1_1/jni-uno-handle-no-solar-java.diff 2003-09-27 10:50:31.000000000 -0700
@@ -0,0 +1,20 @@
+--- bridges/source/jni_uno/makefile.mk.orig 2003-09-22 12:34:56.000000000 -0700
++++ bridges/source/jni_uno/makefile.mk 2003-09-22 12:36:30.000000000 -0700
+@@ -72,6 +72,8 @@
+
+ # --- Files --------------------------------------------------------
+
++.IF "$(SOLAR_JAVA)"!=""
++
+ SLOFILES= \
+ $(SLO)$/jni_info.obj \
+ $(SLO)$/jni_data.obj \
+@@ -99,6 +101,8 @@
+ .ENDIF
+ .ENDIF
+
++.ENDIF # "$(SOLAR_JAVA)"!=""
++
+ # --- Targets ------------------------------------------------------
+
+ .INCLUDE : target.mk
diff -Naur -x CVS ooo-build.orig/patches/OOO_1_1/jurt-handle-no-solar-java.diff ooo-build/patches/OOO_1_1/jurt-handle-no-solar-java.diff
--- ooo-build.orig/patches/OOO_1_1/jurt-handle-no-solar-java.diff 1969-12-31 16:00:00.000000000 -0800
+++ ooo-build/patches/OOO_1_1/jurt-handle-no-solar-java.diff 2003-09-27 10:50:31.000000000 -0700
@@ -0,0 +1,20 @@
+--- jurt/source/pipe/makefile.mk.orig 2003-09-22 12:38:16.000000000 -0700
++++ jurt/source/pipe/makefile.mk 2003-09-22 12:39:08.000000000 -0700
+@@ -15,6 +15,8 @@
+
+ # --- Files --------------------------------------------------------
+
++.IF "$(SOLAR_JAVA)"!=""
++
+ SLOFILES = \
+ $(SLO)$/com_sun_star_lib_connections_pipe_PipeConnection.obj
+
+@@ -29,6 +31,8 @@
+
+ NO_SHL1DESCRIPTION=TRUE
+
++.ENDIF # "$(SOLAR_JAVA)"!=""
++
+ # --- Targets ------------------------------------------------------
+
+ .INCLUDE : target.mk
diff -Naur -x CVS ooo-build.orig/patches/OOO_1_1/jvmaccess-handle-no-solar-java.diff ooo-build/patches/OOO_1_1/jvmaccess-handle-no-solar-java.diff
--- ooo-build.orig/patches/OOO_1_1/jvmaccess-handle-no-solar-java.diff 1969-12-31 16:00:00.000000000 -0800
+++ ooo-build/patches/OOO_1_1/jvmaccess-handle-no-solar-java.diff 2003-09-27 10:50:31.000000000 -0700
@@ -0,0 +1,36 @@
+--- jvmaccess/source/makefile.mk.orig 2003-09-22 12:40:14.000000000 -0700
++++ jvmaccess/source/makefile.mk 2003-09-22 12:41:58.000000000 -0700
+@@ -67,6 +67,8 @@
+
+ .INCLUDE: settings.mk
+
++.IF "$(SOLAR_JAVA)"!=""
++
+ UNOTYPES= com.sun.star.uno.TypeClass com.sun.star.uno.XInterface
+
+ UNOUCRDEP = $(SOLARBINDIR)$/udkapi.rdb
+@@ -80,4 +82,6 @@
+ $(SLO)$/virtualmachine.obj \
+ $(SLO)$/windows.obj
+
++.ENDIF # "$(SOLAR_JAVA)"!=""
++
+ .INCLUDE: target.mk
+--- jvmaccess/util/makefile.mk.orig 2003-09-22 12:40:19.000000000 -0700
++++ jvmaccess/util/makefile.mk 2003-09-22 12:41:35.000000000 -0700
+@@ -71,6 +71,8 @@
+
+ .INCLUDE: settings.mk
+
++.IF "$(SOLAR_JAVA)"!=""
++
+ .IF "$(UNIXVERSIONNAMES)" == ""
+ SHL1TARGET = $(TARGET)$(UDK_MAJOR)$(COMID)
+ .ELSE # UNIXVERSIONNAMES
+@@ -96,4 +98,6 @@
+
+ DEF1NAME = $(SHL1TARGET)
+
++.ENDIF # "$(SOLAR_JAVA)"!=""
++
+ .INCLUDE: target.mk
diff -Naur -x CVS ooo-build.orig/patches/OOO_1_1/odk-handle-no-solar-java.diff ooo-build/patches/OOO_1_1/odk-handle-no-solar-java.diff
--- ooo-build.orig/patches/OOO_1_1/odk-handle-no-solar-java.diff 1969-12-31 16:00:00.000000000 -0800
+++ ooo-build/patches/OOO_1_1/odk-handle-no-solar-java.diff 2003-09-27 10:50:31.000000000 -0700
@@ -0,0 +1,81 @@
+--- odk/pack/gendocu/makefile.mk.orig 2003-09-22 11:08:18.000000000 -0700
++++ odk/pack/gendocu/makefile.mk 2003-09-22 12:45:10.000000000 -0700
+@@ -117,9 +117,13 @@
+
+ MY_AUTODOC=$(WRAPCMD) $(SOLARBINDIR)$/autodoc
+
++.IF "$(SOLAR_JAVA)"!=""
+ all: \
+ $(CPP_DOCU_INDEX_FILE) \
+ $(JAVA_DOCU_INDEX_FILE)
++.ELSE
++all: $(CPP_DOCU_INDEX_FILE)
++.ENDIF
+
+ $(CPP_DOCU_INDEX_FILE) : $(INCLUDELIST)
+ +-$(MKDIRHIER) $(@:d)
+@@ -140,6 +144,8 @@
+ # +$(MY_COPY) $< $@
+
+ #$(JAVA_DOCU_INDEX_FILE) : $(JAVA_SRC_FILES) $(JAVA_BEAN_SRC_FILES)
++.IF "$(SOLAR_JAVA)"!=""
+ $(JAVA_DOCU_INDEX_FILE) : $(JAVA_SRC_FILES)
+ +-$(MKDIRHIER) $(@:d)
+ +javadoc -J-Xmx120m $(JAVADOCPARAMS) > $(JAVADOCLOG)
++.ENDIF
+--- odk/source/OOSupport/makefile.mk.orig 2003-09-22 11:08:18.000000000 -0700
++++ odk/source/OOSupport/makefile.mk 2003-09-22 12:45:10.000000000 -0700
+@@ -60,6 +60,7 @@
+ #
+ #*************************************************************************
+
++.IF "$(SOLAR_JAVA)"!=""
+ PRJ = ..$/..
+ PRJNAME = oosupport
+ PACKAGE = org$/netbeans$/modules$/openoffice
+@@ -348,3 +349,7 @@
+ +cd $(CLASSDIR) && jar -uvf $(TARGETNETBEANSMODULEFILE) netbeans
+
+ .ENDIF
++.ELSE
++dummy:
++ @echo "Not building odk/source/OOSupport with SOLAR_JAVA not set"
++.ENDIF
+--- odk/source/bean/native/unix/makefile.mk.orig 2003-09-22 11:08:18.000000000 -0700
++++ odk/source/bean/native/unix/makefile.mk 2003-09-22 12:46:41.000000000 -0700
+@@ -12,6 +12,8 @@
+
+ # --- Files --------------------------------------------------------
+
++.IF "$(SOLAR_JAVA)"!=""
++
+ .IF "$(OS)"=="MACOSX"
+
+ dummy:
+@@ -38,6 +40,8 @@
+
+ .ENDIF
+
++.ENDIF # "$(SOLAR_JAVA)"!=""
++
+ # --- Targets ------------------------------------------------------
+
+ .INCLUDE : target.mk
+--- odk/util/check.pl.orig 2003-09-22 11:08:18.000000000 -0700
++++ odk/util/check.pl 2003-09-22 12:45:10.000000000 -0700
+@@ -214,6 +214,7 @@
+
+ #check java docu, it is only a first and simple check
+ # improvement required
++if ($ENV["SOLAR_JAVA"] ne "") {
+ print "check java docu: ";
+ if (-d "$StartDir/docs/java/ref") {
+ if (! -e "$StartDir/docs/java/ref/index.html") {
+@@ -246,6 +247,7 @@
+ $return++;
+ }
+ print "\n";
++}
+
+ #check examples, it is only a first and simple check
+ # improvement required
diff -Naur -x CVS ooo-build.orig/patches/OOO_1_1/officecfg-xsltproc.diff ooo-build/patches/OOO_1_1/officecfg-xsltproc.diff
--- ooo-build.orig/patches/OOO_1_1/officecfg-xsltproc.diff 1969-12-31 16:00:00.000000000 -0800
+++ ooo-build/patches/OOO_1_1/officecfg-xsltproc.diff 2003-09-27 10:50:31.000000000 -0700
@@ -0,0 +1,96 @@
+--- officecfg/util/makefile.pmk.orig 2003-09-23 10:17:12.000000000 -0700
++++ officecfg/util/makefile.pmk 2003-09-23 10:23:40.000000000 -0700
+@@ -67,34 +67,93 @@
+ $(MISC)$/registry$/schema$/%.xcs : %.xcs
+ @+echo -------------+ validating and stripping schema files
+ -$(MKDIR) -p $(@:d)
++.IF "$(SOLAR_JAVA)"!=""
+ $(JAVA) -classpath $(SOLARBINDIR)$/jaxp.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/parser.jar$(PATH_SEPERATOR)$(CLASSDIR)$/cfgimport.jar -Djavax.xml.parsers.SAXParserFactory=com.sun.xml.parser.SAXParserFactoryImpl org.openoffice.configuration.Inspector $<
+ $(JAVA) -classpath $(SOLARBINDIR)$/xt.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/parser.jar -Dcom.jclark.xsl.sax.parser=com.sun.xml.parser.Parser com.jclark.xsl.sax.Driver $< $(PRJ)$/util$/schema_val.xsl $(@:d)$(<:b).val file=$(<:d)$(<:b) pathSeparator=$/
+ $(JAVA) -classpath $(SOLARBINDIR)$/xt.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/parser.jar -Dcom.jclark.xsl.sax.parser=com.sun.xml.parser.Parser com.jclark.xsl.sax.Driver $< $(PRJ)$/util$/sanity.xsl $(@:d)$(<:b).san file=$(<:d)$(<:b) pathSeparator=$/
+ $(JAVA) -classpath $(SOLARBINDIR)$/xt.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/parser.jar -Dcom.jclark.xsl.sax.parser=com.sun.xml.parser.Parser com.jclark.xsl.sax.Driver $< $(PRJ)$/util$/schema_trim.xsl $(@:d)$(<:b).tmp
+ $(JAVA) -classpath $(SOLARBINDIR)$/jaxp.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/parser.jar$(PATH_SEPERATOR)$(CLASSDIR)$/schema.jar -Djavax.xml.parsers.SAXParserFactory=com.sun.xml.parser.SAXParserFactoryImpl org.openoffice.helper.PrettyPrinter $(@:d)$(<:b).tmp $(@:d)$(<:b).xcs
++.ELSE
++# xsltproc already validates against the dtd. For additional validation,
++# org.openoffice.configuration.Inspector should be replaced and the
++# replacement should be invoked here.
++ $(XSLTPROC) -o $(@:d)$(<:b).val \
++ --stringparam file $(<:d)$(<:b) \
++ --stringparam pathSeparator $/ \
++ $(PRJ)$/util$/schema_val.xsl $<
++ $(XSLTPROC) -o $(@:d)$(<:b).san \
++ --stringparam file $(<:d)$(<:b) \
++ --stringparam pathSeparator $/ \
++ $(PRJ)$/util$/sanity.xsl $<
++ $(XSLTPROC) -o $(@:d)$(<:b).tmp \
++ $(PRJ)$/util$/schema_trim.xsl $<
++# xsltproc already seems to pretty-print the xml, so
++# org.openoffice.helper.PrettyPrinter seems to be unnecessary.
++ cp $(@:d)$(<:b).tmp $(@:d)$(<:b).xcs
++.ENDIF
+ +$(RM) $(@:d)$(<:b).tmp > $(NULLDEV)
+ +$(RM) $(@:d)$(<:b).val > $(NULLDEV)
+
+ $(MISC)$/registry$/res$/{$(alliso)}$/%.properties :| %.xcs
+ @+echo -------------+ creating locale dependent resource bundles
+ -$(MKDIR) -p $(@:d)
++.IF "$(SOLAR_JAVA)"!=""
+ $(JAVA) -classpath $(SOLARBINDIR)$/xt.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/parser.jar -Dcom.jclark.xsl.sax.parser=com.sun.xml.parser.Parser com.jclark.xsl.sax.Driver $< $(PRJ)$/util$/resource.xsl $(@:d)$(<:b).properties locale={$(subst,$/$<, $(subst,$(MISC)$/registry$/res$/, $(subst,.properties,.xcs $@)))}
++.ELSE
++ $(XSLTPROC) -o $(@:d)$(<:b).properties \
++ --stringparam locale {$(subst,$/$<, $(subst,$(MISC)$/registry$/res$/, $(subst,.properties,.xcs $@)))} \
++ $(PRJ)$/util$/resource.xsl $<
++.ENDIF
+
+ # --- XCU ---
+
+ $(MISC)$/registry$/data$/%.xcu : %.xcu
+ @+echo -------------+ validating and creating a locale independent file
+ -$(MKDIR) -p $(@:d)
++.IF "$(SOLAR_JAVA)"!=""
+ $(JAVA) -classpath $(SOLARBINDIR)$/jaxp.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/parser.jar$(PATH_SEPERATOR)$(CLASSDIR)$/cfgimport.jar -Djavax.xml.parsers.SAXParserFactory=com.sun.xml.parser.SAXParserFactoryImpl org.openoffice.configuration.Inspector $<
+ $(JAVA) -classpath $(SOLARBINDIR)$/xt.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/parser.jar$(PATH_SEPERATOR)$(CLASSDIR)$/cfgimport.jar -Dcom.jclark.xsl.sax.parser=com.sun.xml.parser.Parser com.jclark.xsl.sax.Driver $< $(PRJ)$/util$/data_val.xsl $(@:d)$(<:b).val xcs=$(PRJ)$/registry$/schema$/$(<:d)$(<:b).xcs schemaRoot=$(PRJ)$/registry$/schema
+ $(JAVA) -classpath $(SOLARBINDIR)$/xt.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/parser.jar$(PATH_SEPERATOR)$(CLASSDIR)$/cfgimport.jar -Dcom.jclark.xsl.sax.parser=com.sun.xml.parser.Parser com.jclark.xsl.sax.Driver $< $(PRJ)$/util$/alllang.xsl $(@:d)$(<:b).tmp xcs=$(PRJ)$/registry$/schema$/$(<:d)$(<:b).xcs schemaRoot=$(PRJ)$/registry$/schema
+ $(JAVA) -classpath $(SOLARBINDIR)$/jaxp.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/parser.jar$(PATH_SEPERATOR)$(CLASSDIR)$/schema.jar -Djavax.xml.parsers.SAXParserFactory=com.sun.xml.parser.SAXParserFactoryImpl org.openoffice.helper.PrettyPrinter $(@:d)$(<:b).tmp $(@:d)$(<:b).xcu
++.ELSE
++# xsltproc already validates against the dtd. For additional validation,
++# org.openoffice.configuration.Inspector should be replaced and the
++# replacement should be invoked here.
++ $(SED) 's|xmlns:filehelper="http://www.jclark.com/xt/java/org.openoffice.configuration.FileHelper"||;s|extension-element-prefixes="filehelper"||;s|filehelper:makeAbs(\(.*\))|\1|' < $(PRJ)$/util$/data_val.xsl > $(PRJ)$/util$/dataval2.xsl
++ $(SED) 's|xmlns:filehelper="http://www.jclark.com/xt/java/org.openoffice.configuration.FileHelper"||;s|extension-element-prefixes="filehelper"||;s|filehelper:makeAbs(\(.*\))|\1|' < $(PRJ)$/util$/alllang.xsl > $(PRJ)$/util$/alllang2.xsl
++ $(XSLTPROC) -o $(@:d)$(<:b).val \
++ --stringparam xcs $(PWD)$/$(PRJ)$/registry$/schema$/$(<:d)$(<:b).xcs \
++ --stringparam schemaRoot $(PWD)$/$(PRJ)$/registry$/schema \
++ $(PRJ)$/util$/dataval2.xsl $<
++ $(XSLTPROC) -o $(@:d)$(<:b).tmp \
++ --stringparam xcs $(PWD)$/$(PRJ)$/registry$/schema$/$(<:d)$(<:b).xcs \
++ --stringparam schemaRoot $(PWD)$/$(PRJ)$/registry$/schema \
++ $(PRJ)$/util$/alllang2.xsl $<
++# xsltproc already seems to pretty-print the xml, so
++# org.openoffice.helper.PrettyPrinter seems to be unnecessary.
++ cp $(@:d)$(<:b).tmp $(@:d)$(<:b).xcu
++ +$(RM) $(PRJ)$/util$/dataval2.xsl > $(NULLDEV)
++ +$(RM) $(PRJ)$/util$/alllang2.xsl > $(NULLDEV)
++.ENDIF
+ +$(RM) $(@:d)$(<:b).tmp > $(NULLDEV)
+ +$(RM) $(@:d)$(<:b).val > $(NULLDEV)
+
+ $(MISC)$/registry$/res$/{$(alliso)}$/%.xcu :| %.xcu
+ @+echo -------------+ creating locale dependent entries
+ -$(MKDIR) -p $(@:d)
++.IF "$(SOLAR_JAVA)"!=""
+ $(JAVA) -classpath $(SOLARBINDIR)$/xt.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/parser.jar$(PATH_SEPERATOR)$(CLASSDIR)$/cfgimport.jar -Dcom.jclark.xsl.sax.parser=com.sun.xml.parser.Parser com.jclark.xsl.sax.Driver $< $(PRJ)$/util$/alllang.xsl $(@:d)$(<:b).tmp xcs=$(PRJ)$/registry$/schema$/$(<:d)$(<:b).xcs schemaRoot=$(PRJ)$/registry$/schema locale={$(subst,$/$<, $(subst,$(MISC)$/registry$/res$/, $@))}
+ $(JAVA) -classpath $(SOLARBINDIR)$/jaxp.jar$(PATH_SEPERATOR)$(SOLARBINDIR)$/parser.jar$(PATH_SEPERATOR)$(CLASSDIR)$/schema.jar -Djavax.xml.parsers.SAXParserFactory=com.sun.xml.parser.SAXParserFactoryImpl org.openoffice.helper.PrettyPrinter $(@:d)$(<:b).tmp $(@:d)$(<:b).xcu
++.ELSE
++ $(SED) 's|xmlns:filehelper="http://www.jclark.com/xt/java/org.openoffice.configuration.FileHelper"||;s|extension-element-prefixes="filehelper"||;s|filehelper:makeAbs(\(.*\))|\1|' < $(PRJ)$/util$/alllang.xsl > $(PRJ)$/util$/alllang2.xsl
++ $(XSLTPROC) -o $(@:d)$(<:b).tmp \
++ --stringparam xcs $(PWD)$/$(PRJ)$/registry$/schema$/$(<:d)$(<:b).xcs \
++ --stringparam schemaRoot $(PWD)$/$(PRJ)$/registry$/schema \
++ --stringparam locale {$(subst,$/$<, $(subst,$(MISC)$/registry$/res$/, $@))} \
++ $(PRJ)$/util$/alllang2.xsl $<
++# xsltproc already seems to pretty-print the xml, so
++# org.openoffice.helper.PrettyPrinter seems to be unnecessary.
++ cp $(@:d)$(<:b).tmp $(@:d)$(<:b).xcu
++ +$(RM) $(PRJ)$/util$/alllang2.xsl > $(NULLDEV)
++.ENDIF
+ +$(RM) $(@:d)$(<:b).tmp > $(NULLDEV)
diff -Naur -x CVS ooo-build.orig/patches/OOO_1_1/psprint-handle-no-solar-java.diff ooo-build/patches/OOO_1_1/psprint-handle-no-solar-java.diff
--- ooo-build.orig/patches/OOO_1_1/psprint-handle-no-solar-java.diff 1969-12-31 16:00:00.000000000 -0800
+++ ooo-build/patches/OOO_1_1/psprint-handle-no-solar-java.diff 2003-09-27 11:35:15.000000000 -0700
@@ -0,0 +1,43 @@
+--- psprint/source/helper/helper.cxx.orig 2003-08-08 08:41:05.000000000 -0700
++++ psprint/source/helper/helper.cxx 2003-08-08 08:43:33.000000000 -0700
+@@ -72,7 +72,9 @@
+ #include <tools/config.hxx>
+ #include <rtl/bootstrap.hxx>
+ #include <sal/config.h>
++#ifdef SOLAR_JAVA
+ #include "jvmaccess/javainfo.hxx"
++#endif // SOLAR_JAVA
+
+ using namespace rtl;
+
+@@ -263,6 +265,7 @@
+ }
+ }
+
++#ifdef SOLAR_JAVA
+ // if no javarc (e.g. in setup) exists or it failed try the UDK method
+ if( ! aJREpath.getLength() )
+ {
+@@ -299,6 +302,7 @@
+ }
+ }
+ }
++#endif // SOLAR_JAVA
+
+ if( aJREpath.getLength() )
+ {
+--- psprint/util/makefile.mk.orig 2003-08-08 08:43:55.000000000 -0700
++++ psprint/util/makefile.mk 2003-08-08 08:44:52.000000000 -0700
+@@ -95,9 +95,11 @@
+
+ SHL1STDLIBS=$(UNOTOOLSLIB) \
+ $(TOOLSLIB) \
+- $(JVMACCESSLIB) \
+ $(SALLIB) \
+ -lX11 `pkg-config --libs fontconfig`
++.IF "$(SOLAR_JAVA)"!=""
++SHL1STDLIBS+=$(JVMACCESSLIB)
++.ENDIF
+
+ SHL1DEF= $(MISC)$/$(SHL1TARGET).def
+
diff -Naur -x CVS ooo-build.orig/patches/OOO_1_1/readlicense-oo-xsltproc.diff ooo-build/patches/OOO_1_1/readlicense-oo-xsltproc.diff
--- ooo-build.orig/patches/OOO_1_1/readlicense-oo-xsltproc.diff 1969-12-31 16:00:00.000000000 -0800
+++ ooo-build/patches/OOO_1_1/readlicense-oo-xsltproc.diff 2003-09-27 10:50:31.000000000 -0700
@@ -0,0 +1,39 @@
+--- readlicense_oo/util/makefile.pmk.orig 2003-09-22 11:36:10.000000000 -0700
++++ readlicense_oo/util/makefile.pmk 2003-09-22 11:37:57.000000000 -0700
+@@ -73,7 +73,36 @@
+
+ $(MISC)$/%.html :
+ @+-$(MKDIR) $(@:d)
++.IF "$(SOLAR_JAVA)"!=""
+ $(JAVA) -classpath $(COMMON_BUILD_TOOLS)$/xt.jar$(PATH_SEPERATOR)$(COMMON_BUILD_TOOLS)$/parser.jar -Dcom.jclark.xsl.sax.parser=com.sun.xml.parser.Parser com.jclark.xsl.sax.Driver $(subst,$(@::d:d:b), $(@:b).xrm) ..$/readme.xsl os1=$(OS) gui1=$(GUI) cp1=$(CPUNAME) com1=$(COM) lang1=$(iso_$(@:d:d:b)) type=html file=$@
++.ELSE
++ $(SED) 's|xmlns:xt="http://www.jclark.com/xt"||;s|extension-element-prefixes="xt"||;s|.*xt:document.*||;s|<xsl:output method = "HTML" doctype-public = "-//W3C//DTD HTML 3.2//EN" />|<xsl:output method="html" doctype-public="-//W3C//DTD HTML 3.2//EN" />|' < ..$/readme.xsl > ..$/readme2.xsl
++ $(XSLTPROC) -o $@ \
++ --stringparam os1 $(OS) \
++ --stringparam gui1 $(GUI) \
++ --stringparam cp1 $(CPUNAME) \
++ --stringparam com1 $(COM) \
++ --stringparam lang1 $(iso_$(@:d:d:b)) \
++ --stringparam type html \
++ ..$/readme2.xsl \
++ $(subst,$(@::d:d:b), $(@:b).xrm)
++ rm ..$/readme2.xsl
++.ENDIF
++
+ $(MISC)$/%.txt :
+ @+-$(MKDIR) $(@:d)
++.IF "$(SOLAR_JAVA)"!=""
+ $(JAVA) -classpath $(COMMON_BUILD_TOOLS)$/xt.jar$(PATH_SEPERATOR)$(COMMON_BUILD_TOOLS)$/parser.jar -Dcom.jclark.xsl.sax.parser=com.sun.xml.parser.Parser com.jclark.xsl.sax.Driver $(subst,$(@::d:d:b), $(@:b).xrm) ..$/readme.xsl os1=$(OS) gui1=$(GUI) cp1=$(CPUNAME) com1=$(COM) lang1=$(iso_$(@:d:d:b)) type=text file=$@
++.ELSE
++ $(SED) 's|xmlns:xt="http://www.jclark.com/xt"||;s|extension-element-prefixes="xt"||;s|.*xt:document.*||;s|<xsl:output method = "HTML" doctype-public = "-//W3C//DTD HTML 3.2//EN" />|<xsl:output method="text" />|' < ..$/readme.xsl > ..$/readme2.xsl
++ $(XSLTPROC) -o $@ \
++ --stringparam os1 $(OS) \
++ --stringparam gui1 $(GUI) \
++ --stringparam cp1 $(CPUNAME) \
++ --stringparam com1 $(COM) \
++ --stringparam lang1 $(iso_$(@:d:d:b)) \
++ --stringparam type text \
++ ..$/readme2.xsl \
++ $(subst,$(@::d:d:b), $(@:b).xrm)
++ rm ..$/readme2.xsl
++.ENDIF
diff -Naur -x CVS ooo-build.orig/patches/OOO_1_1/ridljar-handle-no-solar-java.diff ooo-build/patches/OOO_1_1/ridljar-handle-no-solar-java.diff
--- ooo-build.orig/patches/OOO_1_1/ridljar-handle-no-solar-java.diff 1969-12-31 16:00:00.000000000 -0800
+++ ooo-build/patches/OOO_1_1/ridljar-handle-no-solar-java.diff 2003-09-27 10:50:31.000000000 -0700
@@ -0,0 +1,15 @@
+--- ridljar/util/makefile.mk.orig 2003-08-10 13:12:20.000000000 -0700
++++ ridljar/util/makefile.mk 2003-08-10 13:12:36.000000000 -0700
+@@ -84,10 +84,12 @@
+ ZIP1DIR=$(PRJ)
+ ZIP1LIST=com -x "*makefile.mk"
+
++.IF "$(SOLAR_JAVA)"!=""
+ ZIP2TARGET=$(TARGET)2_src
+ ZIP2FLAGS=-u -r
+ ZIP2DIR=$(MISC)$/java
+ ZIP2LIST=com
++.ENDIF
+
+ # --- Targets ------------------------------------------------------
+
diff -Naur -x CVS ooo-build.orig/patches/OOO_1_1/scp-handle-no-solar-java.diff ooo-build/patches/OOO_1_1/scp-handle-no-solar-java.diff
--- ooo-build.orig/patches/OOO_1_1/scp-handle-no-solar-java.diff 1969-12-31 16:00:00.000000000 -0800
+++ ooo-build/patches/OOO_1_1/scp-handle-no-solar-java.diff 2003-09-27 10:50:31.000000000 -0700
@@ -0,0 +1,146 @@
+--- scp/source/global/udk_base.scp.orig 2003-08-11 11:22:39.000000000 -0700
++++ scp/source/global/udk_base.scp 2003-08-11 11:38:05.000000000 -0700
+@@ -342,6 +342,7 @@
+ #endif
+ End
+
++#ifdef SOLAR_JAVA
+ File gid_File_Lib_Jvmaccess
+ TXT_FILE_BODY;
+ Dir = GCFG_BINARY_DIR;
+@@ -368,3 +369,4 @@
+ Styles = (NETWORK,RELATIVE);
+ End
+ #endif
++#endif
+--- scp/source/global/setupzip.scp.orig 2003-08-11 11:23:38.000000000 -0700
++++ scp/source/global/setupzip.scp 2003-08-11 11:28:02.000000000 -0700
+@@ -393,8 +393,6 @@
+
+ #if !defined(IPL_PRODUCT) && !defined(OPL_PRODUCT) || defined(UNX)
+
+-#ifdef SOLAR_JAVA
+-
+ File GID_FILE_LIB_J
+ TXT_FILE_BODY;
+ #ifdef UNX
+@@ -408,8 +406,6 @@
+
+ #endif
+
+-#endif
+-
+ File GID_FILE_LIB_COMPHELPER2
+ TXT_FILE_BODY;
+ #ifdef UNX
+@@ -527,12 +523,14 @@
+
+ #endif
+
++#ifdef SOLAR_JAVA
+ File GID_FILE_JAR_UNOIL
+ TXT_FILE_BODY;
+ Name = "unoil.jar";
+ Dir = GCFG_CLASSES_DIR;
+ Styles = (PACKED,DONT_OVERWRITE,SETUPZIP);
+ End
++#endif
+
+ #ifdef INCLUDE_JAVA_ACCESSBRIDGE
+
+@@ -546,14 +544,14 @@
+ #endif
+
+ #ifdef UNX
+-
++#ifdef SOLAR_JAVA
+ File GID_FILE_BIN_JAVALDX
+ BIN_FILE_BODY;
+ Dir = GCFG_BINARY_DIR;
+ Styles = (PACKED, SETUPZIP);
+ Name = EXENAME(javaldx);
+ End
+-
++#endif
+ #endif
+
+ #ifdef UNX
+--- scp/source/global/udk_complete.scp.orig 2003-08-11 11:28:16.000000000 -0700
++++ scp/source/global/udk_complete.scp 2003-08-11 11:29:30.000000000 -0700
+@@ -75,6 +75,7 @@
+ #endif
+ End
+
++#ifdef SOLAR_JAVA
+ #ifndef MACOSX
+ File gid_File_Lib_OfficeBean
+ TXT_FILE_BODY;
+@@ -94,6 +95,8 @@
+ Styles = (PACKED);
+ End
+ #endif
++#endif
++
+ /*
+ File gid_File_Lib_Stm
+ TXT_FILE_BODY;
+--- scp/source/office/files.scp.orig 2003-08-11 11:29:45.000000000 -0700
++++ scp/source/office/files.scp 2003-08-11 11:30:15.000000000 -0700
+@@ -715,6 +715,7 @@
+
+ #endif
+
++#ifdef SOLAR_JAVA
+ File GID_FILE_LIB_JDBC_2
+ TXT_FILE_BODY;
+ Styles = (PACKED,UNO_COMPONENT);
+@@ -726,6 +727,7 @@
+ Name = "jdbc2.dll";
+ #endif
+ End
++#endif
+
+ File GID_FILE_LIB_ODBC_2
+ TXT_FILE_BODY;
+--- scp/util/makefile.mk.orig 2003-08-11 11:30:57.000000000 -0700
++++ scp/util/makefile.mk 2003-08-11 11:34:00.000000000 -0700
+@@ -88,7 +88,6 @@
+ module_math.par \
+ module_grafik.par \
+ module_lingu.par \
+- module_javafilter.par \
+ profile.par \
+ profile_calc.par \
+ profile_impress.par \
+@@ -96,13 +95,10 @@
+ profile_math.par \
+ profile_chart.par \
+ profile_grafik.par \
+- profile_javafilter.par \
+ setupzip.par \
+ readme.par \
+ udk_base.par \
+ udk_bridges.par \
+- udk_java.par \
+- udk_pure_java.par \
+ udk_remote.par \
+ udk_complete.par \
+ files.par \
+@@ -113,10 +109,15 @@
+ files_chart.par \
+ files_grafik.par \
+ files_lingu.par \
+- files_javafilter.par \
+ dir.par \
+ python.par
+-
++.IF "$(SOLAR_JAVA)"!=""
++SCP1FILES += module_javafilter.par \
++ profile_javafilter.par \
++ files_javafilter.par \
++ udk_java.par \
++ udk_pure_java.par
++.ENDIF
+
+ #python.par
+
diff -Naur -x CVS ooo-build.orig/patches/OOO_1_1/setup2-handle-no-solar-java.diff ooo-build/patches/OOO_1_1/setup2-handle-no-solar-java.diff
--- ooo-build.orig/patches/OOO_1_1/setup2-handle-no-solar-java.diff 1969-12-31 16:00:00.000000000 -0800
+++ ooo-build/patches/OOO_1_1/setup2-handle-no-solar-java.diff 2003-09-27 10:50:31.000000000 -0700
@@ -0,0 +1,91 @@
+--- setup2/source/custom/jvmsetup/loader/makefile.mk.orig 2003-09-22 11:08:19.000000000 -0700
++++ setup2/source/custom/jvmsetup/loader/makefile.mk 2003-09-22 13:28:10.000000000 -0700
+@@ -72,6 +72,9 @@
+ .INCLUDE : sv.mk
+
+ # --- Files --------------------------------------------------------
++
++.IF "$(SOLAR_JAVA)"!=""
++
+ CXXFILES= jvmapp.cxx
+
+ OBJFILES= $(OBJ)$/jvmapp.obj
+@@ -128,6 +131,8 @@
+ UNIXTEXT= \
+ $(MISC)$/jvmsetup.sh
+
++.ENDIF "$(SOLAR_JAVA)"!=""
++
+ .INCLUDE : target.mk
+
+ # ------------------------------------------------------------------
+--- setup2/source/custom/jvmsetup/makefile.mk.orig 2003-09-22 11:08:19.000000000 -0700
++++ setup2/source/custom/jvmsetup/makefile.mk 2003-09-22 13:31:00.000000000 -0700
+@@ -73,6 +73,8 @@
+
+ # --- Files --------------------------------------------------------
+
++.IF "$(SOLAR_JAVA)"!=""
++
+ .DIRCACHE=NO
+
+ SRCFILES = jvmdlg.src
+@@ -113,6 +115,8 @@
+
+ RC_SUBDIRSDEPS=$(SLB)$/jvm.lib
+
++.ENDIF # "$(SOLAR_JAVA)"!=""
++
+ # --- Targets --------------------------------------------------------------
+
+ .INCLUDE : target.mk
+--- setup2/source/ui/main.cxx.orig 2003-09-22 11:08:19.000000000 -0700
++++ setup2/source/ui/main.cxx 2003-09-22 13:27:05.000000000 -0700
+@@ -78,7 +78,9 @@
+ #include <sal/main.h>
+ #endif
+
++#ifdef SOLAR_JAVA
+ #include "jvmaccess/javainfo.hxx"
++#endif
+
+ #ifndef _SV_HELP_HXX //autogen
+ #include <vcl/help.hxx>
+@@ -2523,6 +2525,7 @@
+ static sal_Bool hasJavarc();
+ void prepareJava(const char * szStartPath)
+ {
++#ifdef SOLAR_JAVA
+ if(szStartPath)
+ {
+ //check if we are started from an installation. This is done by looking for the classes
+@@ -2656,6 +2659,7 @@
+ #endif
+ }
+ }
++#endif // SOLAR_JAVA
+ }
+
+ static sal_Bool hasJavarc()
+--- setup2/util/makefile.mk.orig 2003-09-22 11:08:19.000000000 -0700
++++ setup2/util/makefile.mk 2003-09-22 13:27:05.000000000 -0700
+@@ -186,7 +186,6 @@
+ $(SVTOOLLIB) \
+ $(VCLLIB) \
+ $(TOOLSLIB) \
+- $(JVMACCESSLIB) \
+ $(COMPHELPERLIB) \
+ $(CPPUHELPERLIB) \
+ $(CPPULIB) \
+@@ -195,7 +194,10 @@
+ $(SALHELPERLIB) \
+ $(UNOTOOLSLIB) \
+ $(SALLIB)
+-
++.IF "$(SOLAR_JAVA)"!=""
++APP2STDLIBS+=\
++ $(JVMACCESSLIB)
++.ENDIF
+
+ .IF "$(GUI)"=="WNT"
+ APP2STDLIBS += uwinapi.lib advapi32.lib gdi32.lib shell32.lib ole32.lib uuid.lib version.lib \
diff -Naur -x CVS ooo-build.orig/patches/OOO_1_1/sj2-handle-no-solar-java.diff ooo-build/patches/OOO_1_1/sj2-handle-no-solar-java.diff
--- ooo-build.orig/patches/OOO_1_1/sj2-handle-no-solar-java.diff 1969-12-31 16:00:00.000000000 -0800
+++ ooo-build/patches/OOO_1_1/sj2-handle-no-solar-java.diff 2003-09-27 10:50:31.000000000 -0700
@@ -0,0 +1,274 @@
+--- sj2/source/java/jnihelp.cxx.orig 2003-08-08 20:54:39.000000000 -0700
++++ sj2/source/java/jnihelp.cxx 2003-08-08 20:55:41.000000000 -0700
+@@ -59,6 +59,7 @@
+ *
+ ************************************************************************/
+
++#ifdef SOLAR_JAVA
+ #include <cstdarg>
+ #include <tools/debug.hxx>
+ #include <jni.h> /* where everything is defined */
+@@ -99,3 +100,5 @@
+ _xJavaThreadRegister_11->revokeThread();
+ }
+ }
++
++#endif // SOLAR_JAVA
+--- sj2/source/jscpp/sjapplet.cxx.orig 2003-08-08 20:58:19.000000000 -0700
++++ sj2/source/jscpp/sjapplet.cxx 2003-08-08 21:01:41.000000000 -0700
+@@ -60,7 +60,9 @@
+ ************************************************************************/
+
+ #include <cstdarg>
++#ifdef SOLAR_JAVA
+ #include <jnihelp.hxx>
++#endif // SOLAR_JAVA
+
+ #include <sjapplet.hxx>
+
+@@ -79,11 +81,15 @@
+
+ using namespace ::rtl;
+ using namespace ::utl;
++#ifdef SOLAR_JAVA
+ using namespace ::sj2;
++#endif // SOLAR_JAVA
+
+ using namespace ::com::sun::star::lang;
+ using namespace ::com::sun::star::uno;
++#ifdef SOLAR_JAVA
+ using namespace ::com::sun::star::java;
++#endif // SOLAR_JAVA
+
+ SjApplet2::SjApplet2()
+ : _pImpl(new SjApplet2_Impl())
+@@ -346,7 +352,7 @@
+ /*
+ * Java init function to invoke Java runtime using JNI invocation API.
+ */
+-
++#ifdef SOLAR_JAVA
+ void JRE_PropertyChanged( JNIEnv * env, const SvCommandList & rCmdList )
+ {
+ jclass pClass = env->FindClass("java/util/Properties");
+@@ -389,6 +395,7 @@
+ env->DeleteLocalRef( pProps );
+ env->DeleteLocalRef( pClass );
+ }
++#endif // SOLAR_JAVA
+
+ // Settings are detected by the JavaVM service
+ // This function is not necessary anymore
+--- sj2/source/jscpp/sjapplet_impl.cxx.orig 2003-08-08 21:06:04.000000000 -0700
++++ sj2/source/jscpp/sjapplet_impl.cxx 2003-08-08 21:24:29.000000000 -0700
+@@ -78,18 +78,24 @@
+ #include <vcl/syschild.hxx>
+ #include <vcl/sysdata.hxx>
+
++#ifdef SOLAR_JAVA
+ #include <jnihelp.hxx>
++#endif // SOLAR_JAVA
+
+ using namespace ::rtl;
+ using namespace ::osl;
++#ifdef SOLAR_JAVA
+ using namespace ::sj2;
++#endif // SOLAR_JAVA
+ using namespace ::utl;
+
++#ifdef SOLAR_JAVA
+ using namespace ::com::sun::star::java;
++#endif // SOLAR_JAVA
+ using namespace ::com::sun::star::lang;
+ using namespace ::com::sun::star::uno;
+
+-
++#ifdef SOLAR_JAVA
+ static void testJavaException(JNIEnv * pEnv) throw(com::sun::star::uno::RuntimeException)
+ {
+ jthrowable jtThrowable = pEnv->ExceptionOccurred();
+@@ -114,7 +120,14 @@
+ throw RuntimeException(ouMessage, Reference<XInterface>());
+ }
+ }
++#else // !SOLAR_JAVA
++static void throwException() throw(com::sun::star::uno::RuntimeException)
++{
++ throw RuntimeException(OUString(RTL_CONSTASCII_USTRINGPARAM("Java applets not supported.")), Reference<XInterface>());
++}
++#endif
+
++#ifdef SOLAR_JAVA
+ #ifdef UNX
+ struct EmbeddedWindow {
+ jobject _joWindow;
+@@ -210,17 +223,22 @@
+
+ _joWindow = 0;
+ }
++#endif // SOLAR_JAVA
+
+-
+-
++#ifdef SOLAR_JAVA
+ SjApplet2_Impl::SjApplet2_Impl() throw(com::sun::star::uno::RuntimeException)
+ : _pJVM(NULL),
+ _joAppletExecutionContext(0),
+ _jcAppletExecutionContext(0)
+
+ {}
++#else // !SOLAR_JAVA
++SjApplet2_Impl::SjApplet2_Impl() throw(com::sun::star::uno::RuntimeException)
++{}
++#endif
+
+ SjApplet2_Impl::~SjApplet2_Impl() throw() {
++#ifdef SOLAR_JAVA
+ if (_joAppletExecutionContext) {
+ TKTThreadAttach jenv(_pJVM, _xJavaThreadRegister_11.get());
+
+@@ -230,6 +248,7 @@
+ jenv.pEnv->DeleteGlobalRef(_joAppletExecutionContext);
+ jenv.pEnv->DeleteGlobalRef(_jcAppletExecutionContext);
+ }
++#endif
+ }
+
+ void SjApplet2_Impl::init(Window * pParentWin,
+@@ -238,6 +257,7 @@
+ const SvCommandList & rCmdList)
+ throw(com::sun::star::uno::RuntimeException)
+ {
++#ifdef SOLAR_JAVA
+ _pParentWin = pParentWin;
+
+
+@@ -338,11 +358,14 @@
+ joDocBase, joParameters, _pEmbeddedWindow->_joWindow, (jlong)0); testJavaException(jenv.pEnv);
+ jenv.pEnv->CallVoidMethod(_joAppletExecutionContext, jmAppletExecutionContext_init); testJavaException(jenv.pEnv);
+ jenv.pEnv->CallVoidMethod(_joAppletExecutionContext, jmAppletExecutionContext_startUp); testJavaException(jenv.pEnv);
+-
++#else // !SOLAR_JAVA
++ throwException();
++#endif
+ }
+
+ void SjApplet2_Impl::setSize(const Size & rSize) throw(com::sun::star::uno::RuntimeException)
+ {
++#ifdef SOLAR_JAVA
+ TKTThreadAttach jenv(_pJVM, _xJavaThreadRegister_11.get());
+
+ _pParentWin->SetSizePixel(rSize);
+@@ -350,42 +373,62 @@
+ jmethodID jmAppletExecutionContext_resize = jenv.pEnv->GetMethodID(_jcAppletExecutionContext, "appletResize", "(II)V"); testJavaException(jenv.pEnv);
+ jenv.pEnv->CallVoidMethod(_joAppletExecutionContext, jmAppletExecutionContext_resize, (jint)rSize.Width(),
+ (jint)rSize.Height()); testJavaException(jenv.pEnv);
++#else // !SOLAR_JAVA
++ throwException();
++#endif
+ }
+
+ void SjApplet2_Impl::restart() throw(com::sun::star::uno::RuntimeException)
+ {
++#ifdef SOLAR_JAVA
+ TKTThreadAttach jenv(_pJVM, _xJavaThreadRegister_11.get());
+
+ jmethodID jmAppletExecutionContext_restart = jenv.pEnv->GetMethodID(_jcAppletExecutionContext, "restart", "()V"); testJavaException(jenv.pEnv);
+ jenv.pEnv->CallVoidMethod(_joAppletExecutionContext, jmAppletExecutionContext_restart); testJavaException(jenv.pEnv);
++#else // !SOLAR_JAVA
++ throwException();
++#endif
+ }
+
+ void SjApplet2_Impl::reload() throw(com::sun::star::uno::RuntimeException)
+ {
++#ifdef SOLAR_JAVA
+ TKTThreadAttach jenv(_pJVM, _xJavaThreadRegister_11.get());
+
+ jmethodID jmAppletExecutionContext_reload = jenv.pEnv->GetMethodID(_jcAppletExecutionContext, "reload", "()V"); testJavaException(jenv.pEnv);
+ jenv.pEnv->CallVoidMethod(_joAppletExecutionContext, jmAppletExecutionContext_reload); testJavaException(jenv.pEnv);
++#else // !SOLAR_JAVA
++ throwException();
++#endif
+ }
+
+ void SjApplet2_Impl::start() throw(com::sun::star::uno::RuntimeException)
+ {
++#ifdef SOLAR_JAVA
+ TKTThreadAttach jenv(_pJVM, _xJavaThreadRegister_11.get());
+
+ jmethodID jmAppletExecutionContext_sendStart = jenv.pEnv->GetMethodID(_jcAppletExecutionContext, "sendStart", "()V"); testJavaException(jenv.pEnv);
+ jenv.pEnv->CallVoidMethod(_joAppletExecutionContext, jmAppletExecutionContext_sendStart); testJavaException(jenv.pEnv);
++#else // !SOLAR_JAVA
++ throwException();
++#endif
+ }
+
+ void SjApplet2_Impl::stop() throw(com::sun::star::uno::RuntimeException)
+ {
++#ifdef SOLAR_JAVA
+ TKTThreadAttach jenv(_pJVM, _xJavaThreadRegister_11.get());
+
+ jmethodID jmAppletExecutionContext_sendStop = jenv.pEnv->GetMethodID(_jcAppletExecutionContext, "sendStop", "()V"); testJavaException(jenv.pEnv);
+ jenv.pEnv->CallVoidMethod(_joAppletExecutionContext, jmAppletExecutionContext_sendStop); testJavaException(jenv.pEnv);
++#else // !SOLAR_JAVA
++ throwException();
++#endif
+ }
+
+ void SjApplet2_Impl::close() throw(com::sun::star::uno::RuntimeException)
+ {
++#ifdef SOLAR_JAVA
+ TKTThreadAttach jenv(_pJVM, _xJavaThreadRegister_11.get());
+
+ jmethodID jmAppletExecutionContext_shutdown = jenv.pEnv->GetMethodID(_jcAppletExecutionContext, "shutdown", "()V"); testJavaException(jenv.pEnv);
+@@ -416,5 +459,8 @@
+ }
+ }
+ }
++#else // !SOLAR_JAVA
++ throwException();
++#endif
+ }
+
+--- sj2/source/jscpp/sjapplet_impl.hxx.orig 2003-08-08 21:24:48.000000000 -0700
++++ sj2/source/jscpp/sjapplet_impl.hxx 2003-08-08 21:35:45.000000000 -0700
+@@ -1,13 +1,15 @@
+ #include <cstdarg>
+
+-
++#ifdef SOLAR_JAVA
+ #include <jni.h>
+-
++#endif // SOLAR_JAVA
+
+ #include <unotools/processfactory.hxx>
+
++#ifdef SOLAR_JAVA
+ #include <com/sun/star/java/XJavaVM.hpp>
+ #include <com/sun/star/java/XJavaThreadRegister_11.hpp>
++#endif // SOLAR_JAVA
+
+ #include <com/sun/star/lang/XMultiServiceFactory.hpp>
+
+@@ -16,9 +18,12 @@
+ class SvCommandList;
+ class Size;
+
++#ifdef SOLAR_JAVA
+ struct EmbeddedWindow;
++#endif // SOLAR_JAVA
+
+ struct SjApplet2_Impl {
++#ifdef SOLAR_JAVA
+ Window * _pParentWin;
+
+ JavaVM * _pJVM;
+@@ -29,6 +34,7 @@
+
+ com::sun::star::uno::Reference<com::sun::star::java::XJavaVM> _xJavaVM;
+ com::sun::star::uno::Reference<com::sun::star::java::XJavaThreadRegister_11> _xJavaThreadRegister_11;
++#endif // SOLAR_JAVA
+
+ SjApplet2_Impl() throw(com::sun::star::uno::RuntimeException);
+ ~SjApplet2_Impl() throw();
diff -Naur -x CVS ooo-build.orig/patches/OOO_1_1/solenv-set-solar-java-only-if-unset.diff ooo-build/patches/OOO_1_1/solenv-set-solar-java-only-if-unset.diff
--- ooo-build.orig/patches/OOO_1_1/solenv-set-solar-java-only-if-unset.diff 1969-12-31 16:00:00.000000000 -0800
+++ ooo-build/patches/OOO_1_1/solenv-set-solar-java-only-if-unset.diff 2003-09-27 10:50:31.000000000 -0700
@@ -0,0 +1,66 @@
+--- solenv/inc/unxlngi3.mk.orig 2003-04-28 09:46:48.000000000 -0700
++++ solenv/inc/unxlngi3.mk 2003-08-18 22:09:12.000000000 -0700
+@@ -64,7 +64,7 @@
+ ASM=
+ AFLAGS=
+
+-SOLAR_JAVA=TRUE
++SOLAR_JAVA*=TRUE
+ JAVAFLAGSDEBUG=-g
+
+ # filter for supressing verbose messages from linker
+--- solenv/inc/unxlngi4.mk.orig 2003-07-31 01:32:41.000000000 -0700
++++ solenv/inc/unxlngi4.mk 2003-08-18 22:09:12.000000000 -0700
+@@ -64,7 +64,7 @@
+ ASM=
+ AFLAGS=
+
+-SOLAR_JAVA=TRUE
++SOLAR_JAVA*=TRUE
+ JAVAFLAGSDEBUG=-g
+
+ # filter for supressing verbose messages from linker
+--- solenv/inc/unxlngi5.mk.orig 2003-07-31 01:32:41.000000000 -0700
++++ solenv/inc/unxlngi5.mk 2003-08-18 22:09:12.000000000 -0700
+@@ -64,7 +64,7 @@
+ ASM=
+ AFLAGS=
+
+-SOLAR_JAVA=TRUE
++SOLAR_JAVA*=TRUE
+ JAVAFLAGSDEBUG=-g
+
+ # filter for supressing verbose messages from linker
+--- solenv/inc/unxlngppc.mk.orig 2003-04-28 09:47:14.000000000 -0700
++++ solenv/inc/unxlngppc.mk 2003-08-18 22:09:12.000000000 -0700
+@@ -65,7 +65,7 @@
+ ASM=
+ AFLAGS=
+
+-SOLAR_JAVA=TRUE
++SOLAR_JAVA*=TRUE
+ JAVAFLAGSDEBUG=-g
+
+ # filter for supressing verbose messages from linker
+--- solenv/inc/unxlngppc4.mk.orig 2003-06-12 03:02:32.000000000 -0700
++++ solenv/inc/unxlngppc4.mk 2003-08-18 22:09:12.000000000 -0700
+@@ -64,7 +64,7 @@
+ ASM=
+ AFLAGS=
+
+-SOLAR_JAVA=TRUE
++SOLAR_JAVA*=TRUE
+ JAVAFLAGSDEBUG=-g
+
+ # filter for supressing verbose messages from linker
+--- solenv/inc/unxlngs3904.mk.orig 2003-06-12 03:02:43.000000000 -0700
++++ solenv/inc/unxlngs3904.mk 2003-08-18 22:09:12.000000000 -0700
+@@ -64,7 +64,7 @@
+ ASM=
+ AFLAGS=
+
+-SOLAR_JAVA=TRUE
++SOLAR_JAVA*=TRUE
+ JAVAFLAGSDEBUG=-g
+
+ # filter for supressing verbose messages from linker
diff -Naur -x CVS ooo-build.orig/patches/OOO_1_1/svg-handle-no-solar-java.diff ooo-build/patches/OOO_1_1/svg-handle-no-solar-java.diff
--- ooo-build.orig/patches/OOO_1_1/svg-handle-no-solar-java.diff 1969-12-31 16:00:00.000000000 -0800
+++ ooo-build/patches/OOO_1_1/svg-handle-no-solar-java.diff 2003-09-27 10:50:31.000000000 -0700
@@ -0,0 +1,155 @@
+--- filter/source/svg/svgfilter.hxx.orig 2003-08-09 19:28:05.000000000 -0700
++++ filter/source/svg/svgfilter.hxx 2003-08-09 21:45:14.000000000 -0700
+@@ -83,9 +83,11 @@
+ #ifndef _COM_SUN_STAR_DOCUMENT_XFILTER_HPP_
+ #include <com/sun/star/document/XFilter.hpp>
+ #endif
++#ifdef SOLAR_JAVA
+ #ifndef _COM_SUN_STAR_DOCUMENT_XIMPORTER_HPP_
+ #include <com/sun/star/document/XImporter.hpp>
+ #endif
++#endif // SOLAR_JAVA
+ #ifndef _COM_SUN_STAR_DOCUMENT_XEXPORTER_HPP_
+ #include <com/sun/star/document/XExporter.hpp>
+ #endif
+@@ -104,9 +106,15 @@
+ #ifndef _CPPUHELPER_IMPLBASE1_HXX_
+ #include <cppuhelper/implbase1.hxx>
+ #endif
++#ifdef SOLAR_JAVA
+ #ifndef _CPPUHELPER_IMPLBASE5_HXX_
+ #include <cppuhelper/implbase5.hxx>
+ #endif
++#else // !SOLAR_JAVA
++#ifndef _CPPUHELPER_IMPLBASE4_HXX_
++#include <cppuhelper/implbase4.hxx>
++#endif
++#endif
+ #ifndef _COM_SUN_STAR_LANG_XMULTISERVICEFACTORY_HPP_
+ #include <com/sun/star/lang/XMultiServiceFactory.hpp>
+ #endif
+@@ -152,7 +160,9 @@
+ #include <svx/svdxcgv.hxx>
+ #include <svx/svdobj.hxx>
+ #include <xmloff/xmlexp.hxx>
++#ifdef SOLAR_JAVA
+ #include <sj2/jnihelp.hxx>
++#endif
+ #include "svgfilter.hxx"
+ #include "svgscript.hxx"
+
+@@ -238,11 +248,18 @@
+ class SVGFontExport;
+ class SVGActionWriter;
+
++#ifdef SOLAR_JAVA
+ class SVGFilter : public cppu::WeakImplHelper5 < XFilter,
+ XImporter,
+ XExporter,
+ XInitialization,
+ XServiceInfo >
++#else // !SOLAR_JAVA
++class SVGFilter : public cppu::WeakImplHelper4 < XFilter,
++ XExporter,
++ XInitialization,
++ XServiceInfo >
++#endif
+ {
+ typedef ::std::hash_map< Reference< XInterface >, ObjectRepresentation, HashReferenceXInterface > ObjectMap;
+
+@@ -251,14 +268,18 @@
+ ObjectMap* mpObjects;
+ Reference< XMultiServiceFactory > mxMSF;
+ Reference< XComponent > mxSrcDoc;
++#ifdef SOLAR_JAVA
+ Reference< XComponent > mxDstDoc;
++#endif
+ SvXMLElementExport* mpSVGDoc;
+ SVGExport* mpSVGExport;
+ SVGFontExport* mpSVGFontExport;
+ SVGActionWriter* mpSVGWriter;
+ sal_Bool mbPresentation;
+
++#ifdef SOLAR_JAVA
+ sal_Bool implImport( const Sequence< PropertyValue >& rDescriptor ) throw (RuntimeException);
++#endif
+
+ sal_Bool implExport( const Sequence< PropertyValue >& rDescriptor ) throw (RuntimeException);
+ Reference< XDocumentHandler > implCreateExportDocumentHandler( const Reference< XOutputStream >& rxOStm );
+@@ -292,8 +313,10 @@
+ virtual sal_Bool SAL_CALL filter( const Sequence< PropertyValue >& rDescriptor ) throw(RuntimeException);
+ virtual void SAL_CALL cancel( ) throw (RuntimeException);
+
++#ifdef SOLAR_JAVA
+ // XImporter
+ virtual void SAL_CALL setTargetDocument( const Reference< XComponent >& xDoc ) throw(IllegalArgumentException, RuntimeException);
++#endif
+
+ // XExporter
+ virtual void SAL_CALL setSourceDocument( const Reference< XComponent >& xDoc ) throw(IllegalArgumentException, RuntimeException);
+--- filter/source/svg/makefile.mk.orig 2003-08-09 20:06:22.000000000 -0700
++++ filter/source/svg/makefile.mk 2003-08-09 20:07:54.000000000 -0700
+@@ -99,10 +99,12 @@
+
+ SLOFILES= $(SLO)$/svguno.obj \
+ $(SLO)$/svgfilter.obj \
+- $(SLO)$/svgimport.obj \
+ $(SLO)$/svgexport.obj \
+ $(SLO)$/svgfontexport.obj \
+ $(SLO)$/svgwriter.obj
++.IF "$(SOLAR_JAVA)"!=""
++SLOFILES+= $(SLO)$/svgimport.obj
++.ENDIF
+
+ # --- Library -----------------------------------
+
+@@ -112,7 +114,6 @@
+ $(SVXLIB) \
+ $(XMLOFFLIB) \
+ $(GOODIESLIB) \
+- $(SJLIB) \
+ $(VCLLIB) \
+ $(UNOTOOLSLIB) \
+ $(TOOLSLIB) \
+@@ -120,7 +121,10 @@
+ $(CPPUHELPERLIB) \
+ $(CPPULIB) \
+ $(SALLIB)
+-
++.IF "$(SOLAR_JAVA)"!=""
++SHL1STDLIBS+=\
++ $(SJLIB)
++.ENDIF
+
+ SHL1DEPN=
+ SHL1IMPLIB= i$(SHL1TARGET)
+--- filter/source/svg/svgfilter.cxx.orig 2003-08-09 20:03:37.000000000 -0700
++++ filter/source/svg/svgfilter.cxx 2003-08-09 21:46:50.000000000 -0700
+@@ -97,9 +97,12 @@
+ if( pFocusWindow )
+ pFocusWindow->EnterWait();
+
++#ifdef SOLAR_JAVA
+ if( mxDstDoc.is() )
+ bRet = implImport( rDescriptor );
+- else if( mxSrcDoc.is() )
++ else
++#endif
++ if( mxSrcDoc.is() )
+ bRet = implExport( rDescriptor );
+ else
+ bRet = sal_False;
+@@ -126,11 +129,13 @@
+
+ // -----------------------------------------------------------------------------
+
++#ifdef SOLAR_JAVA
+ void SAL_CALL SVGFilter::setTargetDocument( const Reference< XComponent >& xDoc )
+ throw (::com::sun::star::lang::IllegalArgumentException, RuntimeException)
+ {
+ mxDstDoc = xDoc;
+ }
++#endif
+
+ // -----------------------------------------------------------------------------
+
diff -Naur -x CVS ooo-build.orig/patches/OOO_1_1/xsltfilter-handle-no-solar-java.diff ooo-build/patches/OOO_1_1/xsltfilter-handle-no-solar-java.diff
--- ooo-build.orig/patches/OOO_1_1/xsltfilter-handle-no-solar-java.diff 1969-12-31 16:00:00.000000000 -0800
+++ ooo-build/patches/OOO_1_1/xsltfilter-handle-no-solar-java.diff 2003-09-27 10:50:31.000000000 -0700
@@ -0,0 +1,12 @@
+--- filter/source/xsltfilter/makefile.mk.orig 2003-08-09 22:21:10.000000000 -0700
++++ filter/source/xsltfilter/makefile.mk 2003-08-09 22:21:31.000000000 -0700
+@@ -90,7 +90,9 @@
+ # + $(COPY) $(COPYRECURSE) META-INF $(OUT)$/class$/XSLTFilter$/META-INF
+ # --- Targets ------------------------------------------------------
+ .INCLUDE : target.mk
++.IF "$(SOLAR_JAVA)"!=""
+ $(JAVACLASSFILES) : $(CLASSDIR)
++.ENDIF
+
+ $(CLASSDIR) :
+ $(MKDIR) $(CLASSDIR)
diff -Naur -x CVS ooo-build.orig/patches/OOO_1_1/xsltvalidate-handle-no-solar-java.diff ooo-build/patches/OOO_1_1/xsltvalidate-handle-no-solar-java.diff
--- ooo-build.orig/patches/OOO_1_1/xsltvalidate-handle-no-solar-java.diff 1969-12-31 16:00:00.000000000 -0800
+++ ooo-build/patches/OOO_1_1/xsltvalidate-handle-no-solar-java.diff 2003-09-27 10:50:31.000000000 -0700
@@ -0,0 +1,12 @@
+--- filter/source/xsltvalidate/makefile.mk.orig 2003-08-09 22:07:10.000000000 -0700
++++ filter/source/xsltvalidate/makefile.mk 2003-08-09 22:07:23.000000000 -0700
+@@ -87,7 +87,9 @@
+ # + $(COPY) $(COPYRECURSE) META-INF $(OUT)$/class$/META-INF
+ # --- Targets ------------------------------------------------------
+ .INCLUDE : target.mk
++.IF "$(SOLAR_JAVA)"!=""
+ $(JAVACLASSFILES) : $(CLASSDIR)
++.ENDIF
+
+ $(CLASSDIR) :
+ $(MKDIR) $(CLASSDIR)
diff -Naur -x CVS ooo-build.orig/patches/OOO_1_1_0/apply ooo-build/patches/OOO_1_1_0/apply
--- ooo-build.orig/patches/OOO_1_1_0/apply 2003-09-27 11:36:17.000000000 -0700
+++ ooo-build/patches/OOO_1_1_0/apply 2003-09-27 09:45:46.000000000 -0700
@@ -326,6 +326,72 @@
# compile msgbox-gnome every time (we have to support ppc, s390, ... too)
compile-msgbox-gnome.diff
+# If java is disabled with --disable-java, don't look for a JDK, but do look
+# for xsltproc, and set XSLTPROC in set_soenv.
+allow-no-jdk.diff
+
+# Set the SOLAR_JAVA variable conditionally with "*=".
+solenv-set-solar-java-only-if-unset.diff
+
+# Use xsltproc to replace java for xml transforms in readlicense_oo.
+readlicense-oo-xsltproc.diff
+
+# Use xsltproc to replace java for xml transforms in officecfg.
+officecfg-xsltproc.diff
+
+# If SOLAR_JAVA is not set, don't pass --enable-java to the configure script,
+# and don't expect the jar when finished.
+berkeleydb-handle-no-solar-java.diff
+
+# If SOLAR_JAVA is not set, don't attempt to zip up the compiled java files,
+# since they will not be built.
+ridljar-handle-no-solar-java.diff
+
+# Don't build jpipe with SOLAR_JAVA not set.
+jurt-handle-no-solar-java.diff
+
+# Don't build jvmaccess with SOLAR_JAVA not set.
+jvmaccess-handle-no-solar-java.diff
+
+# Don't build jni_uno with SOLAR_JAVA not set.
+jni-uno-handle-no-solar-java.diff
+
+# Don't build javaunohelper with SOLAR_JAVA not set
+javaunohelper-handle-no-solar-java.diff
+
+# Don't use jvmaccess to get JDK font path with SOLAR_JAVA not set.
+psprint-handle-no-solar-java.diff
+
+# When SOLAR_JAVA is not set, replace java applet support with stubs that
+# throw an exception.
+sj2-handle-no-solar-java.diff
+
+# Don't build jvmsetup or use jvmaccess for java-related setup with SOLAR_JAVA
+# not set.
+setup2-handle-no-solar-java.diff
+
+# Don't ship various java-related files that will no longer be built, but ship
+# the stubbed out libj from sj2 because setup fails without it.
+scp-handle-no-solar-java.diff
+
+# Disable SVG import support with SOLAR_JAVA not set, since it depends on
+# compile-time and run-time java support.
+svg-handle-no-solar-java.diff
+
+# Disable java components with SOLAR_JAVA not set.
+xsltvalidate-handle-no-solar-java.diff
+
+# Disable java components with SOLAR_JAVA not set.
+xsltfilter-handle-no-solar-java.diff
+
+# Don't build javaldx with SOLAR_JAVA not set, and check for javaldx in
+# soffice.sh before using it.
+desktop-handle-no-solar-java.diff
+
+# Disable java components and documentation of java jars with SOLAR_JAVA not
+# set.
+odk-handle-no-solar-java.diff
+
# so far Ximian only, controversial patches etc.
[ Ximian ]
Reply to: