source: xsoft/office/libreoffice.xml@ c599277

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.4 9.0 9.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since c599277 was c599277, checked in by Douglas R. Reno <renodr@…>, 5 years ago

Adapt Libreoffice to changes in JDK11
Minor stylistic changes to subversion
OpenJDK: Add comment about test suite failures
Java: Regenerate i686 binary for +9

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@21078 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 30.1 KB
RevLine 
[d2d3fc5]1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[c20bced]7 <!ENTITY libreoffice-dl "http://download.documentfoundation.org/libreoffice/src/&libreoffice-version;">
8
9 <!ENTITY libreoffice-core-download-http "&libreoffice-dl;/libreoffice-&libreoffice-dlversion;.tar.xz">
[5cc300f]10 <!ENTITY libreoffice-core-md5sum "f6e69df90d8d6de6dd223d5309f71caa">
[b4bff899]11 <!ENTITY libreoffice-core-size "198 MB">
[c20bced]12
13 <!ENTITY libreoffice-dict-download-http "&libreoffice-dl;/libreoffice-dictionaries-&libreoffice-dlversion;.tar.xz">
[5cc300f]14 <!ENTITY libreoffice-dict-md5sum "e5bb56a92b72c3102f4917aafebba3b4">
15 <!ENTITY libreoffice-dict-size "42 MB">
[c20bced]16
17 <!ENTITY libreoffice-help-download-http "&libreoffice-dl;/libreoffice-help-&libreoffice-dlversion;.tar.xz">
[5cc300f]18 <!ENTITY libreoffice-help-md5sum "e02680a25ab4f5eee112170f20bf47d0">
[b4bff899]19 <!ENTITY libreoffice-help-size "16 MB">
[c20bced]20
21 <!ENTITY libreoffice-translations-download-http "&libreoffice-dl;/libreoffice-translations-&libreoffice-dlversion;.tar.xz">
[5cc300f]22 <!ENTITY libreoffice-translations-md5sum "8c99e7da7bfc9515f5d074ca7449471b">
[b4bff899]23 <!ENTITY libreoffice-translations-size "135 MB">
[514797f]24
25
[afff6997]26 <!-- full size still accurate for 6.0.2, reconfiguring and rebuilding
[be307b9]27 the built source after initial DESTDIR install doesn't take a vast time -->
[05800b9]28
[5cc300f]29 <!ENTITY libreoffice-buildsize "6.4 GB (756 MB installed). Installing the whole set of languages was previously reported to require up to 26 GB (2.9 GB installed)">
[05800b9]30
[afff6997]31 <!-- for 6.1.2.1 I allowed 2 SBU for downloads, my total was
[05800b9]32 64.76 SBU with fast downloads
[5cc300f]33 for 6.1.4.2 I just used the total time - bdubbs
[05800b9]34 -->
[5cc300f]35 <!ENTITY libreoffice-time "63 SBU with parallelism=4 including typical download time">
[33569f0f]36
[d2d3fc5]37]>
38
[cbdad90b]39<sect1 id="libreoffice" xreflabel="LibreOffice-&libreoffice-dlversion;">
[d2d3fc5]40 <?dbhtml filename="libreoffice.html"?>
41
42 <sect1info>
43 <othername>$LastChangedBy$</othername>
44 <date>$Date$</date>
45 </sect1info>
46
[d2bea743]47 <title>LibreOffice-&libreoffice-version;</title>
[d2d3fc5]48
49 <indexterm zone="libreoffice">
[8c853a1]50 <primary sortas="a-LibreOffice">LibreOffice</primary>
[d2d3fc5]51 </indexterm>
52
53 <sect2 role="package">
[fa29663]54 <title>Introduction to LibreOffice</title>
[d2d3fc5]55
56 <para>
[fa29663]57 <application>LibreOffice</application> is a full-featured office suite.
58 It is largely compatible with <application>Microsoft Office</application>
[8c853a1]59 and is descended from <application>OpenOffice.org</application>.
[d2d3fc5]60 </para>
61
[29dd48c]62 &lfs83_checked;
[d2d3fc5]63
64 <bridgehead renderas="sect3">Package Information</bridgehead>
65 <itemizedlist spacing="compact">
66 <listitem>
67 <para>
[9e1dd1b]68 Core Download: <ulink url="&libreoffice-core-download-http;"/>
[d2d3fc5]69 </para>
70 </listitem>
71 <listitem>
72 <para>
73 Core Download MD5 sum: &libreoffice-core-md5sum;
74 </para>
75 </listitem>
76 <listitem>
77 <para>
78 Core Download size: &libreoffice-core-size;
79 </para>
80 </listitem>
[c20bced]81 <listitem>
82 <para>
[9e1dd1b]83 Estimated disk space required: &libreoffice-buildsize;
[c20bced]84 </para>
85 </listitem>
86 <listitem>
87 <para>
[9e1dd1b]88 Estimated build time: &libreoffice-time;
[c20bced]89 </para>
90 </listitem>
[9e1dd1b]91 </itemizedlist>
92
93 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
94 <itemizedlist spacing="compact">
[c20bced]95 <listitem>
96 <para>
[9e1dd1b]97 Dictionaries: <ulink url="&libreoffice-dict-download-http;"/>
[c20bced]98 </para>
99 </listitem>
[c4e1c2a0]100
[c20bced]101 <listitem>
102 <para>
[9e1dd1b]103 Dictionaries MD5 sum: &libreoffice-dict-md5sum;
[c20bced]104 </para>
105 </listitem>
[c4e1c2a0]106
[c20bced]107 <listitem>
108 <para>
[9e1dd1b]109 Dictionaries size: &libreoffice-dict-size;
[c20bced]110 </para>
111 </listitem>
[c4e1c2a0]112
[d2d3fc5]113 <listitem>
114 <para>
[9e1dd1b]115 Help Files: <ulink url="&libreoffice-help-download-http;"/>
[d2d3fc5]116 </para>
117 </listitem>
[c4e1c2a0]118
[d2d3fc5]119 <listitem>
120 <para>
[9e1dd1b]121 Help Files MD5 sum: &libreoffice-help-md5sum;
[d2d3fc5]122 </para>
123 </listitem>
[c4e1c2a0]124
[c20bced]125 <listitem>
126 <para>
[9e1dd1b]127 Help Files size: &libreoffice-help-size;
[c20bced]128 </para>
129 </listitem>
[c4e1c2a0]130
[c20bced]131 <listitem>
132 <para>
[9e1dd1b]133 Translations: <ulink url="&libreoffice-translations-download-http;"/>
[c20bced]134 </para>
135 </listitem>
[c4e1c2a0]136
[c20bced]137 <listitem>
138 <para>
[9e1dd1b]139 Translations MD5 sum: &libreoffice-translations-md5sum;
[c20bced]140 </para>
141 </listitem>
[c4e1c2a0]142
[c20bced]143 <listitem>
144 <para>
[9e1dd1b]145 Translations size: &libreoffice-translations-size;
[c20bced]146 </para>
147 </listitem>
[0209dd4]148
[f4362f22]149
[10cbf37]150<!-- keep one commented patch, it's sure to again need one or more in a few months -->
[199671b8]151 <listitem>
[efc0d11]152 <para>
[10cbf37]153 Required patch to fix building with system <xref linkend="poppler"/> (all
[5cc300f]154 recent versions) and <xref linkend="boost"/>:
155 <ulink url="&patch-root;/libreoffice-&libreoffice-dlversion;-consolidated_fixes-1.patch"/>
[10cbf37]156 </para>
157 </listitem>
158
[c599277]159 <listitem>
160 <para>
161 Required patch to allow building against <xref linkend="openjdk"/>:
162 <ulink url="&patch-root;/libreoffice-&libreoffice-dlversion;-jdk11_fixes-1.patch"/>
163 </para>
164 </listitem>
165
[c20bced]166 </itemizedlist>
[fa29663]167 <bridgehead renderas="sect3">LibreOffice Dependencies</bridgehead>
[d2d3fc5]168
169 <bridgehead renderas="sect4">Required</bridgehead>
170 <para role="required">
[4392a40]171 <xref linkend="perl-archive-zip"/>,
[d97601a]172 <xref linkend="unzip"/>,
[c20bced]173 <xref linkend="wget"/>,
[d6d4ea1]174 <xref linkend="which"/>, and
[c20bced]175 <xref linkend="zip"/>
[d2d3fc5]176 </para>
177
178 <bridgehead renderas="sect4">Recommended</bridgehead>
179 <note>
180 <para>
[601a838]181 Most of these packages are recommended because if they're not installed,
[ceadeab]182 the build process will compile and install its own (often older)
[d8ddab5]183 version, with the side effect of increasing build and installed disk
184 space and build time.
[d2d3fc5]185 </para>
186 </note>
187
188 <para role="recommended">
[909868fa]189 <xref linkend="apache-ant"/>,
[d8ddab5]190 <xref linkend="apr"/>,
[541e056]191 <xref linkend="boost"/>,
[7f5a588]192 <xref linkend="clucene"/>,
[87dfe6b]193 <xref linkend="cups"/>,
[c20bced]194 <xref linkend="curl"/>,
[059ff67]195 <xref linkend="dbus-glib"/>,
[76df61c]196 <xref linkend="libjpeg"/>,
197 <xref linkend="glu"/>,
[2a75b9b]198 <xref linkend="graphite2"/>,
[c20bced]199 <xref linkend="gst10-plugins-base"/>,
[ae93d7e]200 <xref linkend="gtk3"/> and
201 <xref linkend="gtk2"/> (see <quote>Command Explanations</quote>),
[2a75b9b]202 <xref linkend="harfbuzz"/>,
[efc0d11]203 <xref linkend="icu"/>,
[d8ddab5]204 <xref linkend="libatomic_ops"/>,
[c20bced]205 <xref linkend="lcms2"/>,
[d2d3fc5]206 <xref linkend="librsvg"/>,
[c20bced]207 <xref linkend="libxml2"/> and
208 <xref linkend="libxslt"/>,
[7a395d1]209 <xref linkend="mesa"/>,
[d2d3fc5]210 <xref linkend="neon"/>,
211 <xref linkend="nss"/>,
[86d09e6]212 <xref linkend="openldap"/> (if connecting to an LDAP server),
[be307b9]213 <xref linkend="poppler"/>,
[d8ddab5]214 <xref linkend="postgresql"/>,
215 <xref linkend="redland"/>,
216 <xref linkend="serf"/>, and
[c20bced]217 <xref linkend="unixodbc"/>
[d2d3fc5]218 </para>
219
220 <bridgehead renderas="sect4">Optional</bridgehead>
221 <para role="optional">
[4469169]222 <xref linkend="avahi"/>,
[c20bced]223 <xref linkend="bluez"/>,
[d8ddab5]224 <xref linkend="dconf"/>,
[a76bd33]225 <xref linkend="desktop-file-utils"/>,
[4469169]226 <xref linkend="doxygen"/> (not relevant if using --disable-odk),
[f4bb9987]227 <xref linkend="gdb"/>,
[94b42903]228 <xref linkend="gnutls"/>,
[c084a2a]229<!-- not anymore in the book, but included in apache-ant
230 <xref linkend="junit"/>, -->
[9e04432]231<!-- <xref linkend="kdelibs"/>, -->
[b33ea6fa]232 <xref linkend="mariadb"/> or <ulink url="http://www.mysql.com/">MySQL</ulink>,
233 <xref linkend="mitkrb"/>,
[037fc0be]234 <xref linkend="nasm"/>,
[b33ea6fa]235 <xref linkend="sane"/>,
[037fc0be]236 <xref linkend="valgrind"/>,
[b33ea6fa]237 <xref linkend="vlc"/>,
[037fc0be]238 <ulink url="https://commons.apache.org/proper/commons-codec/">Apache Commons Codec</ulink>,
239 <ulink url="https://hc.apache.org/httpclient-3.x/">Apache Commons HttpClient</ulink>,
240 <ulink url="https://commons.apache.org/proper/commons-lang/">Apache Commons Lang</ulink>,
241 <ulink url="https://commons.apache.org/proper/commons-logging/">Apache Commons Logging</ulink>,
242 <ulink url="http://www.beanshell.org/">BeanShell</ulink>,
[64812ba3]243 <ulink url="https://projects.coin-or.org/CoinMP/">CoinMP</ulink>,
[b33ea6fa]244 <ulink url="http://sourceforge.net/projects/cppunit/">Cppunit</ulink>,
[037fc0be]245 <ulink url="http://www.firebirdsql.org/">Firebird</ulink>,
[64419b7]246 <ulink url="http://downloads.sourceforge.net/glew/">glew (OpenGL Extension Wrangler Library)</ulink>,
[d8ddab5]247 <ulink url="https://github.com/behdad/glyphy">glyphy</ulink>,
[037fc0be]248 <ulink url="http://ftp.gnome.org/pub/gnome/sources/gnome-vfs/">Gnome VFS</ulink>,
249
[0e719c4]250 <ulink url="https://github.com/hamcrest/JavaHamcrest/releases">hamcrest</ulink>,
251 <ulink url="https://hunspell.github.io/">Hunspell</ulink>,
[b33ea6fa]252 <ulink url="http://sourceforge.net/projects/hunspell/files/Hyphen/">Hyphen</ulink>,
[0e719c4]253 <ulink url="http://include-what-you-use.org/">iwyu</ulink>,
[5892480]254 <ulink url="https://wiki.documentfoundation.org/DLP/Libraries/libabw">libabw</ulink>,
255 <ulink url="https://wiki.documentfoundation.org/DLP/Libraries/libcdr">libcdr</ulink>,
[83bc811e]256 <ulink url="http://sourceforge.net/projects/libcmis/">libcmis</ulink>,
[b33ea6fa]257 <ulink url="http://www.sourceforge.net/projects/libebook/">libebook</ulink>,
[7313b4b]258 <ulink url="https://wiki.documentfoundation.org/Libexttextcat">libexttextcat</ulink>,
[5892480]259 <ulink url="https://wiki.documentfoundation.org/DLP/Libraries/libfreehand">libfreehand</ulink>,
[0191062b]260 <ulink url="http://tagoh.bitbucket.org/liblangtag/">liblangtag</ulink>,
[5892480]261 <ulink url="https://wiki.documentfoundation.org/DLP/Libraries/libmspub">libmspub</ulink>,
[b33ea6fa]262 <ulink url="http://sourceforge.net/projects/libmwaw/">libmwaw</ulink>,
[885af2e]263 <ulink url="http://sourceforge.net/projects/libwpd/files/libodfgen/">libodfgen</ulink>,
[5892480]264 <ulink url="https://wiki.documentfoundation.org/DLP/Libraries/libpagemaker">libpagemaker</ulink>,
[64419b7]265 <ulink url="http://sourceforge.net/projects/libwpd/files/librevenge/">librevenge (WordPerfect Document importer)</ulink>,
[5892480]266 <ulink url="https://wiki.documentfoundation.org/DLP/Libraries/libvisio">libvisio</ulink>,
[b33ea6fa]267 <ulink url="http://libwpd.sourceforge.net/">libwpd</ulink>,
268 <ulink url="http://libwpg.sourceforge.net/">libwpg</ulink>,
269 <ulink url="http://libwps.sourceforge.net/">libwps</ulink>,
270 <ulink url="http://lpsolve.sourceforge.net/">lp_solve</ulink>,
[0e719c4]271 <ulink url="https://gitlab.com/mdds/mdds">mdds</ulink>,
[d97601a]272 <ulink url="http://sourceforge.net/projects/hunspell/files/MyThes/">MyThes</ulink>,
[64419b7]273 <ulink url="http://sourceforge.net/projects/ogl-math/">ogl-math - OpenGL Mathematics (GLM)</ulink>,
[64812ba3]274 <ulink url="https://github.com/KhronosGroup/OpenCOLLADA/">OpenCOLLADA</ulink>,
[037fc0be]275 <ulink url="https://gitlab.com/orcus/orcus">Orcus</ulink>,
[534c8e9]276 <phrase revision="sysv"><ulink url="http://telepathy.freedesktop.org/releases/telepathy-glib/">telepathy-glib</ulink></phrase>
277 <phrase revision="systemd"><xref linkend="telepathy-glib"/></phrase>,
[037fc0be]278 <ulink url="https://ukoethe.github.io/vigra/">VIGRA</ulink>, and
[534c8e9]279 <phrase revision="sysv"><ulink url="&gnome-download-http;/zenity/">Zenity</ulink></phrase>
280 <phrase revision="systemd"><xref linkend="zenity"/></phrase>
[d2d3fc5]281 </para>
282
[f4bb9987]283 <para>There are many optional dependencies not listed here. They can be
284 found in <quote>download.lst</quote> (source directory).
285 </para>
286
[d2d3fc5]287 <para condition="html" role="usernotes">
288 User Notes: <ulink url="&blfs-wiki;/libreoffice"/>
289 </para>
290 </sect2>
291
292 <sect2 role="installation">
[fa29663]293 <title>Installation of LibreOffice</title>
[2dc8feb]294
[89e6d61]295 <important>
[7d38d9a]296 <para>
[7313b4b]297 Unlike the other packages, we assume that you have not yet unpacked the
298 package. This is because the <option>--no-overwrite-dir</option>
[d8ddab5]299 switch is needed in case you unpack as the <systemitem
300 class="username">root</systemitem> user.
[7d38d9a]301 </para>
[89e6d61]302 </important>
[7d38d9a]303
304<screen><userinput>tar -xf libreoffice-&libreoffice-dlversion;.tar.xz --no-overwrite-dir &amp;&amp;
[c20bced]305cd libreoffice-&libreoffice-dlversion;</userinput></screen>
[d97601a]306
[5cc300f]307<!-- keep a commented instruction if no patches are currently required -->
308 <para> <!-- for all recent versions -->
309 Fix build failures introduced by recent versions of <xref linkend="poppler"/>
310 and <xref linkend="boost"/>:
311 </para>
312
313<screen><userinput>patch -Np1 -i ../libreoffice-&libreoffice-dlversion;-consolidated_fixes-1.patch</userinput></screen>
314
[c599277]315 <para>
316 Fix a build failure introduced by recent versions of
317 <xref linkend="openjdk"/>:
318 <!-- Needed for OpenJDK-11.0.2+7 AND 9 - removed method calls -->
319 </para>
320
321<screen><userinput>patch -Np1 -i ../libreoffice-&libreoffice-dlversion;-jdk11_fixes-1.patch</userinput></screen>
322
[d2d3fc5]323 <para>
[7f380f4]324 Create symlinks to tarballs from the source directory so they won't
325 get downloaded again:
[d2d3fc5]326 </para>
327
[420c072]328<screen><userinput>install -dm755 external/tarballs &amp;&amp;
[89e6d61]329ln -sv ../../../libreoffice-dictionaries-&libreoffice-dlversion;.tar.xz external/tarballs/ &amp;&amp;
330ln -sv ../../../libreoffice-help-&libreoffice-dlversion;.tar.xz external/tarballs/</userinput></screen>
[d2d3fc5]331
[ed2cf3c]332 <para>
333 If you have downloaded the translations tarball, create a symlink:
334 </para>
335
[89e6d61]336<screen><userinput>ln -sv ../../../libreoffice-translations-&libreoffice-dlversion;.tar.xz external/tarballs/</userinput></screen>
[d2d3fc5]337
[c20bced]338 <note>
339 <para>
340 During the build process, some packages will be downloaded (including
341 the ones listed as recommended and optional dependencies) if they are
[89e6d61]342 not present on the system. Because of this, build time may vary from the
343 published time more than usual.
[c20bced]344 </para>
345 </note>
[0d7900a]346
[0c77b5ab]347 <para>
348 Due to the large size of the package, you may prefer to install it in
[d83f555]349 <filename class="directory">/opt</filename>, instead of
[14ea7e8]350 <filename class="directory">/usr</filename>. Depending on your choice,
351 replace <replaceable>&lt;PREFIX&gt;</replaceable> by
352 <filename class="directory">/usr</filename> or by
[0c77b5ab]353 <filename class="directory">/opt/libreoffice-&libreoffice-dlversion;</filename>:
354 </para>
355
356<screen><userinput>export LO_PREFIX=<replaceable>&lt;PREFIX&gt;</replaceable></userinput></screen>
[10cbf37]357
[7f380f4]358 <para>
[d2bea743]359 Locales "fr" and "en-GB", you will find below, are just examples; you
[7f380f4]360 should change them to suit your needs - you might want to read the
361 "Command Explanations", further below, before proceeding.
362 </para>
363
[0c77b5ab]364 <para>
365 Prepare <application>LibreOffice</application> for compilation by running
366 the following commands:
[d2d3fc5]367 </para>
368
[64812ba3]369<screen><userinput>sed -e "/gzip -f/d" \
[c20bced]370 -e "s|.1.gz|.1|g" \
[7f380f4]371 -i bin/distro-install-desktop-integration &amp;&amp;
[ed2cf3c]372
[5153eb9]373sed -e "/distro-install-file-lists/d" -i Makefile.in &amp;&amp;
[14ea7e8]374
[0c77b5ab]375./autogen.sh --prefix=$LO_PREFIX \
[14ea7e8]376 --sysconfdir=/etc \
[d8ddab5]377 --with-vendor=BLFS \
[201a54c]378 --with-lang='fr en-GB' \
[14ea7e8]379 --with-help \
[7f380f4]380 --with-myspell-dicts \
[14ea7e8]381 --with-alloc=system \
[cc9c627]382 --without-junit \
[7f380f4]383 --without-system-dicts \
[d8ddab5]384 --disable-dconf \
[14ea7e8]385 --disable-odk \
386 --enable-release-build=yes \
[5153eb9]387 --enable-python=system \
[d8ddab5]388 --with-system-apr \
[541e056]389 --with-system-boost \
[14ea7e8]390 --with-system-cairo \
[d8ddab5]391 --with-system-clucene \
[14ea7e8]392 --with-system-curl \
393 --with-system-expat \
[2a75b9b]394 --with-system-graphite \
[14ea7e8]395 --with-system-harfbuzz \
[3d3bcee]396 --with-system-icu \
[14ea7e8]397 --with-system-jpeg \
398 --with-system-lcms2 \
[d8ddab5]399 --with-system-libatomic_ops \
[14ea7e8]400 --with-system-libpng \
401 --with-system-libxml \
402 --with-system-neon \
403 --with-system-nss \
404 --with-system-odbc \
405 --with-system-openldap \
[541e056]406 --with-system-openssl \
[be307b9]407 --with-system-poppler \
[d8ddab5]408 --with-system-postgresql \
[14ea7e8]409 --with-system-redland \
[d8ddab5]410 --with-system-serf \
[ff13fdc2]411 --with-system-zlib</userinput></screen>
[ceadeab]412
[d2d3fc5]413 <para>
[c20bced]414 The instructions below will only build the package without running
415 any unit tests. If you prefer to run the unit tests, replace
[34fbc15b]416 <command>make build-nocheck</command> with <command>make build</command>
417 or (as a regular user only) just <command>make</command>, but do not be
418 surprised if a unit test fails right at the end of the build and
419 breaks it.
[d2d3fc5]420 </para>
421
422 <para>
[33569f0f]423 Build the package:
[d2d3fc5]424 </para>
425
[c1b5118]426<screen><userinput>CPPFLAGS='-DU_USING_ICU_NAMESPACE=1' make build-nocheck</userinput></screen>
[d2d3fc5]427
428 <para>
[c20bced]429 Now, as the <systemitem class="username">root</systemitem> user:
[d2d3fc5]430 </para>
431
[34fbc15b]432<screen role="root"><userinput>make distro-pack-install</userinput></screen>
[c20bced]433
[d83f555]434 <para>
[cbdad90b]435 If installed in <filename
436 class="directory">/opt/libreoffice-&libreoffice-dlversion;</filename>
[64812ba3]437 some additional steps are necessary. Issue the following commands, as
438 <systemitem class="username">root</systemitem> user:
[d83f555]439 </para>
440
[cbdad90b]441<screen role="root"><userinput>if [ "$LO_PREFIX" != "/usr" ]; then
[89e6d61]442
[64812ba3]443 # This symlink is necessary for the desktop menu entries
[e43a76ca]444 ln -svf $LO_PREFIX/lib/libreoffice/program/soffice /usr/bin/libreoffice &amp;&amp;
[cbdad90b]445
[29dd48c]446 # Set up a generic location independent of version number
447 ln -sfv $LO_PREFIX /opt/libreoffice
448
[64812ba3]449 # Icons
[20f09631]450 mkdir -vp /usr/share/pixmaps
[63e837a6]451 for i in $LO_PREFIX/share/icons/hicolor/32x32/apps/*; do
[64812ba3]452 ln -svf $i /usr/share/pixmaps
[defca61]453 done &amp;&amp;
[cbdad90b]454
[64812ba3]455 # Desktop menu entries
[e43a76ca]456 for i in $LO_PREFIX/lib/libreoffice/share/xdg/*; do
457 ln -svf $i /usr/share/applications/libreoffice-$(basename $i)
458 done &amp;&amp;
[64812ba3]459
460 # Man pages
461 for i in $LO_PREFIX/share/man/man1/*; do
[e43a76ca]462 ln -svf $i /usr/share/man/man1/
[5a3365b]463 done
464
[e43a76ca]465 unset i
[a76bd33]466fi</userinput></screen>
[64812ba3]467
[a76bd33]468 <para>
469 If you have installed <xref linkend="desktop-file-utils"/>, and you wish
470 to update the MIME database, issue, as the <systemitem class="username">
471 root</systemitem> user:
472 </para>
473
474<screen role="root"><userinput>update-desktop-database</userinput></screen>
[d83f555]475
[514797f]476 <para>
477 The suite and main modules can be started from the menu. From a terminal,
478 the suite can be started with <command>libreoffice</command> command and
479 the modules with <command>libreoffice
480 --<replaceable>&lt;module&gt;</replaceable></command> command,
481 respectively, where <replaceable>&lt;module&gt;</replaceable> is one of
482 base, calc, draw, impress, math or writer. Modules cannot be started using
483 their shell starting script names (see "Installed Programs", below), if
[7313b4b]484 LO_PREFIX is other than <filename class='directory'>/usr</filename>,
[514797f]485 unless <filename class='directory'>$LO_PREFIX/bin</filename> directory is
486 appended to the PATH.
487 </para>
488
[c20bced]489 </sect2>
490
491 <sect2 role="commands">
492 <title>Command Explanations</title>
[4c796cf]493
[d2d3fc5]494 <para>
[89e6d61]495 <command>sed -e ...</command>: The first sed prevents compression of the
[7313b4b]496 manual pages and the second one prevents the install from failing.
[ed2cf3c]497 </para>
498
[d2d3fc5]499 <para>
[ed2cf3c]500 <parameter>--with-vendor=BLFS</parameter>: This switch sets BLFS as
[be307b9]501 the vendor which is mentioned when you click "About" from the Help menu
502 on the toolbar.
[d2d3fc5]503 </para>
[4c796cf]504
[ed2cf3c]505 <para>
[201a54c]506 <parameter>--with-lang='fr en-GB'</parameter>: This switch sets
[ffc716b]507 what languages to support. To list several languages, separate them with
508 a space. For all languages, use
509 <parameter>--with-lang=ALL</parameter>.
[ed2cf3c]510 </para>
511
[7f380f4]512 <note>
513 <para>
[01c0bb8]514 For a list of the available languages, look in
515 <filename>solenv/inc/langlist.mk</filename>.
[7f380f4]516 </para>
517 </note>
[ffc716b]518
519 <para>
520 <parameter>--with-help</parameter>: Without this switch, the help files
521 are not built.
[d2d3fc5]522 </para>
523
[7f380f4]524 <para>
525 <parameter>--with-myspell-dicts</parameter>: This switch adds myspell
526 dictionaries to the <application>LibreOffice</application> installation
527 set.
528 </para>
529
[d2d3fc5]530 <para>
[c20bced]531 <parameter>--with-alloc=system</parameter>: This switch tells
[7313b4b]532 <application>LibreOffice</application> to use the system allocator
533 instead of its internal one.
[d2d3fc5]534 </para>
535
[d8ddab5]536 <para>
[cc9c627]537 <parameter>--with-system-boost</parameter>: This switch enables using
538 system boost. From time to time, recent versions of boost break
539 the build of libreoffice. In this case, it is possible to use the
540 bundled copy of boost, by removing this flag.
[d8ddab5]541 </para>
542
543 <para>
544 <parameter>--disable-dconf</parameter>: This switch disables compiling
545 <application>LibreOffice</application> with the
546 <application>GNOME DConf</application> configuration system support.
547 </para>
[28370fe]548
[7f380f4]549 <para>
[b4bff899]550 <parameter>--without-junit</parameter>: This switch disables the tests
[f0506d09]551 for the deprecated HSQLDB driver which is written in Java. If you wish
[b4bff899]552 to build this driver replace this switch with the set of switches
553 described below under '--with-java'.
[7f380f4]554 </para>
555
[d2d3fc5]556 <para>
[cc9c627]557 <parameter>--without-system-dicts</parameter>: This switch disables use
558 of dictionaries from system paths, so the ones installed by this package
559 are used.
[5b9edb4]560 </para>
561
[d2d3fc5]562 <para>
[92b7b3a]563 <parameter>--disable-odk</parameter>: This switch disables installing the
[c20bced]564 office development kit. Remove if you want to develop a
565 <application>LibreOffice</application> based application.
[d2d3fc5]566 </para>
567
[4469169]568 <para>
569 <parameter>--enable-release-build=yes</parameter>: This switch enables a
[7f380f4]570 Release Build. <application>LibreOffice</application> can be built as a
571 Release Build or as a Developer Build, because their default installation
572 paths and user profile paths are different. Developer Build displays the
573 words "Dev" and "Beta" in several places (e.g, menu and splash screen).
[4469169]574 </para>
[d2d3fc5]575
576 <para>
[c20bced]577 <parameter>--enable-python=system</parameter>: This switch tells
578 <application>LibreOffice</application> to use installed
[7f380f4]579 <application>Python 3</application> to build the translations instead of
580 the bundled one.
[d2d3fc5]581 </para>
582
583 <para>
[92b7b3a]584 <parameter>--with-system-*</parameter>: These switches prevent
[c20bced]585 <application>LibreOffice</application> from trying to compile its own
586 versions of these dependencies. If you've not installed some of the
587 dependencies, remove the corresponding switches.
[d2d3fc5]588 </para>
[8c853a1]589
[488b738f]590 <para>
[c1b5118]591 <command>CPPFLAGS='-DU_USING_ICU_NAMESPACE=1' make ...</command>: <xref
[488b738f]592 linkend="icu"/> has removed an implicit namespace <quote>using</quote>
[c1b5118]593 from its headers files. Setting <envar>U_USING_ICU_NAMESPACE</envar> to
[488b738f]594 1 allows to restore the former behavior, which is required for building
595 <application>libreoffice</application>.
596 </para>
597
[c20bced]598 <para>
[cc9c627]599 <option>--with-parallelism=&lt;count&gt;</option>: This switch
[ff13fdc2]600 tells <application>LibreOffice</application> to use &lt;count&gt; CPU
601 cores to compile in parallel. (Do not include literal angle brackets.)
[cc9c627]602 The default is to use all available cores on the system.
[c20bced]603 </para>
604
[87dfe6b]605 <para>
606 <option>--disable-cups</option>: Use this switch if you don't need
607 printing support.
608 </para>
609
[54666831]610 <para>
[7f380f4]611 <option>--disable-dbus</option>: Use this switch if you've not installed
612 D-Bus-1.8.0 or later. It also disables Bluetooth support and font install
613 via PackageKit.
[54666831]614 </para>
615
[1cbfd1a]616 <para>
[011ed8fa]617 <option>--disable-firebird-sdbc</option>: By default, the ability to
[1cbfd1a]618 connect to a <application>firebird</application> database is enabled.
[011ed8fa]619 Add this switch if you do not need that feature.
620 </para>
[1cbfd1a]621
[c20bced]622 <para>
[64812ba3]623 <option>--disable-gstreamer-1-0</option>: Use this switch if you have not
624 installed <xref linkend="gst10-plugins-base"/>.
[7f380f4]625 </para>
626
[ae93d7e]627 <para>
[5339d21]628 <option>--disable-gtk3</option>: Use this switch if you have not installed
629 <application>GTK+-3</application>, or if you have installed it but wish
630 to use <application>GTK+-2</application> (the menu icons differ).
631 Note that a <application>GTK+-3</application> build still
[ae93d7e]632 requires <application>GTK+-2</application> to build the gtk-plugin.
633 </para>
634
[d8ddab5]635 <para>
636 <option>--disable-postgresql-sdbc</option>: This switch disables compiling
637 <application>LibreOffice</application> with the ability to connect to a
[63e837a6]638 <application>PostgreSQL</application> database. Use it if you have not
639 installed <application>PostgreSQL</application> and you do not want
640 <application>LibreOffice</application> to compile its bundled copy.
[d8ddab5]641 </para>
642
[cc9c627]643 <para>
[b4bff899]644 <option>--with-java</option>: This switch enables
[cc9c627]645 <application>Java</application> support in
[b4bff899]646 <application>LibreOffice</application>. Java is needed for the
647 deprecated HSQLDB driver, which allows reading databases created by
648 other programs or in earlier versions of libreoffice
[f0506d09]649 <application>base</application>. You may also need to add:
[c084a2a]650 <option>--with-junit=/opt/ant/lib/junit-4.12.jar</option>
[f0506d09]651 <option>--with-jdk-home=/opt/jdk</option>
[c084a2a]652 <option>--with-hamcrest=/opt/ant/lib/hamcrest-core-1.3.jar</option>
[cc9c627]653 </para>
654
[f0506d09]655 <para>
656 <option>--without-fonts</option>: <application>LibreOffice</application>
657 includes a number of third-party TrueType fonts. If you have already
658 installed some or all of the same fonts, you may prefer to use the system
659 versions.
660 </para>
661
[be307b9]662 <para>
663 <parameter>make distro-pack-install</parameter>: this does a normal
664 install, but if you add a DESTDIR environment variable it will also
665 install a lot of (text) gid_Module_* files in the DESTDIR, to help
666 distributions which want to break the package into parts.
667 </para>
668
[d2d3fc5]669 </sect2>
670
671 <sect2 role="content">
672 <title>Contents</title>
673
674 <segmentedlist>
675 <segtitle>Installed Programs</segtitle>
[c3c56b2]676 <segtitle>Installed Libraries</segtitle>
[8c853a1]677 <segtitle>Installed Directory</segtitle>
[d2d3fc5]678
679 <seglistitem>
[4c796cf]680 <seg>
[c20bced]681 libreoffice, lobase, localc, lodraw, loffice, lofromtemplate,
[4469169]682 loimpress, lomath, loweb, lowriter, soffice and unopkg;
683 several programs under
[0c77b5ab]684 $LO_PREFIX/lib/libreoffice/program
[8c853a1]685 </seg>
[c3c56b2]686 <seg>
[4469169]687 several libraries under
[ff7ea587]688 $LO_PREFIX/lib/libreoffice/program
[c3c56b2]689 </seg>
[d2d3fc5]690 <seg>
[0c77b5ab]691 $LO_PREFIX/lib/libreoffice
[d2d3fc5]692 </seg>
693 </seglistitem>
694 </segmentedlist>
695
696 <variablelist>
697 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
698 <?dbfo list-presentation="list"?>
699 <?dbhtml list-presentation="table"?>
700
[514797f]701 <varlistentry id="libreoffice-suite">
702 <term><command>libreoffice (or soffice)</command></term>
703 <listitem>
704 <para>
705 is the main libreofice suite (symlink to
706 $LO_PREFIX/lib/libreoffice/program/soffice).
707 </para>
708 <indexterm zone="libreoffice libreoffice-suite">
709 <primary sortas="b-libreoffice-suite">libreoffice-suite</primary>
710 </indexterm>
711 </listitem>
712 </varlistentry>
713
[c20bced]714 <varlistentry id="lobase">
715 <term><command>lobase</command></term>
[d2d3fc5]716 <listitem>
717 <para>
[514797f]718 is the database manager module shell starting script.
[d2d3fc5]719 </para>
[c20bced]720 <indexterm zone="libreoffice lobase">
721 <primary sortas="b-lobase">lobase</primary>
[d2d3fc5]722 </indexterm>
723 </listitem>
724 </varlistentry>
725
[c20bced]726 <varlistentry id="localc">
727 <term><command>localc</command></term>
[d2d3fc5]728 <listitem>
729 <para>
[514797f]730 is the spreadsheet module shell starting script.
[d2d3fc5]731 </para>
[c20bced]732 <indexterm zone="libreoffice localc">
733 <primary sortas="b-localc">localc</primary>
[d2d3fc5]734 </indexterm>
735 </listitem>
736 </varlistentry>
737
[c20bced]738 <varlistentry id="lodraw">
739 <term><command>lodraw</command></term>
[d2d3fc5]740 <listitem>
741 <para>
[514797f]742 is the vector graphics editor and diagramming tool module shell
743 starting script.
[d2d3fc5]744 </para>
[c20bced]745 <indexterm zone="libreoffice lodraw">
746 <primary sortas="b-lodraw">lodraw</primary>
[d2d3fc5]747 </indexterm>
748 </listitem>
749 </varlistentry>
750
[c20bced]751 <varlistentry id="loimpress">
752 <term><command>loimpress</command></term>
[d2d3fc5]753 <listitem>
754 <para>
[514797f]755 is the (PowerPoint) presentations editor and displayer
756 module shell starting script.
[d2d3fc5]757 </para>
[c20bced]758 <indexterm zone="libreoffice loimpress">
759 <primary sortas="b-loimpress">loimpress</primary>
[d2d3fc5]760 </indexterm>
761 </listitem>
762 </varlistentry>
763
[c20bced]764 <varlistentry id="lomath">
765 <term><command>lomath</command></term>
[d2d3fc5]766 <listitem>
767 <para>
[514797f]768 is the mathematical formula editor module shell starting script.
[d2d3fc5]769 </para>
[c20bced]770 <indexterm zone="libreoffice lomath">
771 <primary sortas="b-lomath">lomath</primary>
[d2d3fc5]772 </indexterm>
773 </listitem>
774 </varlistentry>
775
[006bd37]776 <varlistentry id="loweb">
777 <term><command>loweb</command></term>
778 <listitem>
779 <para>
780 is the HTML editor module shell starting script.
781 </para>
782 <indexterm zone="libreoffice loweb">
783 <primary sortas="b-loweb">loweb</primary>
784 </indexterm>
785 </listitem>
786 </varlistentry>
787
[c20bced]788 <varlistentry id="lowriter">
789 <term><command>lowriter</command></term>
[2511f83]790 <listitem>
791 <para>
[514797f]792 is the word processor module shell starting script.
[2511f83]793 </para>
[c20bced]794 <indexterm zone="libreoffice lowriter">
795 <primary sortas="b-lowriter">lowriter</primary>
[2511f83]796 </indexterm>
797 </listitem>
798 </varlistentry>
799
[8d5cd1bb]800 <varlistentry id="unopkg">
801 <term><command>unopkg</command></term>
802 <listitem>
803 <para>
[fa29663]804 is a tool to manage <application>LibreOffice</application>
[63e837a6]805 extensions from the command line.
[8d5cd1bb]806 </para>
807 <indexterm zone="libreoffice unopkg">
808 <primary sortas="b-unopkg">unopkg</primary>
809 </indexterm>
810 </listitem>
811 </varlistentry>
812
[d2d3fc5]813 </variablelist>
[8c853a1]814
[d2d3fc5]815 </sect2>
[8c853a1]816
[d2d3fc5]817</sect1>
Note: See TracBrowser for help on using the repository browser.