Changeset c577a33


Ignore:
Timestamp:
03/27/2012 02:43:05 PM (12 years ago)
Author:
Andrew Benton <andy@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 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, 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/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
bc6b635
Parents:
b072b9b
Message:

Added a sed to the Abiword page to fix compiling with glib-2.32 installed

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • xsoft/office/abiword.xml

    rb072b9b rc577a33  
    55  %general-entities;
    66
    7   <!ENTITY AbiWord-download-http "http://www.abisource.com/downloads/abiword/&AbiWord-version;/source/abiword-&AbiWord-version;.tar.gz">
     7  <!ENTITY AbiWord-download-http
     8  "http://www.abisource.com/downloads/abiword/&AbiWord-version;/source/abiword-&AbiWord-version;.tar.gz">
    89  <!ENTITY AbiWord-download-ftp  " ">
    910  <!ENTITY AbiWord-md5sum        "f883b0a7f26229a9c66fd6a1a94381aa">
    1011  <!ENTITY AbiWord-size          "9 MB">
    11   <!ENTITY AbiWord-buildsize     "684 MB (without collab or plugins except OpenDocument, additional 8 MB to install local HTML docs)">
     12  <!ENTITY AbiWord-buildsize     "684 MB">
    1213  <!ENTITY AbiWord-time          "6.6 SBU">
    13   <!ENTITY AbiWordDocs-download-http "http://www.abisource.com/downloads/abiword/&AbiWord-version;/source/abiword-docs-&AbiWord-version;.tar.gz">
     14  <!ENTITY AbiWordDocs-download-http
     15  "http://www.abisource.com/downloads/abiword/&AbiWord-version;/source/abiword-docs-&AbiWord-version;.tar.gz">
    1416  <!ENTITY AbiWord-minor-version "2.8">
    15   <!--<!ENTITY AbiWord-under-version "2_4">-->
    1617]>
    1718
     
    3334    <title>Introduction to AbiWord</title>
    3435
    35     <para>The <application>AbiWord</application> package contains a word
    36     processing application. This is useful for writing reports, letters and
    37     other formatted documents.</para>
    38 
    39     &lfs70_checked;
     36    <para>
     37      <application>AbiWord</application> is a word processor. It is useful for
     38      writing reports, letters and other formatted documents.
     39    </para>
     40
     41    &lfs71_checked;
    4042
    4143    <bridgehead renderas="sect3">Package Information</bridgehead>
    4244    <itemizedlist spacing="compact">
    4345      <listitem>
    44         <para>Download (HTTP): <ulink url="&AbiWord-download-http;"/></para>
    45       </listitem>
    46       <listitem>
    47         <para>Download (FTP): <ulink url="&AbiWord-download-ftp;"/></para>
    48       </listitem>
    49       <listitem>
    50         <para>Download MD5 sum: &AbiWord-md5sum;</para>
    51       </listitem>
    52       <listitem>
    53         <para>Download size: &AbiWord-size;</para>
    54       </listitem>
    55       <listitem>
    56         <para>Estimated disk space required: &AbiWord-buildsize;</para>
    57       </listitem>
    58       <listitem>
    59         <para>Estimated build time: &AbiWord-time;</para>
     46        <para>
     47          Download (HTTP): <ulink url="&AbiWord-download-http;"/>
     48        </para>
     49      </listitem>
     50      <listitem>
     51        <para>
     52          Download (FTP): <ulink url="&AbiWord-download-ftp;"/>
     53        </para>
     54      </listitem>
     55      <listitem>
     56        <para>
     57          Download MD5 sum: &AbiWord-md5sum;
     58        </para>
     59      </listitem>
     60      <listitem>
     61        <para>
     62          Download size: &AbiWord-size;
     63        </para>
     64      </listitem>
     65      <listitem>
     66        <para>
     67          Estimated disk space required: &AbiWord-buildsize;
     68        </para>
     69      </listitem>
     70      <listitem>
     71        <para>
     72          Estimated build time: &AbiWord-time;
     73        </para>
    6074      </listitem>
    6175    </itemizedlist>
     
    6478    <itemizedlist spacing='compact'>
    6579      <listitem>
    66         <para>Optional Documentation: If running on a gnome desktop, the help
    67         menu will open <application>epiphany</application> at <ulink
    68         url="http://www.abisource.com/help/en-US/index.html"/>.  If you wish
    69         to install a copy of the en-US, fr-FR and pl-PL HTML documentation on
    70         your machine, download <ulink url="&AbiWordDocs-download-http;"/>
    71         (size 1.4MB md5sum 197df94c1d9ed287903cb5aa0b60bbc1). The local files
    72         will not be automatically referenced if you do not have a fairly
    73         complete gnome desktop (epiphany and yelp on their own are not enough),
    74         but you can still open them in your browser of choice.</para>
     80        <para>
     81          Optional Documentation: If running on a gnome desktop, the help menu
     82          will open <application>epiphany</application> at
     83          <ulink url="http://www.abisource.com/help/en-US/index.html"/>. If you
     84          wish to install a copy of the en-US, fr-FR and pl-PL HTML
     85          documentation on your machine, download
     86          <ulink url="&AbiWordDocs-download-http;"/> (size 1.4MB md5sum
     87          197df94c1d9ed287903cb5aa0b60bbc1). The local files will not be
     88          automatically referenced if you do not have a fairly complete gnome
     89          desktop (epiphany and yelp on their own are not enough), but you can
     90          still open them in your browser of choice.
     91        </para>
    7592      </listitem>
    7693    </itemizedlist>
     
    7996
    8097    <bridgehead renderas="sect4">Required</bridgehead>
    81     <para role="required"><xref linkend="fribidi"/>,
    82     <xref linkend="libjpeg"/>,
    83     <xref linkend="libpng"/>,
    84     <xref linkend="librsvg"/> and
    85     <xref linkend="wv"/></para>
     98    <para role="required">
     99      <xref linkend="fribidi"/>,
     100      <xref linkend="libjpeg"/>,
     101      <xref linkend="libpng"/>,
     102      <xref linkend="librsvg"/> and
     103      <xref linkend="wv"/>
     104    </para>
     105
     106    <bridgehead renderas="sect4">Recommended</bridgehead>
     107    <para role="recommended">
     108      <xref linkend="enchant"/> (for spellchecking)
     109    </para>
    86110
    87111    <bridgehead renderas="sect4">Optional</bridgehead>
    88112    <para role="optional">
    89     <ulink url="http://aiksaurus.sourceforge.net/">Aiksaurus</ulink>,
    90     <xref linkend="boost"/> (required for collab),
    91     <xref linkend="dbus-glib"/> (for the collab sugar backend),
    92     <xref linkend="enchant"/>,
    93     <xref linkend="goffice"/>),
    94     <ulink url="http://helm.cs.unibo.it/mml-widget/">GtkMathView</ulink> (requires
    95     <ulink url="http://www.gnome-db.org/">libgnomedb version &lt;1.3.0</ulink>*
    96     which requires
    97     <ulink url="http://www.gnome-db.org/">libgda version &lt;1.3.0</ulink>),
    98     <ulink url="http://sourceforge.net/projects/mission-control/files/">libmissioncontrol</ulink>,
    99     <xref linkend="empathy"/> and
    100     <xref linkend="telepathy-glib"/> (for the collab telepathy backend),
    101     <ulink url="http://ftp.imendio.com/pub/imendio/loudmouth/src/">loudmouth</ulink>
    102     (for the collab xmpp backend),
    103     <xref linkend="gnutls"/> and
    104     <xref linkend="libsoup"/> (for the collab service),
    105     <ulink url="http://sourceforge.net/projects/wvware">libwmf</ulink>,
    106     <ulink url="http://helm.cs.unibo.it/mml-widget/">GtkMathView</ulink> (requires
    107     <ulink url="http://sourceforge.net/projects/gmetadom/">Gnome DOM Bindings</ulink> which requires
    108     <ulink url="http://gdome2.cs.unibo.it/">gdome2</ulink>),
    109     <ulink url="http://libwpd.sourceforge.net/">libwpd</ulink>,
    110     <ulink url="http://libots.sourceforge.net/">OTS</ulink>, and
    111     <ulink url="http://software.frodo.looijaard.name/psiconv/">Psiconv</ulink>
    112     Some of these are not automatically detected and need to be specified to the
    113     configure script.</para>
    114 
    115     <para>* The
    116     <application>libgda</application>/<application>libgnomedb</application>
    117     stack required for <application>AbiWord</application> database
    118     access may conflict with the versions used by the
    119     <xref linkend="gnumeric"/> database plugin. Though the libraries
    120     themselves pose no conflict, the executables and support files may
    121     overwrite one another. Note that the current (version 4.1.x) stack does not
    122     pose a conflict with any of the previous versions (but does not support
    123     <application>AbiWord</application> database access.
    124     <application>AbiWord</application> requires versions
    125     &lt;1.3.0.</para>
    126 
    127     <para condition="html" role="usernotes">User Notes:
    128     <ulink url="&blfs-wiki;/abiword"/></para>
    129 
     113      <ulink url="http://www.abisource.com/projects/link-grammar/">Link Grammar Parser</ulink>,
     114      <ulink url="http://aiksaurus.sourceforge.net/">Aiksaurus</ulink>,
     115      <xref linkend="boost"/> (required for the collab and openxml/docx plugins),
     116      <xref linkend="dbus-glib"/> (for the collab sugar backend),
     117      <xref linkend="goffice"/>),
     118      <ulink url="http://helm.cs.unibo.it/mml-widget/">GtkMathView</ulink>
     119      (requires
     120      <ulink url="http://www.gnome-db.org/">libgnomedb version &lt;1.3.0</ulink>*
     121      which requires
     122      <ulink url="http://www.gnome-db.org/">libgda version &lt;1.3.0</ulink>),
     123      <ulink url="http://sourceforge.net/projects/mission-control/files/">libmissioncontrol</ulink>,
     124      <xref linkend="empathy"/> and
     125      <xref linkend="telepathy-glib"/> (for the collab telepathy backend),
     126      <ulink url="http://ftp.imendio.com/pub/imendio/loudmouth/src/">loudmouth</ulink>
     127      (for the collab xmpp backend),
     128      <xref linkend="gnutls"/> and
     129      <xref linkend="libsoup"/> (for the collab service),
     130      <ulink url="http://sourceforge.net/projects/wvware">libwmf</ulink>,
     131      <ulink url="http://helm.cs.unibo.it/mml-widget/">GtkMathView</ulink> (requires
     132      <ulink url="http://sourceforge.net/projects/gmetadom/">Gnome DOM Bindings</ulink>
     133      which requires
     134      <ulink url="http://gdome2.cs.unibo.it/">gdome2</ulink>),
     135      <ulink url="http://libwpd.sourceforge.net/">libwpd</ulink>,
     136      <ulink url="http://libots.sourceforge.net/">OTS</ulink>, and
     137      <ulink url="http://software.frodo.looijaard.name/psiconv/">Psiconv</ulink>
     138      Some of these are not automatically detected and need to be specified to the
     139      configure script.
     140    </para>
     141
     142    <para>
     143      * The
     144      <application>libgda</application>/<application>libgnomedb</application>
     145      stack required for <application>AbiWord</application> database access may
     146      conflict with the versions used by the <xref linkend="gnumeric"/> database
     147      plugin. Though the libraries themselves pose no conflict, the executables
     148      and support files may overwrite one another. Note that the current
     149      (version 4.1.x) stack does not pose a conflict with any of the previous
     150      versions (but does not support <application>AbiWord</application> database
     151      access. <application>AbiWord</application> requires versions &lt;1.3.0.
     152    </para>
     153
     154    <para condition="html" role="usernotes">
     155      User Notes: <ulink url="&blfs-wiki;/abiword"/>
     156    </para>
    130157  </sect2>
    131158
     
    133160    <title>Installation of AbiWord</title>
    134161
    135     <para>Install <application>AbiWord</application> by running the following
    136     commands:</para>
    137 
    138 <screen><userinput>sed -i 's/ptr->jmpbuf/jmpbuf(png_ptr)/' src/af/util/xp/ut_png.cpp &amp;&amp;
     162    <para>
     163      Install <application>AbiWord</application> by running the following
     164      commands:
     165    </para>
     166
     167<screen><userinput>sed -i '/#include &lt;glib\/gerror.h&gt;/d' src/af/util/xp/ut_go_file.h &amp;&amp;
     168sed -i 's/ptr->jmpbuf/jmpbuf(png_ptr)/' src/af/util/xp/ut_png.cpp &amp;&amp;
    139169sed -i 's/\(m_pPNG\)->\(jmpbuf\)/png_\2(\1)/' \
    140170    src/wp/impexp/gtk/ie_impGraphic_GdkPixbuf.cpp &amp;&amp;
    141171sed -i 's/--no-undefined //' src/Makefile* &amp;&amp;
    142 ./configure --prefix=/usr &amp;&amp;
     172./configure --prefix=/usr --disable-static &amp;&amp;
    143173make</userinput></screen>
    144174
    145     <para>If you wish to run the tests, issue: <command>make check</command>.
    146     </para>
    147 
    148     <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
     175    <para>
     176      If you wish to run the tests, issue: <command>make check</command>.
     177    </para>
     178
     179    <para>
     180      Now, as the <systemitem class="username">root</systemitem> user:
     181    </para>
    149182
    150183<screen role="root"><userinput>make install</userinput></screen>
    151184
    152     <para>If you wish to install the local help files, untar them</para>
     185    <para>
     186      If you wish to install the local help files, untar them
     187    </para>
    153188<screen><userinput>tar -xf ../abiword-docs-&AbiWord-version;.tar.gz &amp;&amp;
    154189cd abiword-docs-&AbiWord-version;</userinput></screen>
    155190
    156     <para>and then, as the <systemitem class="username">root</systemitem> user:</para>
     191    <para>
     192      and then, as the <systemitem class="username">root</systemitem> user:
     193    </para>
    157194
    158195<screen role="root"><userinput>make install</userinput></screen>
    159 
    160 
    161196  </sect2>
    162197
     
    164199    <title>Command Explanations</title>
    165200
    166     <para><command>sed -i 's/ptr->jmpbuf...</command> and
    167     <command>sed -i 's/\(m_pPNG\)...</command>: These seds fix compiling
    168     Abiword with libpng-1.5.</para>
    169 
    170     <para><command>sed -i 's/--no-undefined...</command>: This sed fixes
    171     compiling Abiword-2.8.6 with GCC-4.6.2.</para>
    172 
    173     <para><option>--without-inter7eps</option>: Some of the headers from
    174     the <application>EPS</application> package are not compatible with
    175     <application>GCC</application>-&gcc-version;. This parameter prevents
    176     linking to the package and incurring a build failure.</para>
    177 
    178     <para><option>--disable-static</option>: This switch prevents the static
    179     library being built. On x86_64 it also saves a large amount of build time.
    180     </para>
    181 
    182     <para><option>--enable-plugins=collab</option>: Build some or all of the
    183     collab plugins.</para>
    184 
    185 <!-- I don't see this sed on the page?
    186     <para><command>sed -i '...' tools/ots/xp/AbiOts.cpp </command>:
    187     This command is used to fix an incompatibility with
    188     <application>GCC</application> and the
    189     <application>libots</application> package.</para>
    190 -->
     201    <para>
     202      <command>sed -i '/#include &lt;glib\/gerror.h&gt;/d'
     203      src/af/util/xp/ut_go_file.h</command>: This sed fixes compiling
     204      <application>Abiword</application> with
     205      <application>Glib-2.32</application> installed.
     206    </para>
     207
     208    <para>
     209      <command>sed -i 's/ptr->jmpbuf/jmpbuf(png_ptr)/'
     210      src/af/util/xp/ut_png.cpp</command> and
     211      <command>sed -i 's/\(m_pPNG\)->\(jmpbuf\)/png_\2(\1)/'
     212      src/wp/impexp/gtk/ie_impGraphic_GdkPixbuf.cpp</command>: These seds fix
     213      compiling Abiword with libpng-1.5 installed.
     214    </para>
     215
     216    <para>
     217      <command>sed -i 's/--no-undefined...</command>: This sed fixes compiling
     218      Abiword-2.8.6 with GCC-4.6.2.
     219    </para>
     220
     221    <para>
     222      <option>--without-inter7eps</option>: Some of the headers from the
     223      <application>EPS</application> package are not compatible with
     224      <application>GCC</application>-&gcc-version;. This parameter prevents
     225      linking to the package and incurring a build failure.
     226    </para>
     227
     228    <para>
     229      <option>--disable-static</option>: This switch prevents the static library
     230      being built.
     231    </para>
     232
     233    <para>
     234      <option>--enable-plugins="collab openxml goffice grammar"</option>: Build
     235      some or all of the collab plugins. The openxml plugin enables
     236      <application>Abiword</application> to open some .docx files (requires
     237      <xref linkend="boost"/>). The grammar plugin requires
     238      <ulink url="http://www.abisource.com/projects/link-grammar/">Link Grammar
     239      Parser</ulink>
     240    </para>
    191241  </sect2>
    192242
     
    197247      <title>Config File</title>
    198248
    199       <para><filename>~/.AbiSuite/templates/normal.awt</filename></para>
     249      <para>
     250        <filename>~/.AbiSuite/templates/normal.awt</filename>
     251      </para>
    200252
    201253      <indexterm zone="abiword abiword-config">
    202254        <primary sortas="e-AA.AbiSuite-templates-normal">~/.AbiSuite/templates/normal.awt</primary>
    203255      </indexterm>
    204 
    205256    </sect3>
    206257
     
    208259      <title>Configuration Information</title>
    209260
    210       <para>Choose the right template for your language and locale from the
    211       list produced by the following command:</para>
     261      <para>
     262        Choose the right template for your language and locale from the list
     263        produced by the following command:
     264      </para>
    212265
    213266<screen><userinput>ls /usr/share/abiword-&AbiWord-minor-version;/templates</userinput></screen>
    214267
    215       <para>Create the folder
    216       <filename class='directory'>~/.AbiSuite/templates</filename> then copy the
    217       <filename>normal.awt</filename> you want into it:</para>
     268      <para>
     269        Create the folder
     270        <filename class='directory'>~/.AbiSuite/templates</filename> then copy
     271        the <filename>normal.awt</filename> you want into it:
     272      </para>
    218273
    219274<screen><userinput>install -v -m750 -d ~/.AbiSuite/templates &amp;&amp;
     
    221276                    ~/.AbiSuite/templates/normal.awt</userinput></screen>
    222277
    223       <para>Change <replaceable>&lt;lang&gt;</replaceable> by the above
    224       command to fit the name of the file you want.</para>
    225 
    226       <para>If you are using multiple languages, you may need to edit the template
    227       to use a font with greater coverage (e.g. one of the
    228       <ulink url="http://dejavu.sourceforge.net/">DejaVu fonts</ulink>),
    229       because <application>Abiword</application> does not use
    230       <application>fontconfig</application> and can only display glyphs that
    231       are provided in the chosen font.</para>
    232 
    233       <para>If you have <xref linkend="desktop-file-utils"/> installed,
    234       you should run the <command>update-desktop-database</command> command
    235       to update the mimeinfo cache and allow the Help system to work.</para>
    236 
     278      <para>
     279        Change <replaceable>&lt;lang&gt;</replaceable> by the above command to
     280        fit the name of the file you want.
     281      </para>
     282
     283      <para>
     284        If you are using multiple languages, you may need to edit the template
     285        to use a font with greater coverage (e.g. one of the
     286        <ulink url="http://dejavu.sourceforge.net/">DejaVu fonts</ulink>),
     287        because <application>Abiword</application> does not use
     288        <application>fontconfig</application> and can only display glyphs that
     289        are provided in the chosen font.
     290      </para>
     291
     292      <para>
     293        If you have <xref linkend="desktop-file-utils"/> installed, you should
     294        run the <command>update-desktop-database</command> command to update the
     295        mimeinfo cache and allow the Help system to work.
     296      </para>
    237297    </sect3>
    238 
    239298  </sect2>
    240299
     
    264323        <term><command>abiword</command></term>
    265324        <listitem>
    266           <para>is the word processor, a wrapper for the functions in
    267           libabiword-&AbiWord-minor-version; - it can also be used on the
    268           command line, see <command>man 1 abiword</command>.</para>
     325          <para>
     326            is the word processor, a wrapper for the functions in
     327            libabiword-&AbiWord-minor-version; - it can also be used on the
     328            command line, see <command>man 1 abiword</command>.
     329          </para>
    269330          <indexterm zone="abiword abiword-prog">
    270331            <primary sortas="b-abiword">abiword</primary>
     
    274335
    275336      <varlistentry id="libabiword">
    276         <term><filename class='libraryfile'>libabiword-&AbiWord-minor-version;.{so,a}</filename></term>
     337        <term><filename class='libraryfile'>libabiword-&AbiWord-minor-version;.so</filename></term>
    277338        <listitem>
    278           <para>provides functions to access MS Word documents.</para>
     339          <para>
     340            provides functions to access MS Word documents.
     341          </para>
    279342          <indexterm zone="abiword libabiword">
    280             <primary sortas="c-libabiword">libabiword-&AbiWord-minor-version;.{so,a}</primary>
     343            <primary sortas="c-libabiword">libabiword-&AbiWord-minor-version;.so</primary>
    281344          </indexterm>
    282345        </listitem>
    283346      </varlistentry>
    284 
    285347    </variablelist>
    286 
    287   </sect2>
    288 
     348  </sect2>
    289349</sect1>
Note: See TracChangeset for help on using the changeset viewer.