Ticket #1758: Discussion.txt

File Discussion.txt, 4.3 KB (added by martyman99999@…, 19 years ago)

Discussion of what I fixed and why, build cookbook updates

Line 
1Here is what I have found thus far. I have done some functional
2testing but I would be grateful for your assistance in verifying
3and correcting. This is all referencing the 2.0.2 sources as
4available for download at
5http://download.openoffice.org/2.0.2/source.html
6(which is not all that easy to find from the home page).
7
8The Linux-PAM headers are documented as a required dependency
9on Linux, though not in a terribly obvious place.
10I do not address building without these headers, though you
11may choose to. I have no easy way to test this case at this point.
12It might be simplest to tar up the headers so they can be slapped
13into the include directory rather than patch things in the build,
14or give some instructions for doing this from the PAM tarball.
15http://tools.openoffice.org/dev_docs/build_linux.html
16
17There was a problem in 2.0.0 locating the NSPR headers when NSS
18was installed system wide. This has been corrected in 2.0.2.
19
20If using the system installed Java, ensure that JAVA_HOME is
21set to its location, e.g.
22
23/opt/jdk1.5.0_06
24
25Also ensure that the library directories, e.g.
26
27/opt/jdk1.5.0_06/jre/lib/i386
28/opt/jdk1.5.0_06/jre/lib/i386/xawt
29
30are in /etc/ld.so.conf and run ldconfig if needed. The xawt
31directory is needed to locate libmawt.so. The build uses the
32presence of a definition of JAVA_HOME to determine that the system
33installed Java is to be used rather than the one included in the
34OpenOffice distribution. I have not found a --with and --without
35control on this.
36
37The --with-system-db option has caused confusion. It refers not
38to the Java bindings of the Berkeley DB installed in LFS but to
39a different product written in Java named Berkeley DB Java Edition.
40http://www.sleepycat.com/products/bdbje.html
41In all probability this is not installed and the --with-system-db
42option should not be given.
43
44I made patches to fix the following build problems. None of the other
45patches in the 2.0.0 build instructions have been applied.
46
47Still a few sources fail to compile under Java 1.5 due to use of enum
48as an identifier. In Java 1.5, enum is a new reserved word.
49
50The --with-firefox configuration selection is not honored in the extensions
51build. The build accesses the potentially nonexistent mozilla-plugin.pc
52rather than firefox-plugin.pc. It was necessary to change the configuration
53system to export the --with-firefox setting in variable SYSTEM_FIREFOX
54(which is valid only if SYSTEM_MOZILLA is equal to YES) in order to have
55this accessible to the place in the build where it must be tested.
56
57The filter configuration build fails when the system Java is used. There are
58three problems within the makefile:
59
60 The guard tests for JDK equal to gcj, rather than for any host Java
61 system being used. The correct test is JAVA_HOME not null.
62
63 An incorrect (undefined) variable is used to locate the xalan classes.
64 The correct variable is STAR_RESOURCEPATH.
65
66 The makefile fails to distinguish between setting an environment variable
67 and setting a makefile variable, so the code that sets the makefile
68 variable is ineffective in assisting with class resolution. Change
69 the makefile to pass the -classpath argument instead.
70
71 (In 2.0.0, this failure situation went undetected and caused the
72 resulting build to throw an exception immediately upon startup.
73 In 2.0.2 this situation was detected and caused a build failure.)
74
75The packaging system fails when --disable-odk is selected.
76
77 This patch is still to be developed at this writing, but the required
78 behavior is understood. Until then the --disable-odk option cannot be
79 given.
80
81 (In process of trying this I learned that their build utility dmake
82 only supports a half dozen or so functions and findstring is not among
83 them. Caveat if you are ever having to change something.)
84
85The slap-in-new-beanshell/configure/build/install instructions remain valid
86with the following modifications. The build is six hours on my system.
87
88The build result directory is changed (yet deeper!)
89
90cd instsetoo_native/unxlngi6.pro/OpenOffice/native/install/en-US/linux-2.6-intel/buildroot/opt
91cp -a -v openoffice.org2.0 /opt/openoffice-2.0.2
92
93I did not find the claim "If you have installed desktop-file-utils-0.10
94and use KDE, there is no further configuration necessary." to be true. I
95needed to do the by-hand .desktop file copy on a KDE system in order to have
96the applications appear in the menus.