source: general/genlib/libxml2.xml@ dd9e0c3

systemd-13485
Last change on this file since dd9e0c3 was 920f21a, checked in by Douglas R. Reno <renodr@…>, 8 years ago

Add security fixes for libxml2 to both books.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@17357 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 7.9 KB
Line 
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 libxml2-download-http "http://xmlsoft.org/sources/libxml2-&libxml2-version;.tar.gz">
8 <!ENTITY libxml2-download-ftp "ftp://xmlsoft.org/libxml2/libxml2-&libxml2-version;.tar.gz">
9 <!ENTITY libxml2-md5sum "daece17e045f1c107610e137ab50c179">
10 <!ENTITY libxml2-size "5.2 MB">
11 <!ENTITY libxml2-buildsize "95 MB (additional 20 MB for tests)">
12 <!ENTITY libxml2-time "0.5 SBU (additional 0.2 SBU for tests)">
13 <!ENTITY testsuite-version "20130923">
14]>
15
16<sect1 id="libxml2" xreflabel="libxml2-&libxml2-version;">
17 <?dbhtml filename="libxml2.html"?>
18
19 <sect1info>
20 <othername>$LastChangedBy$</othername>
21 <date>$Date$</date>
22 </sect1info>
23
24 <title>libxml2-&libxml2-version;</title>
25
26 <indexterm zone="libxml2">
27 <primary sortas="a-libxml2">libxml2</primary>
28 </indexterm>
29
30 <sect2 role="package">
31 <title>Introduction to libxml2</title>
32
33 <para>
34 The <application>libxml2</application> package contains libraries
35 and utilities used for parsing XML files.
36 </para>
37
38 &lfs79_checked;
39
40 &gcc6_checked;
41
42 <bridgehead renderas="sect3">Package Information</bridgehead>
43 <itemizedlist spacing="compact">
44 <listitem>
45 <para>
46 Download (HTTP): <ulink url="&libxml2-download-http;"/>
47 </para>
48 </listitem>
49 <listitem>
50 <para>
51 Download (FTP): <ulink url="&libxml2-download-ftp;"/>
52 </para>
53 </listitem>
54 <listitem>
55 <para>
56 Download MD5 sum: &libxml2-md5sum;
57 </para>
58 </listitem>
59 <listitem>
60 <para>
61 Download size: &libxml2-size;
62 </para>
63 </listitem>
64 <listitem>
65 <para>
66 Estimated disk space required: &libxml2-buildsize;
67 </para>
68 </listitem>
69 <listitem>
70 <para>
71 Estimated build time: &libxml2-time;
72 </para>
73 </listitem>
74 </itemizedlist>
75
76 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
77 <itemizedlist spacing="compact">
78 <listitem>
79 <para>
80 Optional Testsuite:
81 <ulink url="http://www.w3.org/XML/Test/xmlts&testsuite-version;.tar.gz"/> - This
82 enables <command>make check</command> to do complete testing.
83 </para>
84 </listitem>
85 <listitem>
86 <para>
87 Required patch:
88 <ulink url="&patch-root;/libxml2-&libxml2-version;-security_fixes-1.patch"/>
89 </para>
90 </listitem>
91 </itemizedlist>
92
93 <bridgehead renderas="sect3">libxml2 Dependencies</bridgehead>
94
95 <bridgehead renderas="sect4">Recommended</bridgehead>
96 <para role="recommended">
97 <xref linkend="python2"/> or <xref linkend="python3"/> (to build and install a
98 <application>Python</application> library module, additionally it is
99 required to run the full suite of tests)
100 </para>
101
102 <note>
103 <para>
104 Some packages which utilize <application>libxml2</application> (such as
105 <application>GNOME Doc Utils</application>) need the
106 <application>Python</application> module installed to function properly
107 and some packages will not build properly if the
108 <application>Python</application> module is not available.
109 </para>
110 </note>
111
112 <para role="optional">
113 <xref linkend="valgrind"/> (may be used in the tests)
114 </para>
115
116 <para condition="html" role="usernotes">
117 User Notes: <ulink url="&blfs-wiki;/libxml2"/>
118 </para>
119 </sect2>
120
121 <sect2 role="installation">
122 <title>Installation of libxml2</title>
123
124 <para>
125 Install <application>libxml2</application> by running the following
126 commands:
127 </para>
128
129<screen><userinput>patch -Np1 -i ../libxml2-&libxml2-version;-security_fixes-1.patch &amp;&amp;
130./configure --prefix=/usr --disable-static --with-history &amp;&amp;
131make</userinput></screen>
132
133 <para>If you downloaded the testsuite, issue the following command:</para>
134
135<screen><userinput>tar xf ../xmlts&testsuite-version;.tar.gz</userinput></screen>
136
137 <para>
138 To test the results, issue: <command>make check &gt; check.log</command>.
139 A summary of the results can be obtained with <command>grep -E
140 '^Total|expected' check.log</command>. If <xref linkend="valgrind"/> is
141 installed and you want to check memory leaks, replace
142 <command>check</command> with <command>check-valgrind</command>.
143 </para>
144
145 <para>
146 Now, as the <systemitem class="username">root</systemitem> user:
147 </para>
148
149<screen role="root"><userinput>make install</userinput></screen>
150 </sect2>
151
152 <sect2 role="commands">
153 <title>Command Explanations</title>
154
155 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
156 href="../../xincludes/static-libraries.xml"/>
157
158 <para>
159 <parameter>--with-history</parameter>: This switch enables
160 <application>Readline</application> support when running
161 <command>xmlcatalog</command> or <command>xmllint</command> in shell mode.
162 </para>
163
164 <para>
165 <option>--with-python=/usr/bin/python3</option>: Add this switch if you
166 want libxml2 to use Python3 instead of Python2.
167 </para>
168
169 </sect2>
170
171 <sect2 role="content">
172 <title>Contents</title>
173
174 <segmentedlist>
175 <segtitle>Installed Programs</segtitle>
176 <segtitle>Installed Libraries</segtitle>
177 <segtitle>Installed Directories</segtitle>
178
179 <seglistitem>
180 <seg>
181 xml2-config, xmlcatalog and xmllint
182 </seg>
183 <seg>
184 libxml2.so and optionally, the libxml2mod.so
185 <application>Python</application> module
186 </seg>
187 <seg>
188 /usr/include/libxml2,
189 /usr/lib/cmake/libxml2,
190 /usr/share/doc/libxml2-&libxml2-version;,
191 /usr/share/doc/libxml2-python-&libxml2-version;, and
192 /usr/share/gtk-doc/html/libxml2
193 </seg>
194 </seglistitem>
195 </segmentedlist>
196
197 <variablelist>
198 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
199 <?dbfo list-presentation="list"?>
200 <?dbhtml list-presentation="table"?>
201
202 <varlistentry id="xml2-config">
203 <term><command>xml2-config</command></term>
204 <listitem>
205 <para>
206 determines the compile and linker flags that should be used to
207 compile and link programs that use
208 <filename class='libraryfile'>libxml2</filename>.
209 </para>
210 <indexterm zone="libxml2 xml2-config">
211 <primary sortas="b-xml2-config">xml2-config</primary>
212 </indexterm>
213 </listitem>
214 </varlistentry>
215
216 <varlistentry id="xmlcatalog">
217 <term><command>xmlcatalog</command></term>
218 <listitem>
219 <para>
220 is used to monitor and manipulate XML and SGML catalogs.
221 </para>
222 <indexterm zone="libxml2 xmlcatalog">
223 <primary sortas="b-xmlcatalog">xmlcatalog</primary>
224 </indexterm>
225 </listitem>
226 </varlistentry>
227
228 <varlistentry id="xmllint">
229 <term><command>xmllint</command></term>
230 <listitem>
231 <para>
232 parses XML files and outputs reports (based upon options) to detect
233 errors in XML coding.
234 </para>
235 <indexterm zone="libxml2 xmllint">
236 <primary sortas="b-xmllint">xmllint</primary>
237 </indexterm>
238 </listitem>
239 </varlistentry>
240
241 <varlistentry id="libxml2-lib">
242 <term><filename class="libraryfile">libxml2.so</filename></term>
243 <listitem>
244 <para>
245 provides functions for programs to parse files that use the XML
246 format.
247 </para>
248 <indexterm zone="libxml2 libxml2-lib">
249 <primary sortas="c-libxml2">libxml2.so</primary>
250 </indexterm>
251 </listitem>
252 </varlistentry>
253
254 </variablelist>
255
256 </sect2>
257
258</sect1>
Note: See TracBrowser for help on using the repository browser.