source: xsoft/office/libreoffice.xml@ e1827ca

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 12.2 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gimp3 gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/for-12.3 xry111/intltool xry111/llvm18 xry111/soup3 xry111/spidermonkey128 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since e1827ca was f76286d, checked in by Krejzi <krejzi@…>, 12 years ago

Mark Libreoffice as LFS 7.2 checked. Add a patch that fixes compilation with system poppler.

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

  • Property mode set to 100644
File size: 18.4 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
7 <!ENTITY libreoffice-core-download-http
[fa29663]8 "http://download.documentfoundation.org/libreoffice/src/&libreoffice-version;/libreoffice-core-&libreoffice-version;.4.tar.xz">
[d2d3fc5]9 <!ENTITY libreoffice-core-download-ftp " ">
[fa29663]10 <!ENTITY libreoffice-core-md5sum "67cf97e86c75363238a371f64ef5f606">
11 <!ENTITY libreoffice-core-size "102 MB">
12 <!ENTITY libreoffice-buildsize "7.1 GB (446 MB installed)">
13 <!ENTITY libreoffice-time "55 SBU">
[d2d3fc5]14]>
15
[fa29663]16<sect1 id="libreoffice" xreflabel="libreoffice-&libreoffice-version;">
[d2d3fc5]17 <?dbhtml filename="libreoffice.html"?>
18
19 <sect1info>
20 <othername>$LastChangedBy$</othername>
21 <date>$Date$</date>
22 </sect1info>
23
[fa29663]24 <title>libreoffice-&libreoffice-version;</title>
[d2d3fc5]25
26 <indexterm zone="libreoffice">
27 <primary sortas="a-libreoffice">libreoffice</primary>
28 </indexterm>
29
30 <sect2 role="package">
[fa29663]31 <title>Introduction to LibreOffice</title>
[d2d3fc5]32
33 <para>
[fa29663]34 <application>LibreOffice</application> is a full-featured office suite.
35 It is largely compatible with <application>Microsoft Office</application>
36 and is descended from OpenOffice.org.
[d2d3fc5]37 </para>
38
[f76286d]39 &lfs72_checked;
[d2d3fc5]40
41 <bridgehead renderas="sect3">Package Information</bridgehead>
42 <itemizedlist spacing="compact">
43 <listitem>
44 <para>
45 Core Download (HTTP): <ulink url="&libreoffice-core-download-http;"/>
46 </para>
47 </listitem>
48 <listitem>
49 <para>
50 Core Download (FTP): <ulink url="&libreoffice-core-download-ftp;"/>
51 </para>
52 </listitem>
53 <listitem>
54 <para>
55 Core Download MD5 sum: &libreoffice-core-md5sum;
56 </para>
57 </listitem>
58 <listitem>
59 <para>
60 Core Download size: &libreoffice-core-size;
61 </para>
62 </listitem>
63 <listitem>
64 <para>
65 Estimated disk space required: &libreoffice-buildsize;
66 </para>
67 </listitem>
68 <listitem>
69 <para>
70 Estimated build time: &libreoffice-time;
71 </para>
72 </listitem>
73 </itemizedlist>
74
[05bcbfeb]75 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
76 <itemizedlist spacing="compact">
77 <listitem>
[f76286d]78 <para>Optional patch (required if you have Boost 1.50+): <ulink
[05bcbfeb]79 url="&patch-root;/libreoffice-core-&libreoffice-version;.4-boost_fix-1.patch"/></para>
80 </listitem>
[f76286d]81 <listitem>
82 <para>Optional patch (required if you are using system version of Poppler): <ulink
83 url="&patch-root;/libreoffice-core-&libreoffice-version;.4-poppler_fix-1.patch"/></para>
84 </listitem>
[05bcbfeb]85 </itemizedlist>
86
[fa29663]87 <bridgehead renderas="sect3">LibreOffice Dependencies</bridgehead>
[d2d3fc5]88
89 <bridgehead renderas="sect4">Required</bridgehead>
90 <para role="required">
[ceadeab]91 <xref linkend="cups"/>,
92 <xref linkend="curl"/> or <xref linkend="wget"/>,
93 <xref linkend="gperf"/>,
[d97601a]94 <xref linkend="gtk2"/> or <xref linkend="gtk3"/>,
95 <application>Perl Modules</application>
[ceadeab]96 <xref linkend="perl-archive-zip"/> and
97 <xref linkend="perl-xml-parser"/>,
[d97601a]98 <xref linkend="unzip"/>,
[ceadeab]99 <xref linkend="which"/> and
100 <xref linkend="zip"/>.
[d2d3fc5]101 </para>
102
103 <bridgehead renderas="sect4">Recommended</bridgehead>
104 <note>
105 <para>
[601a838]106 Most of these packages are recommended because if they're not installed,
[ceadeab]107 the build process will compile and install its own (often older)
[601a838]108 version. If you're using <application>GCC 4.7</application>, some of
[ceadeab]109 those older packages will fail to compile.
[d2d3fc5]110 </para>
111 </note>
112
113 <para role="recommended">
114 <xref linkend="boost"/>,
115 <xref linkend="db"/>,
116 <xref linkend="expat"/>,
[ceadeab]117 <xref linkend="gst-plugins-base"/>,
[d2d3fc5]118 <xref linkend="libjpeg"/>,
[d97601a]119 <xref linkend="libgsf"/>,
[d2d3fc5]120 <xref linkend="libpng"/>,
121 <xref linkend="librsvg"/>,
122 <xref linkend="libxml2"/> and <xref linkend="libxslt"/>,
123 <xref linkend="neon"/>,
124 <xref linkend="nss"/>,
[f76286d]125 <xref linkend="poppler"/>,
[fa29663]126 <xref linkend="openssl"/> and
[d2d3fc5]127 <xref linkend="redland"/>.
128 </para>
129
130 <bridgehead renderas="sect4">Optional</bridgehead>
131 <para role="optional">
[ceadeab]132 <ulink url="http://hunspell.sourceforge.net/">Hunspell</ulink>,
[4c796cf]133 <xref linkend="mysql"/>,
[d97601a]134 <ulink url="http://sourceforge.net/projects/hunspell/files/MyThes/">MyThes</ulink>,
[4c796cf]135 <xref linkend="postgresql"/>,
[d2d3fc5]136 <ulink url="http://sampleicc.sourceforge.net/">SampleICC</ulink>,
[d97601a]137 <ulink url="http://hci.iwr.uni-heidelberg.de/vigra">Vigra</ulink> and
[ceadeab]138 <xref linkend="zenity"/>.
[d2d3fc5]139 </para>
140
141 <para condition="html" role="usernotes">
142 User Notes: <ulink url="&blfs-wiki;/libreoffice"/>
143 </para>
144 </sect2>
145
146 <sect2 role="installation">
[fa29663]147 <title>Installation of LibreOffice</title>
[d2d3fc5]148
[d97601a]149 <warning>
150 <para>
[fa29663]151 Untaring the libreoffice-core-&libreoffice-version;.4 tarball as
[d97601a]152 <systemitem class="username">root</systemitem> has the curious effect of
153 changing the ownership of the <emphasis>parent</emphasis> directory
154 to a user with numerical id 11012 and with the permissions set to allow
155 read, write and execute for that user only! If you untared as
156 <systemitem class="username">root</systemitem> in your home folder you
[ceadeab]157 could end up unable to log in again :/ If you untared it in
[d97601a]158 <filename class="directory">/usr</filename> you would find your user
159 account unable to access any file in
[ceadeab]160 <filename class="directory">/usr</filename>.
[d97601a]161 </para>
162
163 <para>
164 You can avoid this unpleasantness by
165 <emphasis>not</emphasis> untaring it as
166 <systemitem class="username">root</systemitem>. If you must untar it as
167 <systemitem class="username">root</systemitem> pass the option
168 <option>--no-overwrite-dir</option> to tar. This is the default when you
169 untar as a user but has to be passed as an option when untaring as
170 <systemitem class="username">root</systemitem>:
171 </para>
172 </warning>
173
[fa29663]174<screen role="root"><userinput>tar -xf libreoffice-core-&libreoffice-version;.4.tar.xz --no-overwrite-dir &amp;&amp;
175cd libreoffice-core-&libreoffice-version;.4</userinput></screen>
[d97601a]176
[d2d3fc5]177 <para>
[fa29663]178 Install <application>LibreOffice</application> by running the following
[d2d3fc5]179 commands:
180 </para>
181
[fa29663]182<screen><userinput>patch -Np1 -i ../libreoffice-core-&libreoffice-version;.4-boost_fix-1.patch &amp;&amp;
[f76286d]183patch -Np1 -i ../libreoffice-core-&libreoffice-version;.4-poppler_fix-1.patch &amp;&amp;
[4c796cf]184./autogen.sh --prefix=/usr \
185 --disable-binfilter \
186 --disable-gconf \
187 --disable-mozilla \
188 --disable-odk \
189 --disable-postgresql-sdbc \
190 --with-system-boost \
191 --with-system-cairo \
192 --with-system-curl \
193 --with-system-db \
194 --with-system-expat \
195 --with-system-gettext \
196 --with-system-icu \
197 --with-system-jpeg \
198 --with-system-libpng \
199 --with-system-libxml \
200 --with-system-neon \
201 --with-system-nss \
[f76286d]202 --with-system-openssl \
203 --with-system-poppler \
[4c796cf]204 --with-system-redland \
205 --with-system-zlib \
206 --without-java \
[8e2c769]207 --with-num-cpus=$(getconf _NPROCESSORS_ONLN) &amp;&amp;
208./download &amp;&amp;
209mkdir -p ../libreoffice-downloads &amp;&amp;
210cp src/*.{xz,gz,txt,zip,bz2,tgz,jar,dll,oxt} \
211 src/*LICENSE* ../libreoffice-downloads &amp;&amp;
[d2d3fc5]212make</userinput></screen>
213
[8e2c769]214 <para>This package does not come with a test suite.</para>
[d2d3fc5]215
216 <para>
217 Now, as the <systemitem class="username">root</systemitem> user:
218 </para>
219
[e1d8846]220<screen role="root"><userinput>make install &amp;&amp;
221SOFFICE=/usr/lib/libreoffice/program/soffice &amp;&amp;
[d2d3fc5]222for program in base calc draw impress math writer
223do
[e1d8846]224 echo '#!/bin/bash' > /usr/bin/${program}
[604ba3d8]225 echo "exec ${SOFFICE} --nologo --${program} \"\${@}\"" >> /usr/bin/${program}
[d2d3fc5]226 chmod 755 /usr/bin/${program}
[e1d8846]227done &amp;&amp;
228unset SOFFICE &amp;&amp;
[604ba3d8]229ln -sfv ../lib/libreoffice/program/spadmin /usr/bin/printeradmin &amp;&amp;
230ln -sfv ../lib/libreoffice/program/unopkg /usr/bin &amp;&amp;
231cp sysui/desktop/man/{libreoffice,unopkg}.1 /usr/share/man/man1 &amp;&amp;
[d2d3fc5]232for res in 16 32 48 128 256
233do
234 mkdir -p /usr/share/icons/hicolor/${res}x${res}/{apps,mimetypes}
235 cp sysui/desktop/icons/hicolor/${res}x${res}/apps/*.png \
236 /usr/share/icons/hicolor/${res}x${res}/apps
237 cp sysui/desktop/icons/hicolor/${res}x${res}/mimetypes/*.png \
238 /usr/share/icons/hicolor/${res}x${res}/mimetypes
239done &amp;&amp;
240gtk-update-icon-cache /usr/share/icons/hicolor</userinput></screen>
241 </sect2>
242
243 <sect2 role="commands">
244 <title>Command Explanations</title>
245
[604ba3d8]246 <para>
[fa29663]247 <command>patch -Np1 -i
248 ../libreoffice-core-&libreoffice-version;.4-boost_fix-1.patch</command>:
249 Fixes linking to <application>Boost</application> 1.50.
[604ba3d8]250 </para>
[fa29663]251
[d2d3fc5]252 <para>
[a6af3ab9]253 <option>--enable-gtk3</option>: Add this option if you've installed and
[d2d3fc5]254 want to use <application>Gtk+-3</application>.
255 </para>
256
[ceadeab]257 <para>
[a6af3ab9]258 <option>--disable-gstreamer</option>: Add this option if you've not
[ceadeab]259 installed <xref linkend="gst-plugins-base"/>.
260 </para>
261
[d2d3fc5]262 <para>
263 <option>--disable-binfilter</option>: These "binfilters" enable
[fa29663]264 <application>LibreOffice</application> to open legacy
[d2d3fc5]265 <application>Star Office</application> format documents. Compiling
266 <application>binfilter</application> requires
267 <application>Java</application>.
268 </para>
269
270 <para>
[604ba3d8]271 <option>--disable-gconf</option>: Remove this option if you want to
[fa29663]272 compile LibreOffice with GConf support.
[d2d3fc5]273 </para>
274
275 <para>
276 <option>--disable-mozilla</option>: This option stops
[fa29663]277 <application>LibreOffice</application> trying to compile an old version
[d2d3fc5]278 of <application>SeaMonkey</application>.
279 </para>
280
281 <para>
[9a1c6a74]282 <option>--disable-odk</option>: This option disables installing the
[a6af3ab9]283 office development kit. Remove this option if you want to develop a
[fa29663]284 <application>LibreOffice</application> based application.
[d2d3fc5]285 </para>
286
[4c796cf]287 <para>
288 <option>--disable-postgresql-sdbc</option>: This option disables compiling
[fa29663]289 LibreOffice with the ability to connect to a PostgreSQL database. If you
290 would like LibreOffice to be able to connect to a PostgreSQL database
[4c796cf]291 remove this option. If you have installed PostgreSQL on your system and
[fa29663]292 would like LibreOffice to use that rather than compile its own copy, add
[4c796cf]293 the option <option>--with-system-postgresql</option>.
294 </para>
295
[d2d3fc5]296 <para>
[9a1c6a74]297 <option>--with-system- ...</option>: These options prevent
[fa29663]298 <application>LibreOffice</application> trying to compile its own
[a6af3ab9]299 versions of these dependencies. If you've not installed
300 some of the dependencies, remove the corresponding option.
[d2d3fc5]301 </para>
302
303 <para>
304 <option>--with-num-cpus=$(getconf _NPROCESSORS_ONLN)</option>: This option
[fa29663]305 tells <application>LibreOffice</application> to use all your CPUs to
[4c796cf]306 compile in parallel and speed up the build.
[d2d3fc5]307 </para>
308
309 <para>
310 <option>--with-lang="pt-BR"</option>: This option sets what languages to
[19d81f7]311 support. en-US is always included by default. To list several languages,
312 separate them with a space. For all languages, use --with-lang=ALL
[4c796cf]313 </para>
314
315 <para>
316 For a list of the available languages, configure it --with-lang=ALL and
317 then after you've run ./download:
318 <command>ls translations/source</command>
[d2d3fc5]319 </para>
320
321 <para>
322 <option>--without-java</option>: This option compiles
[fa29663]323 <application>LibreOffice</application> without
[d2d3fc5]324 <application>Java</application> support.
325 </para>
326
327 <para>
[5b9edb4]328 <option>--with-vendor=LFS-BLFS</option>: This option sets LFS-BLFS as the
329 vendor which is mentioned when you click About on the toolbar.
330 </para>
331
332 <para>
333 <command>./download</command>: The build process runs the
[8e2c769]334 <command>download</command> script which downloads some 470 MB of
335 tarballs. We run the download script to get it out of the way at the
[5b9edb4]336 start so we can make a backup copy of the downloaded files.
[d2d3fc5]337 </para>
338
339 <para>
[5b9edb4]340 <command>mkdir -p ../libreoffice-downloads;
[8e2c769]341 cp src/*.{xz,gz,txt,zip,bz2,tgz,jar,dll,oxt} src/*LICENSE*
342 ../libreoffice-downloads</command>: this makes a backup copy
[5b9edb4]343 of the downloaded files so you don't have to download them again if you
[fa29663]344 decide to recompile <application>LibreOffice</application>. In that case,
[5b9edb4]345 just start with:
346 <command>mkdir src; cp ../libreoffice-downloads/* src</command>
[d2d3fc5]347 </para>
348
349 <para>
350 <command>for program in base calc draw impress math writer ...</command>:
351 These commands create 6 simple shell scripts in
352 <filename class="directory">/usr/bin</filename> that can be used to launch
[fa29663]353 <application>LibreOffice</application> in its various forms. If you like
354 seeing the <application>LibreOffice</application> splash screen, remove
[4f304a0a]355 the "--nologo" option.
[d2d3fc5]356 </para>
357
358 <para>
359 <command>for res in 16 32 48 128 256 ...</command>: These commands copy
360 various icons into the hicolor icon theme used by
361 <application>Gtk+</application>.
362 </para>
363
364 <para>
365 <command>gtk-update-icon-cache /usr/share/icons/hicolor</command>: This
[a6af3ab9]366 command rebuilds
[9a1c6a74]367 <filename>/usr/share/icons/hicolor/icon-theme.cache</filename> to include
[a6af3ab9]368 the new icons.
[d2d3fc5]369 </para>
370 </sect2>
371
372 <sect2 role="configuration">
[fa29663]373 <title>Configuring LibreOffice</title>
[d2d3fc5]374
375 <para>
376 If you use a desktop environment like <application>Gnome</application>
377 or <application>KDE</application> and want the programs to show up in the
378 panel's menu, as the <systemitem class="username">root</systemitem> user,
379 create some simple desktop files:
380 </para>
381
[c099902d]382<screen role="root"><userinput>mkdir -p /usr/share/applications &amp;&amp;
383for program in base calc draw impress math writer
[d2d3fc5]384do echo "[Desktop Entry]
385Encoding=UTF-8
386Type=Application
387Name=${program^}
[fa29663]388Comment=LibreOffice ${program^}
[d2d3fc5]389Icon=${program}
390Exec=${program}
391Categories=Office;Application;
392StartupNotify=true
393Terminal=false" > /usr/share/applications/${program}.desktop
[4f304a0a]394done &amp;&amp;
395echo "[Desktop Entry]
396Encoding=UTF-8
397Type=Application
398Name=Printer Administration
[fa29663]399Comment=LibreOffice Printer Administration
[4f304a0a]400Icon=printeradmin
401Exec=printeradmin
[2511f83]402Categories=Office;Printing;Application;
[4f304a0a]403StartupNotify=true
404Terminal=false" > /usr/share/applications/printeradmin.desktop</userinput></screen>
[d2d3fc5]405 </sect2>
406
407 <sect2 role="content">
408 <title>Contents</title>
409
410 <segmentedlist>
411 <segtitle>Installed Programs</segtitle>
412 <segtitle>Installed Libraries</segtitle>
[fa29663]413 <segtitle>Installed Directories</segtitle>
[d2d3fc5]414
415 <seglistitem>
[4c796cf]416 <seg>
417 base,
418 calc,
419 draw,
420 impress,
421 math,
422 printeradmin and
423 writer.</seg>
[d2d3fc5]424 <seg>
[fa29663]425 hundreds of shared libraries in
[d2d3fc5]426 <filename class="directory">/usr/lib/libreoffice</filename>.
427 </seg>
428 <seg>/usr/lib/libreoffice.</seg>
429 </seglistitem>
430 </segmentedlist>
431
432 <variablelist>
433 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
434 <?dbfo list-presentation="list"?>
435 <?dbhtml list-presentation="table"?>
436
437 <varlistentry id="base">
438 <term><command>base</command></term>
439 <listitem>
440 <para>
441 is a database manager.
442 </para>
443 <indexterm zone="libreoffice base">
444 <primary sortas="b-base">base</primary>
445 </indexterm>
446 </listitem>
447 </varlistentry>
448
449 <varlistentry id="calc">
450 <term><command>calc</command></term>
451 <listitem>
452 <para>
453 is a spreadsheet program.
454 </para>
455 <indexterm zone="libreoffice calc">
456 <primary sortas="b-calc">calc</primary>
457 </indexterm>
458 </listitem>
459 </varlistentry>
460
461 <varlistentry id="draw">
462 <term><command>draw</command></term>
463 <listitem>
464 <para>
465 is a vector graphics editor and diagramming tool.
466 </para>
467 <indexterm zone="libreoffice draw">
468 <primary sortas="b-draw">draw</primary>
469 </indexterm>
470 </listitem>
471 </varlistentry>
472
473 <varlistentry id="impress">
474 <term><command>impress</command></term>
475 <listitem>
476 <para>
477 can edit and display powerpoint presentations.
478 </para>
479 <indexterm zone="libreoffice impress">
480 <primary sortas="b-impress">impress</primary>
481 </indexterm>
482 </listitem>
483 </varlistentry>
484
485 <varlistentry id="math">
486 <term><command>math</command></term>
487 <listitem>
488 <para>
489 is a mathematical formula editor.
490 </para>
491 <indexterm zone="libreoffice math">
492 <primary sortas="b-math">math</primary>
493 </indexterm>
494 </listitem>
495 </varlistentry>
496
[2511f83]497 <varlistentry id="printeradmin">
498 <term><command>printeradmin</command></term>
499 <listitem>
500 <para>
501 is a graphical interface to enable you to change your personal
502 printing preferences, which are saved in
503 <filename>~/.cups/lpoptions</filename>.
504 </para>
505 <indexterm zone="libreoffice printeradmin">
506 <primary sortas="b-printeradmin">printeradmin</primary>
507 </indexterm>
508 </listitem>
509 </varlistentry>
510
[8d5cd1bb]511 <varlistentry id="unopkg">
512 <term><command>unopkg</command></term>
513 <listitem>
514 <para>
[fa29663]515 is a tool to manage <application>LibreOffice</application>
[8d5cd1bb]516 extensions from the command line.
517 </para>
518 <indexterm zone="libreoffice unopkg">
519 <primary sortas="b-unopkg">unopkg</primary>
520 </indexterm>
521 </listitem>
522 </varlistentry>
523
[d2d3fc5]524 <varlistentry id="writer">
525 <term><command>writer</command></term>
526 <listitem>
527 <para>
528 is a word processor.
529 </para>
530 <indexterm zone="libreoffice writer">
531 <primary sortas="b-writer">writer</primary>
532 </indexterm>
533 </listitem>
534 </varlistentry>
535 </variablelist>
536 </sect2>
537</sect1>
Note: See TracBrowser for help on using the repository browser.