source: general/genlib/libxml2.xml@ 6cd8a9a

11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since 6cd8a9a was 6cd8a9a, checked in by Pierre Labastie <pierre.labastie@…>, 19 months ago

Update to libxml2-2.10.3 (security update)

  • Property mode set to 100644
File size: 8.6 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 <!-- Also update the download, md5, size entities in libxml2py2.xml -->
8 <!ENTITY libxml2-download-http "https://download.gnome.org/sources/libxml2/2.10/libxml2-&libxml2-version;.tar.xz">
9<!-- <!ENTITY libxml2-download-http "http://xmlsoft.org/sources/libxml2-&libxml2-version;.tar.xz">-->
10 <!ENTITY libxml2-download-ftp " ">
11 <!ENTITY libxml2-md5sum "f9edac7fac232b3657a003fd9a5bbe42">
12 <!ENTITY libxml2-size "2.5 MB">
13 <!ENTITY libxml2-buildsize "105 MB (with tests)">
14 <!ENTITY libxml2-time "0.4 SBU (Using parallelism=4; with tests)">
15 <!ENTITY testsuite-version "20130923">
16]>
17
18<sect1 id="libxml2" xreflabel="libxml2-&libxml2-version;">
19 <?dbhtml filename="libxml2.html"?>
20
21 <sect1info>
22 <date>$Date$</date>
23 </sect1info>
24
25 <title>libxml2-&libxml2-version;</title>
26
27 <indexterm zone="libxml2">
28 <primary sortas="a-libxml2">libxml2</primary>
29 </indexterm>
30
31 <sect2 role="package">
32 <title>Introduction to libxml2</title>
33
34 <para>
35 The <application>libxml2</application> package contains libraries
36 and utilities used for parsing XML files.
37 </para>
38
39 &lfs112_checked;
40
41 <bridgehead renderas="sect3">Package Information</bridgehead>
42 <itemizedlist spacing="compact">
43 <listitem>
44 <para>
45 Download (HTTP): <ulink url="&libxml2-download-http;"/>
46 </para>
47 </listitem>
48 <listitem>
49 <para>
50 Download (FTP): <ulink url="&libxml2-download-ftp;"/>
51 </para>
52 </listitem>
53 <listitem>
54 <para>
55 Download MD5 sum: &libxml2-md5sum;
56 </para>
57 </listitem>
58 <listitem>
59 <para>
60 Download size: &libxml2-size;
61 </para>
62 </listitem>
63 <listitem>
64 <para>
65 Estimated disk space required: &libxml2-buildsize;
66 </para>
67 </listitem>
68 <listitem>
69 <para>
70 Estimated build time: &libxml2-time;
71 </para>
72 </listitem>
73 </itemizedlist>
74
75 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
76 <itemizedlist spacing="compact">
77 <listitem>
78 <para>
79 Optional Testsuite:
80 <ulink url="https://www.w3.org/XML/Test/xmlts&testsuite-version;.tar.gz"/> - This
81 enables <command>make check</command> to do complete testing.
82 </para>
83 </listitem>
84 </itemizedlist>
85
86 <bridgehead renderas="sect3">libxml2 Dependencies</bridgehead>
87<!-- do not advertize python2 here, except in the note below
88 <bridgehead renderas="sect4">Optional</bridgehead>
89 <para role="optional">
90 <xref linkend="python2"/>
91 </para>
92-->
93 <bridgehead renderas="sect4">Optional</bridgehead>
94 <para role="optional">
95 <xref linkend="icu"/> (see below) and
96 <xref linkend="valgrind"/> (may be used in the tests)
97 </para>
98
99 <note>
100 <para>
101 The old <application>Python2</application> module can be built after
102 <filename class="libraryfile">libxml2.so</filename> has been installed,
103 see <xref linkend="libxml2py2"/>.
104 </para>
105 </note>
106
107 <para condition="html" role="usernotes">
108 User Notes: <ulink url="&blfs-wiki;/libxml2"/>
109 </para>
110 </sect2>
111
112 <sect2 role="installation">
113 <title>Installation of libxml2</title>
114<!-- No longer needed with 2.10.2.
115 <para>
116 First, fix a problem recognizing Python-3.10:
117 </para>
118
119<screen><userinput>autoreconf -fiv</userinput></screen>
120-->
121 <para>
122 Install <application>libxml2</application> by running the following
123 commands:
124 </para>
125
126<screen><userinput>./configure --prefix=/usr \
127 --sysconfdir=/etc \
128 --disable-static \
129 --with-history \
130 PYTHON=/usr/bin/python3 \
131 --docdir=/usr/share/doc/libxml2-&libxml2-version; &amp;&amp;
132make</userinput></screen>
133
134 <para>
135 If you downloaded the testsuite, issue the following command:
136 </para>
137
138<screen><userinput>tar xf ../xmlts&testsuite-version;.tar.gz</userinput></screen>
139
140 <para>
141 To test the results, issue: <command>make check &gt; check.log</command>.
142 A summary of the results can be obtained with <command>grep -E
143 '^Total|expected' check.log</command>. If <xref linkend="valgrind"/> is
144 installed and you want to check for memory leaks, replace
145 <command>check</command> with <command>check-valgrind</command>.
146 </para>
147
148 <note>
149 <para>
150 The tests use <ulink url="http://localhost/">http://localhost/</ulink>
151 to test parsing of external entities. If the machine where you run the
152 tests serves as a web site, the tests may hang, depending on the
153 content of the file served. It is therefore recommended to shut down
154 the server during the tests, as the <systemitem
155 class="username">root</systemitem> user:
156 </para>
157
158<screen role="nodump" revision="sysv"><userinput>/etc/init.d/httpd stop</userinput></screen>
159<screen role="nodump" revision="systemd"><userinput>systemctl stop httpd.service</userinput></screen>
160
161 </note>
162
163 <para>
164 Now, as the <systemitem class="username">root</systemitem> user:
165 </para>
166
167<screen role="root"><userinput>make install</userinput></screen>
168 </sect2>
169
170 <sect2 role="commands">
171 <title>Command Explanations</title>
172
173 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
174 href="../../xincludes/static-libraries.xml"/>
175
176 <para>
177 <parameter>--with-history</parameter>: This switch enables
178 <application>Readline</application> support when running
179 <command>xmlcatalog</command> or <command>xmllint</command> in shell mode.
180 </para>
181
182 <para>
183 <parameter>PYTHON=/usr/bin/python3</parameter>: Allows building
184 the libxml2 module with Python3 instead of Python2.
185 </para>
186
187 <para>
188 <option>--with-icu</option>: Add this switch if you have built
189 <xref linkend="icu"/>, for better unicode support.
190 </para>
191
192 </sect2>
193
194 <sect2 role="content">
195 <title>Contents</title>
196
197 <segmentedlist>
198 <segtitle>Installed Programs</segtitle>
199 <segtitle>Installed Libraries</segtitle>
200 <segtitle>Installed Directories</segtitle>
201
202 <seglistitem>
203 <seg>
204 xml2-config,
205 xmlcatalog, and
206 xmllint
207 </seg>
208 <seg>
209 libxml2.so
210 </seg>
211 <seg>
212 /usr/include/libxml2,
213 /usr/lib/cmake/libxml2,
214 /usr/share/doc/libxml2-&libxml2-version;, and
215 /usr/share/gtk-doc/html/libxml2
216 </seg>
217 </seglistitem>
218 </segmentedlist>
219
220 <variablelist>
221 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
222 <?dbfo list-presentation="list"?>
223 <?dbhtml list-presentation="table"?>
224
225 <varlistentry id="xml2-config">
226 <term><command>xml2-config</command></term>
227 <listitem>
228 <para>
229 determines the compile and linker flags that should be used to
230 compile and link programs that use
231 <filename class="libraryfile">libxml2</filename>
232 </para>
233 <indexterm zone="libxml2 xml2-config">
234 <primary sortas="b-xml2-config">xml2-config</primary>
235 </indexterm>
236 </listitem>
237 </varlistentry>
238
239 <varlistentry id="xmlcatalog">
240 <term><command>xmlcatalog</command></term>
241 <listitem>
242 <para>
243 is used to monitor and manipulate XML and SGML catalogs
244 </para>
245 <indexterm zone="libxml2 xmlcatalog">
246 <primary sortas="b-xmlcatalog">xmlcatalog</primary>
247 </indexterm>
248 </listitem>
249 </varlistentry>
250
251 <varlistentry id="xmllint">
252 <term><command>xmllint</command></term>
253 <listitem>
254 <para>
255 parses XML files and outputs reports (based upon options) to detect
256 errors in XML coding
257 </para>
258 <indexterm zone="libxml2 xmllint">
259 <primary sortas="b-xmllint">xmllint</primary>
260 </indexterm>
261 </listitem>
262 </varlistentry>
263
264 <varlistentry id="libxml2-lib">
265 <term><filename class="libraryfile">libxml2.so</filename></term>
266 <listitem>
267 <para>
268 provides functions for programs to parse files that use the XML
269 format
270 </para>
271 <indexterm zone="libxml2 libxml2-lib">
272 <primary sortas="c-libxml2">libxml2.so</primary>
273 </indexterm>
274 </listitem>
275 </varlistentry>
276
277 </variablelist>
278
279 </sect2>
280
281</sect1>
Note: See TracBrowser for help on using the repository browser.