Author: andy Date: 2012-03-27 08:43:05 -0600 (Tue, 27 Mar 2012) New Revision: 9783
Modified: trunk/BOOK/xsoft/office/abiword.xml Log: Added a sed to the Abiword page to fix compiling with glib-2.32 installed Modified: trunk/BOOK/xsoft/office/abiword.xml =================================================================== --- trunk/BOOK/xsoft/office/abiword.xml 2012-03-27 14:06:56 UTC (rev 9782) +++ trunk/BOOK/xsoft/office/abiword.xml 2012-03-27 14:43:05 UTC (rev 9783) @@ -4,15 +4,16 @@ <!ENTITY % general-entities SYSTEM "../../general.ent"> %general-entities; - <!ENTITY AbiWord-download-http "http://www.abisource.com/downloads/abiword/&AbiWord-version;/source/abiword-&AbiWord-version;.tar.gz"> + <!ENTITY AbiWord-download-http + "http://www.abisource.com/downloads/abiword/&AbiWord-version;/source/abiword-&AbiWord-version;.tar.gz"> <!ENTITY AbiWord-download-ftp " "> <!ENTITY AbiWord-md5sum "f883b0a7f26229a9c66fd6a1a94381aa"> <!ENTITY AbiWord-size "9 MB"> - <!ENTITY AbiWord-buildsize "684 MB (without collab or plugins except OpenDocument, additional 8 MB to install local HTML docs)"> + <!ENTITY AbiWord-buildsize "684 MB"> <!ENTITY AbiWord-time "6.6 SBU"> - <!ENTITY AbiWordDocs-download-http "http://www.abisource.com/downloads/abiword/&AbiWord-version;/source/abiword-docs-&AbiWord-version;.tar.gz"> + <!ENTITY AbiWordDocs-download-http + "http://www.abisource.com/downloads/abiword/&AbiWord-version;/source/abiword-docs-&AbiWord-version;.tar.gz"> <!ENTITY AbiWord-minor-version "2.8"> - <!--<!ENTITY AbiWord-under-version "2_4">--> ]> <sect1 id="abiword" xreflabel="AbiWord-&AbiWord-version;"> @@ -32,162 +33,211 @@ <sect2 role="package"> <title>Introduction to AbiWord</title> - <para>The <application>AbiWord</application> package contains a word - processing application. This is useful for writing reports, letters and - other formatted documents.</para> + <para> + <application>AbiWord</application> is a word processor. It is useful for + writing reports, letters and other formatted documents. + </para> - &lfs70_checked; + &lfs71_checked; <bridgehead renderas="sect3">Package Information</bridgehead> <itemizedlist spacing="compact"> <listitem> - <para>Download (HTTP): <ulink url="&AbiWord-download-http;"/></para> + <para> + Download (HTTP): <ulink url="&AbiWord-download-http;"/> + </para> </listitem> <listitem> - <para>Download (FTP): <ulink url="&AbiWord-download-ftp;"/></para> + <para> + Download (FTP): <ulink url="&AbiWord-download-ftp;"/> + </para> </listitem> <listitem> - <para>Download MD5 sum: &AbiWord-md5sum;</para> + <para> + Download MD5 sum: &AbiWord-md5sum; + </para> </listitem> <listitem> - <para>Download size: &AbiWord-size;</para> + <para> + Download size: &AbiWord-size; + </para> </listitem> <listitem> - <para>Estimated disk space required: &AbiWord-buildsize;</para> + <para> + Estimated disk space required: &AbiWord-buildsize; + </para> </listitem> <listitem> - <para>Estimated build time: &AbiWord-time;</para> + <para> + Estimated build time: &AbiWord-time; + </para> </listitem> </itemizedlist> <bridgehead renderas="sect3">Additional Downloads</bridgehead> <itemizedlist spacing='compact'> <listitem> - <para>Optional Documentation: If running on a gnome desktop, the help - menu will open <application>epiphany</application> at <ulink - url="http://www.abisource.com/help/en-US/index.html"/>. If you wish - to install a copy of the en-US, fr-FR and pl-PL HTML documentation on - your machine, download <ulink url="&AbiWordDocs-download-http;"/> - (size 1.4MB md5sum 197df94c1d9ed287903cb5aa0b60bbc1). The local files - will not be automatically referenced if you do not have a fairly - complete gnome desktop (epiphany and yelp on their own are not enough), - but you can still open them in your browser of choice.</para> + <para> + Optional Documentation: If running on a gnome desktop, the help menu + will open <application>epiphany</application> at + <ulink url="http://www.abisource.com/help/en-US/index.html"/>. If you + wish to install a copy of the en-US, fr-FR and pl-PL HTML + documentation on your machine, download + <ulink url="&AbiWordDocs-download-http;"/> (size 1.4MB md5sum + 197df94c1d9ed287903cb5aa0b60bbc1). The local files will not be + automatically referenced if you do not have a fairly complete gnome + desktop (epiphany and yelp on their own are not enough), but you can + still open them in your browser of choice. + </para> </listitem> </itemizedlist> <bridgehead renderas="sect3">AbiWord Dependencies</bridgehead> <bridgehead renderas="sect4">Required</bridgehead> - <para role="required"><xref linkend="fribidi"/>, - <xref linkend="libjpeg"/>, - <xref linkend="libpng"/>, - <xref linkend="librsvg"/> and - <xref linkend="wv"/></para> + <para role="required"> + <xref linkend="fribidi"/>, + <xref linkend="libjpeg"/>, + <xref linkend="libpng"/>, + <xref linkend="librsvg"/> and + <xref linkend="wv"/> + </para> + <bridgehead renderas="sect4">Recommended</bridgehead> + <para role="recommended"> + <xref linkend="enchant"/> (for spellchecking) + </para> + <bridgehead renderas="sect4">Optional</bridgehead> <para role="optional"> - <ulink url="http://aiksaurus.sourceforge.net/">Aiksaurus</ulink>, - <xref linkend="boost"/> (required for collab), - <xref linkend="dbus-glib"/> (for the collab sugar backend), - <xref linkend="enchant"/>, - <xref linkend="goffice"/>), - <ulink url="http://helm.cs.unibo.it/mml-widget/">GtkMathView</ulink> (requires - <ulink url="http://www.gnome-db.org/">libgnomedb version <1.3.0</ulink>* - which requires - <ulink url="http://www.gnome-db.org/">libgda version <1.3.0</ulink>), - <ulink url="http://sourceforge.net/projects/mission-control/files/">libmissioncontrol</ulink>, - <xref linkend="empathy"/> and - <xref linkend="telepathy-glib"/> (for the collab telepathy backend), - <ulink url="http://ftp.imendio.com/pub/imendio/loudmouth/src/">loudmouth</ulink> - (for the collab xmpp backend), - <xref linkend="gnutls"/> and - <xref linkend="libsoup"/> (for the collab service), - <ulink url="http://sourceforge.net/projects/wvware">libwmf</ulink>, - <ulink url="http://helm.cs.unibo.it/mml-widget/">GtkMathView</ulink> (requires - <ulink url="http://sourceforge.net/projects/gmetadom/">Gnome DOM Bindings</ulink> which requires - <ulink url="http://gdome2.cs.unibo.it/">gdome2</ulink>), - <ulink url="http://libwpd.sourceforge.net/">libwpd</ulink>, - <ulink url="http://libots.sourceforge.net/">OTS</ulink>, and - <ulink url="http://software.frodo.looijaard.name/psiconv/">Psiconv</ulink> - Some of these are not automatically detected and need to be specified to the - configure script.</para> + <ulink url="http://www.abisource.com/projects/link-grammar/">Link Grammar Parser</ulink>, + <ulink url="http://aiksaurus.sourceforge.net/">Aiksaurus</ulink>, + <xref linkend="boost"/> (required for the collab and openxml/docx plugins), + <xref linkend="dbus-glib"/> (for the collab sugar backend), + <xref linkend="goffice"/>), + <ulink url="http://helm.cs.unibo.it/mml-widget/">GtkMathView</ulink> + (requires + <ulink url="http://www.gnome-db.org/">libgnomedb version <1.3.0</ulink>* + which requires + <ulink url="http://www.gnome-db.org/">libgda version <1.3.0</ulink>), + <ulink url="http://sourceforge.net/projects/mission-control/files/">libmissioncontrol</ulink>, + <xref linkend="empathy"/> and + <xref linkend="telepathy-glib"/> (for the collab telepathy backend), + <ulink url="http://ftp.imendio.com/pub/imendio/loudmouth/src/">loudmouth</ulink> + (for the collab xmpp backend), + <xref linkend="gnutls"/> and + <xref linkend="libsoup"/> (for the collab service), + <ulink url="http://sourceforge.net/projects/wvware">libwmf</ulink>, + <ulink url="http://helm.cs.unibo.it/mml-widget/">GtkMathView</ulink> (requires + <ulink url="http://sourceforge.net/projects/gmetadom/">Gnome DOM Bindings</ulink> + which requires + <ulink url="http://gdome2.cs.unibo.it/">gdome2</ulink>), + <ulink url="http://libwpd.sourceforge.net/">libwpd</ulink>, + <ulink url="http://libots.sourceforge.net/">OTS</ulink>, and + <ulink url="http://software.frodo.looijaard.name/psiconv/">Psiconv</ulink> + Some of these are not automatically detected and need to be specified to the + configure script. + </para> - <para>* The - <application>libgda</application>/<application>libgnomedb</application> - stack required for <application>AbiWord</application> database - access may conflict with the versions used by the - <xref linkend="gnumeric"/> database plugin. Though the libraries - themselves pose no conflict, the executables and support files may - overwrite one another. Note that the current (version 4.1.x) stack does not - pose a conflict with any of the previous versions (but does not support - <application>AbiWord</application> database access. - <application>AbiWord</application> requires versions - <1.3.0.</para> + <para> + * The + <application>libgda</application>/<application>libgnomedb</application> + stack required for <application>AbiWord</application> database access may + conflict with the versions used by the <xref linkend="gnumeric"/> database + plugin. Though the libraries themselves pose no conflict, the executables + and support files may overwrite one another. Note that the current + (version 4.1.x) stack does not pose a conflict with any of the previous + versions (but does not support <application>AbiWord</application> database + access. <application>AbiWord</application> requires versions <1.3.0. + </para> - <para condition="html" role="usernotes">User Notes: - <ulink url="&blfs-wiki;/abiword"/></para> - + <para condition="html" role="usernotes"> + User Notes: <ulink url="&blfs-wiki;/abiword"/> + </para> </sect2> <sect2 role="installation"> <title>Installation of AbiWord</title> - <para>Install <application>AbiWord</application> by running the following - commands:</para> + <para> + Install <application>AbiWord</application> by running the following + commands: + </para> -<screen><userinput>sed -i 's/ptr->jmpbuf/jmpbuf(png_ptr)/' src/af/util/xp/ut_png.cpp && +<screen><userinput>sed -i '/#include <glib\/gerror.h>/d' src/af/util/xp/ut_go_file.h && +sed -i 's/ptr->jmpbuf/jmpbuf(png_ptr)/' src/af/util/xp/ut_png.cpp && sed -i 's/\(m_pPNG\)->\(jmpbuf\)/png_\2(\1)/' \ src/wp/impexp/gtk/ie_impGraphic_GdkPixbuf.cpp && sed -i 's/--no-undefined //' src/Makefile* && -./configure --prefix=/usr && +./configure --prefix=/usr --disable-static && make</userinput></screen> - <para>If you wish to run the tests, issue: <command>make check</command>. + <para> + If you wish to run the tests, issue: <command>make check</command>. </para> - <para>Now, as the <systemitem class="username">root</systemitem> user:</para> + <para> + Now, as the <systemitem class="username">root</systemitem> user: + </para> <screen role="root"><userinput>make install</userinput></screen> - <para>If you wish to install the local help files, untar them</para> + <para> + If you wish to install the local help files, untar them + </para> <screen><userinput>tar -xf ../abiword-docs-&AbiWord-version;.tar.gz && cd abiword-docs-&AbiWord-version;</userinput></screen> - <para>and then, as the <systemitem class="username">root</systemitem> user:</para> + <para> + and then, as the <systemitem class="username">root</systemitem> user: + </para> <screen role="root"><userinput>make install</userinput></screen> - - </sect2> <sect2 role="commands"> <title>Command Explanations</title> - <para><command>sed -i 's/ptr->jmpbuf...</command> and - <command>sed -i 's/\(m_pPNG\)...</command>: These seds fix compiling - Abiword with libpng-1.5.</para> + <para> + <command>sed -i '/#include <glib\/gerror.h>/d' + src/af/util/xp/ut_go_file.h</command>: This sed fixes compiling + <application>Abiword</application> with + <application>Glib-2.32</application> installed. + </para> - <para><command>sed -i 's/--no-undefined...</command>: This sed fixes - compiling Abiword-2.8.6 with GCC-4.6.2.</para> + <para> + <command>sed -i 's/ptr->jmpbuf/jmpbuf(png_ptr)/' + src/af/util/xp/ut_png.cpp</command> and + <command>sed -i 's/\(m_pPNG\)->\(jmpbuf\)/png_\2(\1)/' + src/wp/impexp/gtk/ie_impGraphic_GdkPixbuf.cpp</command>: These seds fix + compiling Abiword with libpng-1.5 installed. + </para> - <para><option>--without-inter7eps</option>: Some of the headers from - the <application>EPS</application> package are not compatible with - <application>GCC</application>-&gcc-version;. This parameter prevents - linking to the package and incurring a build failure.</para> + <para> + <command>sed -i 's/--no-undefined...</command>: This sed fixes compiling + Abiword-2.8.6 with GCC-4.6.2. + </para> - <para><option>--disable-static</option>: This switch prevents the static - library being built. On x86_64 it also saves a large amount of build time. + <para> + <option>--without-inter7eps</option>: Some of the headers from the + <application>EPS</application> package are not compatible with + <application>GCC</application>-&gcc-version;. This parameter prevents + linking to the package and incurring a build failure. </para> - <para><option>--enable-plugins=collab</option>: Build some or all of the - collab plugins.</para> + <para> + <option>--disable-static</option>: This switch prevents the static library + being built. + </para> -<!-- I don't see this sed on the page? - <para><command>sed -i '...' tools/ots/xp/AbiOts.cpp </command>: - This command is used to fix an incompatibility with - <application>GCC</application> and the - <application>libots</application> package.</para> ---> + <para> + <option>--enable-plugins="collab openxml goffice grammar"</option>: Build + some or all of the collab plugins. The openxml plugin enables + <application>Abiword</application> to open some .docx files (requires + <xref linkend="boost"/>). The grammar plugin requires + <ulink url="http://www.abisource.com/projects/link-grammar/">Link Grammar + Parser</ulink> + </para> </sect2> <sect2 role="configuration"> @@ -196,46 +246,55 @@ <sect3 id="abiword-config"> <title>Config File</title> - <para><filename>~/.AbiSuite/templates/normal.awt</filename></para> + <para> + <filename>~/.AbiSuite/templates/normal.awt</filename> + </para> <indexterm zone="abiword abiword-config"> <primary sortas="e-AA.AbiSuite-templates-normal">~/.AbiSuite/templates/normal.awt</primary> </indexterm> - </sect3> <sect3> <title>Configuration Information</title> - <para>Choose the right template for your language and locale from the - list produced by the following command:</para> + <para> + Choose the right template for your language and locale from the list + produced by the following command: + </para> <screen><userinput>ls /usr/share/abiword-&AbiWord-minor-version;/templates</userinput></screen> - <para>Create the folder - <filename class='directory'>~/.AbiSuite/templates</filename> then copy the - <filename>normal.awt</filename> you want into it:</para> + <para> + Create the folder + <filename class='directory'>~/.AbiSuite/templates</filename> then copy + the <filename>normal.awt</filename> you want into it: + </para> <screen><userinput>install -v -m750 -d ~/.AbiSuite/templates && install -v -m640 /usr/share/abiword-&AbiWord-minor-version;/templates/normal.awt-<replaceable><lang></replaceable> \ ~/.AbiSuite/templates/normal.awt</userinput></screen> - <para>Change <replaceable><lang></replaceable> by the above - command to fit the name of the file you want.</para> + <para> + Change <replaceable><lang></replaceable> by the above command to + fit the name of the file you want. + </para> - <para>If you are using multiple languages, you may need to edit the template - to use a font with greater coverage (e.g. one of the - <ulink url="http://dejavu.sourceforge.net/">DejaVu fonts</ulink>), - because <application>Abiword</application> does not use - <application>fontconfig</application> and can only display glyphs that - are provided in the chosen font.</para> + <para> + If you are using multiple languages, you may need to edit the template + to use a font with greater coverage (e.g. one of the + <ulink url="http://dejavu.sourceforge.net/">DejaVu fonts</ulink>), + because <application>Abiword</application> does not use + <application>fontconfig</application> and can only display glyphs that + are provided in the chosen font. + </para> - <para>If you have <xref linkend="desktop-file-utils"/> installed, - you should run the <command>update-desktop-database</command> command - to update the mimeinfo cache and allow the Help system to work.</para> - + <para> + If you have <xref linkend="desktop-file-utils"/> installed, you should + run the <command>update-desktop-database</command> command to update the + mimeinfo cache and allow the Help system to work. + </para> </sect3> - </sect2> <sect2 role="content"> @@ -263,9 +322,11 @@ <varlistentry id="abiword-prog"> <term><command>abiword</command></term> <listitem> - <para>is the word processor, a wrapper for the functions in - libabiword-&AbiWord-minor-version; - it can also be used on the - command line, see <command>man 1 abiword</command>.</para> + <para> + is the word processor, a wrapper for the functions in + libabiword-&AbiWord-minor-version; - it can also be used on the + command line, see <command>man 1 abiword</command>. + </para> <indexterm zone="abiword abiword-prog"> <primary sortas="b-abiword">abiword</primary> </indexterm> @@ -273,17 +334,16 @@ </varlistentry> <varlistentry id="libabiword"> - <term><filename class='libraryfile'>libabiword-&AbiWord-minor-version;.{so,a}</filename></term> + <term><filename class='libraryfile'>libabiword-&AbiWord-minor-version;.so</filename></term> <listitem> - <para>provides functions to access MS Word documents.</para> + <para> + provides functions to access MS Word documents. + </para> <indexterm zone="abiword libabiword"> - <primary sortas="c-libabiword">libabiword-&AbiWord-minor-version;.{so,a}</primary> + <primary sortas="c-libabiword">libabiword-&AbiWord-minor-version;.so</primary> </indexterm> </listitem> </varlistentry> - </variablelist> - </sect2> - </sect1> -- http://linuxfromscratch.org/mailman/listinfo/blfs-book FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
