From 34c58817565c0735a93efd255ab56dd502fec135 Mon Sep 17 00:00:00 2001 From: DJ Lucas Date: Wed, 9 Apr 2008 04:23:52 +0000 Subject: [PATCH] Recent OOo suggestions and fix for BDB. git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@7367 af4574ff-66df-0310-9fd7-8a98e5e911e0 --- introduction/welcome/changelog.xml | 9 ++ xsoft/suites/openoffice.xml | 206 ++++++++++++++++------------- 2 files changed, 121 insertions(+), 94 deletions(-) diff --git a/introduction/welcome/changelog.xml b/introduction/welcome/changelog.xml index c656d47a7b..8def67bad0 100644 --- a/introduction/welcome/changelog.xml +++ b/introduction/welcome/changelog.xml @@ -44,6 +44,15 @@ April 9th, 2008 + + [dj] - Updated OpenOffice instructions with changes suggested + by Randy McMurchy and Chris Staub. + + + [dj] - Corrected OpenOffice build failure when GMime is + installed. Thanks to Alessandro Alocci for traking down the + cause of the build failure. + [randy] - Clarified the GMP documentation installation. diff --git a/xsoft/suites/openoffice.xml b/xsoft/suites/openoffice.xml index 481c832278..f3c1826d6f 100644 --- a/xsoft/suites/openoffice.xml +++ b/xsoft/suites/openoffice.xml @@ -6,16 +6,16 @@ - - - - + + + + - - - - - + + + + + ]> @@ -64,7 +64,6 @@ OpenOffice System Download size: &openoffice-system-size; - Estimated disk space required: &openoffice-buildsize; @@ -75,37 +74,34 @@ Additional Downloads - Required patch: - - Required download if you wish to build the in-tree + Optional download if you wish to build the in-tree Mozilla browser: - Optional download if you wish to build the OpenOffice SDK: - + + which also requires MinGW + or a precompiled unowinreg.dll for the + cross-platform Java components. - Optional download if you would like to localize the installation: - Optional download if you need to support the old StarOffice-5.x file formats: - OpenOffice Dependencies @@ -114,7 +110,6 @@ , , , - , Perl Modules and , @@ -123,7 +118,8 @@ Recommended - + and + Optional boost, , , - (with Java support), + (built with Java support), , EPM, , @@ -168,9 +164,10 @@ The OpenOffice source code is now distributed in several tarballs. You should extract each from the same top-level directory before entering the build directory. At - a minimum, you will need to extract the src and core tarballs. - Additionally, the source directory name is not consistent with - the tarball name and will be named OOG680_m9. + a minimum, you will need to extract the core and + system tarballs. Note that the source directory name + is not consistent with the tarball name and will be named + OOG680_m9. If you wish to build an in-tree Mozilla, as opposed to using a system wide installation, copy the @@ -187,33 +184,20 @@ . The best option is to not use any custom optimizations. - Because of the complexity of the - OpenOffice build system, it is not possible to - provide generic build instructions for all systems. You should review - the output of config_office/configure --help and take - advantage of any system installed programs and libraries available using - the --enable-*, --disable-*, - and --with-system-* parameters. Additionally, if - you have installed KDE in the - /opt prefix, and would like to use the - --enable-kde switch, you must set - KDEDIR=$KDE_PREFIX before running - configure. - - Configure OpenOffice using the following - commands: - -cd config_office/ && -./configure --prefix=/opt/openoffice-&openoffice-version; \ - --enable-libart --disable-fontooo --disable-gnome-vfs \ - --without-fonts --without-system-jars --without-pam \ - --with-system-stdlibs --with-system-freetype \ - --with-system-expat --with-system-libxml --with-system-zlib \ - --enable-cairo --enable-build-mozilla \ - --with-build-version=BLFS --with-package-format=native \ - --disable-binfilter --disable-odk --disable-qadevooo \ - --with-use-shell=bash && -cd .. + + Because of the complexity of the + OpenOffice build system, it is not possible to + provide generic build instructions for all systems. You should review + the output of config_office/configure --help and take + advantage of any system installed programs and libraries available using + the --enable-*, --disable-*, + and --with-system-* parameters. Additionally, if + you have installed KDE in the + /opt prefix, and would like to use the + --enable-kde switch, you must set + KDEDIR=$KDE_PREFIX before running + configure. + OpenOffice fails to compile if umask is set to something exotic. The build can also @@ -224,66 +208,88 @@ cd .. umask 0022 && unset LANG LC_ALL - Compile OpenOffice using the following - commands: + Install OpenOffice by running the + following commands: patch -Np1 -i ../OOo_&openoffice-version;-use_bin_hsqldb-1.patch && + +sed 's@..\$/dist\$/configure@uudecode="no" ..\$/dist\$/configure@' \ + -i berkeleydb/makefile.mk && + +pushd config_office && +./configure --prefix=/opt/openoffice-&openoffice-version; \ + --enable-libart \ + --disable-fontooo \ + --disable-gnome-vfs \ + --without-fonts \ + --without-system-jars \ + --without-pam \ + --with-system-stdlibs \ + --with-system-freetype \ + --with-system-expat \ + --with-system-libxml \ + --with-system-libxslt \ + --with-system-zlib \ + --enable-cairo \ + --enable-build-mozilla \ + --with-build-version=BLFS \ + --with-package-format=native \ + --disable-binfilter \ + --disable-odk \ + --disable-qadevooo \ + --with-use-shell=bash && +popd && + ./bootstrap && -. LinuxX86Env.Set.sh && +source LinuxX86Env.Set.sh && dmake This package does not come with a test suite. - Install OpenOffice as the - root user with the - following commands: + Now, as the root + user: pushd instsetoo_native/unxlngi6.pro/OpenOffice/\ native/install/en-US/linux-2.6-intel/buildroot/opt && cp -r -v openoffice.org2.3 /opt/openoffice-&openoffice-version; && -popd +popd && - Still as the root - user: - -for appl in sbase scalc sdraw simpress smath soffice spadmin swriter +for appl in sbase scalc sdraw simpress smath soffice spadmin swriter do ln -v -sf /opt/openoffice-&openoffice-version;/program/$appl /usr/bin/$appl -done +done && - The icons are not installed by default. While still the - root user, install the icons - with the following commands: - -cd sysui/desktop/icons && -install -v -d /usr/share/icons/{HighContrast,hicolor,locolor} -m755 && +pushd sysui/desktop/icons && +install -v -m755 -d /usr/share/icons/{HighContrast,hicolor,locolor} && cp -r -v HighContrast/*x* /usr/share/icons/HighContrast && -cp -r -v hicolor/*x* /usr/share/icons/hicolor && -cp -r -v locolor/*x* /usr/share/icons/locolor +cp -r -v hicolor/*x* /usr/share/icons/hicolor && +cp -r -v locolor/*x* /usr/share/icons/locolor && +popd If you have installed , you should copy the *.desktop files to /usr/share/applications with the following commands as the root user: -install -v -d /usr/share/applications -m 755 && -cd /opt/openoffice-&openoffice-version;/share/xdg/ && +install -v -d -m755 /usr/share/applications && +pushd /opt/openoffice-&openoffice-version;/share/xdg/ && for appl in *.desktop do - sed -i '/Exec/d' $appl - echo "Exec=/usr/bin/s`echo $appl | sed 's/.desktop//'`" >> $appl - sed -i '/Icon/d' $appl + sed -i '/Exec/d' $appl && + echo "Exec=/usr/bin/s`echo $appl | sed 's/.desktop//'`" >> $appl && + sed -i '/Icon/d' $appl && echo "Icon=`echo $appl | sed 's/.desktop//'`" >> $appl done && sed -i 's@bin/sprinteradmin@bin/spadmin@' printeradmin.desktop && cp -v *.desktop /usr/share/applications && -update-desktop-database +update-desktop-database && +popd Finally, if you'd like to edit OpenOffice documents directly from or , create a symbolic link in your - plugins directory to - /opt/openoffice-&openoffice-version;/program/libnpsoplugin.so. + plugins directory to /opt/openoffice-&openoffice-version;/program/libnpsoplugin.so. Additionally, you must enable the plugin from the Internet Options within any OpenOffice application. @@ -293,21 +299,26 @@ update-desktop-database Command Explanations + sed 's@..\$dist\$/configure@uudecode="no"...': + This command corrects a build failure when a faulty + uudecode, provided by , is + installed. + --enable-*: The switches listed in the - example configure command above force the use of system installed - libraries that are known to be available on a BLFS system that meets - the required and recommended dependencies. + example configure command above force the use of system + installed libraries that are known to be available on a BLFS system that + meets the required and recommended dependencies. --disable-fontooo: Use - Fontconfig instead of FontOOo. + Fontconfig instead of the FontOOo. --disable-gnome-vfs: Disable the use of Gnome Virtual File System libraries. Omit this switch if you have Gnome installed. --without-fonts: Do not install Bitstream - Vera fonts since they are already included in X Window System - Environment. + Vera fonts since they are already included in the + X Window System Environment. --with{,out}-system-*: Determines whether to use the system libraries and programs or to build @@ -320,8 +331,8 @@ update-desktop-database --enable-build-mozilla: Build the in-tree Mozilla suite. - --with-build-version=BLFS: Appends "BLFS" - to the end of the version string. + --with-build-version=BLFS: Appends + BLFS to the end of the version string. --with-package-format=native: This switch forces the build to skip the packaging process, leaving only the @@ -330,7 +341,8 @@ update-desktop-database --disable-binfilter: This switch disables the build of legacy StarOffice-5 import - filters. Omit this switch if you've downloaded the binfilter package + filters. Omit this switch if you've downloaded the + binfilter package above. Warning: Installation of the legacy import filters increases the build time considerably. Only install them if you have these old file types, and need to edit them in @@ -338,7 +350,7 @@ update-desktop-database --disable-odk: This switch disables the build of the OpenOffice SDK. Omit this switch if - you've downloaded the sdk package above. + you've downloaded the SDK package above. --disable-qadevooo: This switch skips the building of the quality assurance tools used by the @@ -361,23 +373,29 @@ update-desktop-database --with-lang=<LANG>: Allows the use of additional languages in - OpenOffice. ENUS is the default. + OpenOffice. US English (ENUS) is the + default. --with-dict=<LANG>: Allows the use of alternate dictionaries in - OpenOffice. ENUS is the default. + OpenOffice. US English (ENUS) is the + default. --with-use-shell=bash: Tells the - OpenOffice build system to use bash as opposed - to tcsh. + OpenOffice build system to use + bash as opposed to tcsh. ./bootstrap: Build the - dmake utility required to complete the + dmake utility required to complete the build. dmake: Compiles the package. + for appl in sbase scalc...: Creates symlinks + for the applicatons in + /usr/bin. + for appl in *.desktop...: Edit the *.desktop files for use with a standard BLFS system.