source: pst/sgml/opensp.xml@ f3ed6a7

10.0 10.1 11.0 6.0 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 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 ken/refactor-virt krejzi/svn lazarus nosym perl-modules qt5new systemd-11177 systemd-13485 trunk upgradedb xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since f3ed6a7 was f3ed6a7, checked in by Randy McMurchy <randy@…>, 17 years ago

Added gcc34 patch to OpenSP to fix a build problem when using GCC-3.4.x

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

  • Property mode set to 100644
File size: 6.2 KB
Line 
1<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
2 "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
3 <!ENTITY % general-entities SYSTEM "../../general.ent">
4 %general-entities;
5
6 <!ENTITY opensp-download-http "http://download.sourceforge.net/openjade/OpenSP-&opensp-version;.tar.gz">
7 <!ENTITY opensp-download-ftp " ">
8 <!ENTITY opensp-size "1.4 MB">
9 <!ENTITY opensp-buildsize "37 MB">
10 <!ENTITY opensp-time "1.50 SBU">
11]>
12
13<sect1 id="opensp" xreflabel="OpenSP-&opensp-version;">
14<?dbhtml filename="opensp.html"?>
15<title>OpenSP-&opensp-version;</title>
16
17<sect2>
18<title>Introduction to <application>OpenSP</application></title>
19
20<para>The <application>OpenSP</application> package contains a
21<application>C++</application> library for using
22<acronym>SGML</acronym>/<acronym>XML</acronym> files.
23This is useful for validating, parsing and manipulating
24<acronym>SGML</acronym> and <acronym>XML</acronym>
25documents.</para>
26
27<sect3><title>Package information</title>
28<itemizedlist spacing='compact'>
29<listitem><para>Download (HTTP): <ulink
30url="&opensp-download-http;"/></para></listitem>
31<listitem><para>Download (FTP): <ulink
32url="&opensp-download-ftp;"/></para></listitem>
33<listitem><para>Download size: &opensp-size;</para></listitem>
34<listitem><para>Estimated Disk space required:
35&opensp-buildsize;</para></listitem>
36<listitem><para>Estimated build time:
37&opensp-time;</para></listitem></itemizedlist>
38</sect3>
39<sect3><title>Additional downloads</title>
40<itemizedlist spacing='compact'>
41<listitem><para>Required Patch: <ulink
42url="&patch-root;/OpenSP-&opensp-version;-LITLEN-1.patch"/></para></listitem>
43<listitem><para>Required Patch: <ulink
44url="&patch-root;/OpenSP-&opensp-version;-gcc34-1.patch"/></para></listitem>
45</itemizedlist></sect3>
46
47<sect3><title><application>OpenSP</application> dependencies</title>
48<sect4><title>Required</title>
49<para><xref linkend="sgml-common"/></para></sect4>
50</sect3>
51
52</sect2>
53
54<sect2>
55<title>Installation of <application>OpenSP</application></title>
56
57<para>Install <application>OpenSP</application> by running the following
58commands:</para>
59
60<screen><userinput><command>patch -Np1 -i ../OpenSP-&opensp-version;-LITLEN-1.patch &amp;&amp;
61patch -Np1 -i ../OpenSP-&opensp-version;-gcc34-1.patch &amp;&amp;
62./configure --prefix=/usr --disable-static --enable-http \
63 --enable-default-catalog=/etc/sgml/catalog \
64 --enable-default-search-path=/usr/share/sgml &amp;&amp;
65make pkgdatadir=/usr/share/sgml/OpenSP-&opensp-version; &amp;&amp;
66make pkgdatadir=/usr/share/sgml/OpenSP-&opensp-version; install &amp;&amp;
67ln -sf onsgmls /usr/bin/nsgmls &amp;&amp;
68ln -sf osgmlnorm /usr/bin/sgmlnorm &amp;&amp;
69ln -sf ospam /usr/bin/spam &amp;&amp;
70ln -sf ospcat /usr/bin/spcat &amp;&amp;
71ln -sf ospent /usr/bin/spent &amp;&amp;
72ln -sf osx /usr/bin/sx &amp;&amp;
73ln -sf osx /usr/bin/sgml2xml &amp;&amp;
74ln -sf libosp.so /usr/lib/libsp.so &amp;&amp;
75install-catalog --add /etc/sgml/OpenSP-&opensp-version;.cat \
76 /usr/share/sgml/OpenSP-&opensp-version;/catalog &amp;&amp;
77install-catalog --add /etc/sgml/sgml-docbook.cat \
78 /etc/sgml/OpenSP-&opensp-version;.cat</command></userinput></screen>
79
80<tip><title>Update hint</title>
81<para>Remove the above catalog items prior to upgrading with:
82<screen><command>install-catalog --remove /etc/sgml/OpenSP-<replaceable>[version]</replaceable>.cat \
83 /usr/share/sgml/OpenSP-<replaceable>[version]</replaceable>/catalog &amp;&amp;
84install-catalog --remove /etc/sgml/sgml-docbook.cat \
85 /etc/sgml/OpenSP-<replaceable>[version]</replaceable>.cat</command></screen></para></tip>
86
87</sect2>
88
89<sect2>
90<title>Command explanations</title>
91
92<para><command>patch -Np1 -i ../OpenSP-&opensp-version;-LITLEN-1.patch</command>:
93This patch removes some annoying messages that can appear while running
94<command>openjade</command></para>
95
96<para><command>patch -Np1 -i ../OpenSP-&opensp-version;-gcc34-1.patch</command>:
97This patch fixes a build problem when using
98<application>GCC</application>-3.4.x.</para>
99
100<para><option>--disable-static</option>: This switch prevents
101the building of the static library.</para>
102
103<para><option>--enable-http</option>: This switch adds support
104for <acronym>HTTP</acronym>.</para>
105
106<para><parameter>--enable-default-catalog=/etc/sgml/catalog</parameter>: This
107switch sets the path to the centralized catalog.</para>
108
109<para><parameter>--enable-default-search-path</parameter>: This switch
110sets the default value of <envar>SGML_SEARCH_PATH</envar>.</para>
111
112<para><option>--enable-xml-messages</option>: This switch adds
113support for <acronym>XML</acronym> Formatted Messages.</para>
114
115<para><command>make pkgdatadir=/usr/share/sgml/OpenSP-&opensp-version;</command>:
116This sets the pkgdatadir variable in the <filename>Makefile</filename> from
117<filename class="directory">/usr/share/OpenSP</filename> to
118<filename class="directory">/usr/share/sgml/OpenSP-1.5</filename>.</para>
119
120<para><screen><command>ln -sf onsgmls /usr/bin/nsgmls
121ln -sf osgmlnorm /usr/bin/sgmlnorm
122ln -sf ospam /usr/bin/spam
123ln -sf ospcat /usr/bin/spcat
124ln -sf ospent /usr/bin/spent
125ln -sf osx /usr/bin/sx
126ln -sf osx /usr/bin/sgml2xml
127ln -sf libosp.so /usr/lib/libsp.so</command></screen>
128These commands create the <application>SP</application> equivalents of
129<application>OpenSP</application> executables and libraries.</para>
130
131</sect2>
132
133<sect2>
134<title>Contents</title>
135
136<para>The <application>OpenSP</application> package contains
137<command>onsgmls</command>,
138<command>ospam</command>, <command>osx</command>,
139<command>ospcat</command> and
140<command>ospent</command>.</para>
141
142</sect2>
143
144<sect2><title>Description</title>
145
146<sect3><title>onsgmls</title>
147<para><command>onsgmls</command> processes <acronym>SGML</acronym>
148files.</para></sect3>
149
150<sect3><title>ospam</title>
151<para><command>ospam</command> is a markup stream editor.</para></sect3>
152
153<sect3><title>osx</title>
154<para><command>osx</command> is a <acronym>SGML</acronym> normalizer or a
155converter of <acronym>SGML</acronym> to <acronym>XML</acronym>.</para></sect3>
156
157<sect3><title>ospcat</title>
158<para><command>ospcat</command> prints effective system identifiers found in the
159catalogs.</para></sect3>
160
161<sect3><title>ospent</title>
162<para><command>ospent</command> provides access to
163<application>OpenSP</application>'s entity manager.</para></sect3>
164
165</sect2>
166
167</sect1>
168
Note: See TracBrowser for help on using the repository browser.