***************************************************** * BUILDING OPENOFFICE.ORG ON MANDRAKE 10.0 OFFICIAL * ***************************************************** ************************** PREPARE THE BUILD PLATFORM ************************** First of all: be sure that you are using gcc 3.3.2 (or colorgcc) and not the gcc 2.96 compatibility version. Install the following packages: libgtk+1.2-devel libglib1.2-devel libORBit0-devel indent libgtk+2.0_0-devel libatk1.0_0-devel libgdk_pixbuf2.0_0-devel libpango1.0_0-devel libpam0-devel Preferably, update the bison package (version 1.875 has a known bug), as an example you can update it getting bison-1.875d-1mdk.src.rpm from the Mandrake Cooker and then rebuilding and installing it. ------------------------------------------------------------------ Build a patched Mozilla 1.0.0 for the mozab connectivity component ------------------------------------------------------------------ For this build, the following files are needed: - mozilla-1.0.0-gcc33.patch - patch-mozilla-1.0.txt - mozilla-1.0.0.configure These files are available in the MOZAB.tar.gz tarball. patch-mozilla-1.0.txt can also be downloaded from the OOo issuezilla, it is attached to issue 8239: http://www.openoffice.org/issues/show_bug.cgi?id=8239 Some other relevant URLs: http://www.openoffice.org/issues/show_bug.cgi?id=5361 http://www.openoffice.org/issues/show_bug.cgi?id=6883 http://www.openoffice.org/issues/show_bug.cgi?id=17187 tar xvzf mozilla-source-1.0.0.tar.gz cd mozilla patch -p0 < mozilla-1.0.0-gcc33.patch patch -p0 < patch-mozilla-1.0.txt sh mozilla-1.0.0.configure make cd .. #sh fix_moz_zipped.sh (it will be executed later) ----------------- Install JDK 1.4.2 ----------------- You can download it from the SUN web site: http://java.sun.com/j2se/1.4.2/download.html Please note that JDK is proprietary software. Download j2sdk-1_4_2_03-linux-i586-rpm.bin chmod +x j2sdk-1_4_2_03-linux-i586-rpm.bin ./j2sdk-1_4_2_03-linux-i586-rpm.bin rpm -ivh j2sdk-1_4_2_03-linux-i586.rpm ----------- Install Ant ----------- You need Ant to successfully build the projects using Java. Install the following packages, available at http://www.jpackage.org/ ant-1.5.4-2jpp.noarch.rpm gnujaxp-1.0-0.beta1.7jpp.noarch.rpm jpackage-utils-1.5.31-1jpp.noarch.rpm xml-commons-1.0-0.b2.6jpp.noarch.rpm xml-commons-apis-1.0-0.b2.6jpp.noarch.rpm ************************ BUILD OPENOFFICE.ORG 1.1 ************************ tar xvzf OOo_1.1.2_source.tar.gz sh fix_moz_zipped.sh (fix_moz_zipped.sh is available in the MOZAB.tar.gz tarball) cd oo_1.1.2_src/ Apply the patches provided in the PATCHES.tar.gz tarball: copy all the patches and apply.sh in the oo_1.1.1a_src/ directory, then run sh apply.sh Images for OOo 1.1 with the TELUG logo are provided in the LOGHI-OOO-TELUG.tar.gz tarball: - oo_product-telug.bmp - openabout-telug.bmp - openintro-telug.bmp Put oo_product-telug.bmp in readlicense_oo/source/cinema/ Put openabout-telug.bmp and openintro-telug.bmp in offmgr/res/ Then consider the license problem reported in issue 21678: http://www.openoffice.org/issues/show_bug.cgi?id=21678 The problem: briefly, the OOo 1.1.1a source tarball contains two proprietary .jar's in the external/common/ directory. Refer to the FIX_JARS.tar.gz tarball, that has been proposed in issue 21678 to fix the problem; it provides a fix_jars.txt that explains how to replace such proprietary .jar's with open source .jar's. If you are not affected by the license problem reported in issue 21678, you can build OOo 1.1.1a without using FIX_JARS.tar.gz at all. Update the Italian dictionary: download it http://prdownloads.sourceforge.net/ooodocs/it_IT_2.1.zip?download then unzip it and put README_it_IT.txt it_IT.aff it_IT.dic in the oo_1.1.2_src/dictionaries/it_IT/ directory, overwriting the corresponding files. export JAVA_HOME=/usr/java/j2sdk1.4.2_03 export PATH=/usr/java/j2sdk1.4.2_03/bin:$PATH export LD_LIBRARY_PATH=/usr/java/j2sdk1.4.2_03/jre/lib:$LD_LIBRARY_PATH Then, configure for the build... cd config_office/ #cp configure configure.orig #autoconf ./configure --enable-libart --enable-mozilla --disable-crashdump --with-lang=ENUS,ITAL --with-dict=ALL cd .. . LinuxIntelEnv.Set.sh ./bootstrap dmake The build lasts about 6-7 hours on an Athlon 1700. After the build, in instsetoo/unxlngi4.pro/39/normal you find the Italian version; in instsetoo/unxlngi4.pro/01/normal you find the English version; #in instsetoo/unxlngi4.pro/49/normal you find the German version. To obtain an Italian build with the help in Italian instead of in English, download helpcontent_39_unix.tgz from ftp://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/helpcontent and extract it into the directory solver/645/unxlngi4.pro/pck (a file will be overwritten, no panic); then rebuild the installation set: ( cd solver/645/unxlngi4.pro/pck ; tar xvzf [path]/helpcontent_39_unix.tgz ) cd instsetoo rm -rf unxlngi4.pro build This final re-"build" is fast (2-3 minutes on an Athlon 1700). ************************* AFTER THE INSTALLATION... ************************* After the installation, you can remove some libraries that are bundled with the OOo installation files and that are needed only if you run it on a different platform: program/libgcc_s* program/libstdc++* (see also the openoffice-1.1-no-stdlibs.patch available in the MDK 9.2 OOo .src.rpm package) Furthermore, program/resource/ooo64501.res and ooo64539.res are perfectly equal to iso64501.res and iso64539.res, respectively; furthermore, it seems that iso645??.res are significant and ooo645??.res are not; hence, to save disk space, you can remove the ooo645??.res and eventually link them to the respective iso645??.res: cd program/resource rm ooo645??.res Then, for English: ln -s iso64501.res ooo64501.res for Italian: ln -s iso64539.res ooo64539.res Something similar is done also in the OOo .spec of Mandrake 9.2.