Rene Engelhard wrote: > Hi Josh, > > Josh Triplett wrote: > >>Package: openoffice.org >>Version: 1.0.99+1.1rc3-1.2pre1 >>Severity: wishlist >>Tags: patch >> >>With the attached patches, OpenOffice.org will build without a JDK >>installed. These patches add checks for SOLAR_JAVA to various >>makefiles, source files, and setup lists. They use xsltproc to replace >>the java xml manipulations in readlicense_oo and officecfg. The patches >>apply to the latest CVS versions of the debian and ooo-build directories >>based on version 1.1rc3. > > > Thanks. > > You said you tested it? After applying the patch OOo didn't build > anmore here:
It appears that since you have a /usr/bin/javac, the autodetection in configure is setting JAVA_HOME to /usr. The makefiles add $JAVA_HOME/include to the include path, and gcc has problems when /usr/include is explicitly added, resulting in errors from the system include files. I did not see this problem because I don't have a /usr/bin/javac, so JAVA_HOME was empty, and the makefiles added /include to the include path, which did not cause a problem. I will fix configure.in so that it sets JAVA_HOME to NO_JAVA_HOME when --disable-java is passed, which should fix the problem. I will send an updated patch as soon as I finish testing the full build (about 3-4 hours). > > Grüße/Regards, > > René Thanks for checking the patch. - Josh Triplett