source: general/genlib/libxml2.xml@ d514a90

10.1 11.0 11.1 11.2 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 upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since d514a90 was 1b8bba3, checked in by Bruce Dubbs <bdubbs@…>, 4 years ago

Update to nss-3.58.
Update to soundtouch-2.2.
Update to enchant-2.2.12.
Update to sysprof-3.38.1.
Update to opencv-4.5.0.
Tweak libxml2 for Python-3.9.
Minor change when updating glib2.

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

  • Property mode set to 100644
File size: 11.4 KB
RevLine 
[52d29f7]1<?xml version="1.0" encoding="ISO-8859-1"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[52d29f7]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[382abcaf]7 <!-- Also update the download, md5, size entities in libxml2py2.xml -->
[8180b89]8 <!ENTITY libxml2-download-http "http://xmlsoft.org/sources/libxml2-&libxml2-version;.tar.gz">
9 <!ENTITY libxml2-download-ftp "ftp://xmlsoft.org/libxml2/libxml2-&libxml2-version;.tar.gz">
[df013c7f]10 <!ENTITY libxml2-md5sum "10942a1dc23137a8aa07f0639cbfece5">
11 <!ENTITY libxml2-size "5.4 MB">
12 <!ENTITY libxml2-buildsize "87 MB (add 15 MB for tests)">
[0065e69]13 <!ENTITY libxml2-time "0.2 SBU (add 0.3 SBU for tests)">
[6b262734]14 <!ENTITY testsuite-version "20130923">
[52d29f7]15]>
16
[f45b1953]17<sect1 id="libxml2" xreflabel="libxml2-&libxml2-version;">
[1515ed8a]18 <?dbhtml filename="libxml2.html"?>
[8e75f8b9]19
[1515ed8a]20 <sect1info>
21 <othername>$LastChangedBy$</othername>
22 <date>$Date$</date>
23 </sect1info>
[8e75f8b9]24
[437700ae]25 <title>libxml2-&libxml2-version;</title>
[8e75f8b9]26
[1515ed8a]27 <indexterm zone="libxml2">
[8180b89]28 <primary sortas="a-libxml2">libxml2</primary>
[1515ed8a]29 </indexterm>
30
31 <sect2 role="package">
[437700ae]32 <title>Introduction to libxml2</title>
[8e75f8b9]33
[325113f]34 <para>
[8180b89]35 The <application>libxml2</application> package contains libraries
36 and utilities used for parsing XML files.
[325113f]37 </para>
[8e75f8b9]38
[eeaa41b7]39 &lfs10_checked;
[7f4cdbc0]40
[1515ed8a]41 <bridgehead renderas="sect3">Package Information</bridgehead>
42 <itemizedlist spacing="compact">
43 <listitem>
[8180b89]44 <para>
45 Download (HTTP): <ulink url="&libxml2-download-http;"/>
46 </para>
[1515ed8a]47 </listitem>
48 <listitem>
[8180b89]49 <para>
50 Download (FTP): <ulink url="&libxml2-download-ftp;"/>
51 </para>
[1515ed8a]52 </listitem>
53 <listitem>
[8180b89]54 <para>
55 Download MD5 sum: &libxml2-md5sum;
56 </para>
[1515ed8a]57 </listitem>
58 <listitem>
[8180b89]59 <para>
60 Download size: &libxml2-size;
61 </para>
[1515ed8a]62 </listitem>
63 <listitem>
[8180b89]64 <para>
65 Estimated disk space required: &libxml2-buildsize;
66 </para>
[1515ed8a]67 </listitem>
68 <listitem>
[8180b89]69 <para>
70 Estimated build time: &libxml2-time;
71 </para>
[1515ed8a]72 </listitem>
73 </itemizedlist>
[8e75f8b9]74
[9a788838]75 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
[8180b89]76 <itemizedlist spacing="compact">
[5da63eb]77 <listitem>
[325113f]78 <para>
79 Optional Testsuite:
[6b262734]80 <ulink url="http://www.w3.org/XML/Test/xmlts&testsuite-version;.tar.gz"/> - This
[325113f]81 enables <command>make check</command> to do complete testing.
82 </para>
[5da63eb]83 </listitem>
[9a788838]84 </itemizedlist>
[5da63eb]85
[437700ae]86 <bridgehead renderas="sect3">libxml2 Dependencies</bridgehead>
[8e75f8b9]87
[60ddbaf]88 <bridgehead renderas="sect4">Optional</bridgehead>
89 <para role="optional">
90 <xref linkend="python2"/> <!--or <xref linkend="python3"/> (to build and
[ca25773]91 install a <application>Python</application> library module, additionally
[60ddbaf]92 it is required to run the full suite of tests)-->
[40eb6f7]93 <!-- As discovered by Bruce, itstool needs this module. -->
[325113f]94 </para>
[0af6ce1]95
[1aadfdf]96 <note>
[325113f]97 <para>
98 Some packages which utilize <application>libxml2</application> (such as
99 <application>GNOME Doc Utils</application>) need the
[cd964c8]100 <application>Python3</application> module installed to function properly
[5bee197]101 and some packages will not build properly if the
[cd964c8]102 <application>Python3</application> module is not available.
103 </para>
104
105 <para>
106 The old <application>Python2</application> module can be built after
107 <filename class="libraryfile">libxml2.so</filename> has been installed,
108 see <xref linkend="libxml2py2"/>.
[325113f]109 </para>
[1aadfdf]110 </note>
111
[3fe6951]112 <bridgehead renderas="sect4">Optional</bridgehead>
[ec91d9f]113 <para role="optional">
[626576d4]114 <xref linkend="icu"/> and
[ec91d9f]115 <xref linkend="valgrind"/> (may be used in the tests)
116 </para>
117
[325113f]118 <para condition="html" role="usernotes">
119 User Notes: <ulink url="&blfs-wiki;/libxml2"/>
120 </para>
[1515ed8a]121 </sect2>
[8e75f8b9]122
[1515ed8a]123 <sect2 role="installation">
[437700ae]124 <title>Installation of libxml2</title>
[1b8bba3]125
[cc2643e1]126 <para>
[1b8bba3]127 First fix a problem generating the Python3 module with Python-3.9.0 and later:
[cc2643e1]128 </para>
129
[1b8bba3]130<screen><userinput>sed -i '/if Py/{s/Py/(Py/;s/)/))/}' python/{types.c,libxml.c}</userinput></screen>
[cc2643e1]131
132 <para>
133 To ensure that the <application>Python</application> module can be
[cd964c8]134 built by <xref linkend="python3"/>, run:
[ca25773]135 </para>
136
137<screen><userinput>sed -i '/_PyVerify_fd/,+1d' python/types.c</userinput></screen>
[1b8bba3]138
[df013c7f]139 <para>
140 If you are going to run the tests, disable one test that prevents the
141 tests from completing:
142 </para>
143
144<screen><userinput>sed -i 's/test.test/#&amp;/' python/tests/tstLastError.py</userinput></screen>
145
[325113f]146 <para>
147 Install <application>libxml2</application> by running the following
148 commands:
149 </para>
[1515ed8a]150
[f2e7e668]151<screen><userinput>./configure --prefix=/usr \
[60ddbaf]152 --disable-static \
153 --with-history \
154 --with-python=/usr/bin/python3 &amp;&amp;
[1515ed8a]155make</userinput></screen>
156
[d56e7df]157 <para>
158 If you downloaded the testsuite, issue the following command:
159 </para>
[6000a3e]160
161<screen><userinput>tar xf ../xmlts&testsuite-version;.tar.gz</userinput></screen>
162
[8180b89]163 <para>
[beee921]164 To test the results, issue: <command>make check &gt; check.log</command>.
165 A summary of the results can be obtained with <command>grep -E
166 '^Total|expected' check.log</command>. If <xref linkend="valgrind"/> is
167 installed and you want to check memory leaks, replace
168 <command>check</command> with <command>check-valgrind</command>.
[8180b89]169 </para>
[8e75f8b9]170
[cf83ea8]171 <note>
172 <para>
173 The tests use <ulink url="http://localhost/">http://localhost/</ulink>
174 to test parsing of external entities. If the machine where you run the
175 tests serves as a web site, the tests may hang, depending on the
176 content of the file served. It is therefore recommended to shut down
177 the server during the tests, as the <systemitem
178 class="username">root</systemitem> user:
179 </para>
180
181<screen role="nodump" revision="sysv"><userinput>/etc/init.d/httpd stop</userinput></screen>
182<screen role="nodump" revision="systemd"><userinput>systemctl stop httpd.service</userinput></screen>
183
184 </note>
[325113f]185 <para>
186 Now, as the <systemitem class="username">root</systemitem> user:
187 </para>
[8e75f8b9]188
[1515ed8a]189<screen role="root"><userinput>make install</userinput></screen>
190 </sect2>
[8e75f8b9]191
[1515ed8a]192 <sect2 role="commands">
193 <title>Command Explanations</title>
194
[325113f]195 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
196 href="../../xincludes/static-libraries.xml"/>
[177d84bd]197<!--
[cd964c8]198 <para>
199 <parameter>sed -i '/_PyVerify_fd/,+1d' python/types.c</parameter>: This
200 fixes the <application>Python3</application> code to build with
201 <application>gcc-7</application>.
202 </para>
[177d84bd]203-->
[325113f]204 <para>
[f48df219]205 <parameter>--with-history</parameter>: This switch enables
[325113f]206 <application>Readline</application> support when running
207 <command>xmlcatalog</command> or <command>xmllint</command> in shell mode.
208 </para>
[8180b89]209
[f48df219]210 <para>
[177d84bd]211 <parameter>--with-python=/usr/bin/python3</parameter>: Allows building
[6c6f393]212 the libxml2 module with Python3 instead of Python2.
[f48df219]213 </para>
214
[ca25773]215 <para>
216 <option>--with-icu</option>: Add this switch if you have built
217 <xref linkend="icu"/>, for better unicode support.
218 </para>
219
220 <para>
221 <option>--with-threads</option>: Add this switch to enable multithread
222 support.
223 </para>
224
[1515ed8a]225 </sect2>
[8e75f8b9]226
[1515ed8a]227 <sect2 role="content">
228 <title>Contents</title>
229
230 <segmentedlist>
231 <segtitle>Installed Programs</segtitle>
232 <segtitle>Installed Libraries</segtitle>
233 <segtitle>Installed Directories</segtitle>
[8e75f8b9]234
[1515ed8a]235 <seglistitem>
[325113f]236 <seg>
[177d84bd]237 xml2-config,
238 xmlcatalog, and
239 xmllint <!--and the
[cd964c8]240 drv_libxml2.py and libxml2.py <application>Python3</application>
[177d84bd]241 modules. These are pythin modules, not programs -->
[325113f]242 </seg>
243 <seg>
[177d84bd]244 libxml2.so and
245 libxml2mod.so (<application>Python3</application> module)
[325113f]246 </seg>
247 <seg>
248 /usr/include/libxml2,
[ec91d9f]249 /usr/lib/cmake/libxml2,
[325113f]250 /usr/share/doc/libxml2-&libxml2-version;,
[ec91d9f]251 /usr/share/doc/libxml2-python-&libxml2-version;, and
[325113f]252 /usr/share/gtk-doc/html/libxml2
253 </seg>
[1515ed8a]254 </seglistitem>
255 </segmentedlist>
[8e75f8b9]256
[1515ed8a]257 <variablelist>
258 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
259 <?dbfo list-presentation="list"?>
260 <?dbhtml list-presentation="table"?>
[8e75f8b9]261
[1515ed8a]262 <varlistentry id="xml2-config">
263 <term><command>xml2-config</command></term>
264 <listitem>
[325113f]265 <para>
266 determines the compile and linker flags that should be used to
267 compile and link programs that use
268 <filename class='libraryfile'>libxml2</filename>.
269 </para>
[1515ed8a]270 <indexterm zone="libxml2 xml2-config">
271 <primary sortas="b-xml2-config">xml2-config</primary>
272 </indexterm>
273 </listitem>
274 </varlistentry>
[8e75f8b9]275
[1515ed8a]276 <varlistentry id="xmlcatalog">
277 <term><command>xmlcatalog</command></term>
278 <listitem>
[325113f]279 <para>
280 is used to monitor and manipulate XML and SGML catalogs.
281 </para>
[1515ed8a]282 <indexterm zone="libxml2 xmlcatalog">
283 <primary sortas="b-xmlcatalog">xmlcatalog</primary>
284 </indexterm>
285 </listitem>
286 </varlistentry>
[8e75f8b9]287
[1515ed8a]288 <varlistentry id="xmllint">
289 <term><command>xmllint</command></term>
290 <listitem>
[325113f]291 <para>
292 parses XML files and outputs reports (based upon options) to detect
293 errors in XML coding.
294 </para>
[1515ed8a]295 <indexterm zone="libxml2 xmllint">
296 <primary sortas="b-xmllint">xmllint</primary>
297 </indexterm>
298 </listitem>
299 </varlistentry>
[177d84bd]300<!--
[cd964c8]301 <varlistentry id="drv_libxml2.py3">
302 <term><command>drv_libxml2.py</command></term>
303 <listitem>
304 <para>
305 is a SAX <application>Python3</application> driver for libxml2.
306 </para>
307 <indexterm zone="libxml2 drv_libxml2.py3">
[4f29081]308 <primary sortas="b-drv_libxml2.py3">drv_libxml2.py for Python3</primary>
[cd964c8]309 </indexterm>
310 </listitem>
311 </varlistentry>
312
313 <varlistentry id="libxml2.py3">
314 <term><command>libxml2.py</command></term>
315 <listitem>
316 <para>
317 is the <application>Python3</application> binding for libxml2.
318 </para>
319 <indexterm zone="libxml2 libxml2.py3">
[4f29081]320 <primary sortas="b-libxml2.py3">libxml2.py for Python3</primary>
[cd964c8]321 </indexterm>
322 </listitem>
323 </varlistentry>
[177d84bd]324-->
[1515ed8a]325 <varlistentry id="libxml2-lib">
[8180b89]326 <term><filename class="libraryfile">libxml2.so</filename></term>
[1515ed8a]327 <listitem>
[325113f]328 <para>
329 provides functions for programs to parse files that use the XML
330 format.
331 </para>
[1515ed8a]332 <indexterm zone="libxml2 libxml2-lib">
[325113f]333 <primary sortas="c-libxml2">libxml2.so</primary>
[1515ed8a]334 </indexterm>
335 </listitem>
336 </varlistentry>
[8180b89]337
[cd964c8]338 <varlistentry id="libxml2mod3">
339 <term><filename class="libraryfile">libxml2mod.so</filename></term>
340 <listitem>
341 <para>
342 is the interface for <application>Python3</application>
343 to use <filename class="libraryfile">libxml2.so</filename>.
344 </para>
345 <indexterm zone="libxml2 libxml2mod3">
346 <primary sortas="c-libxml2mod">libxml2mod.so</primary>
347 </indexterm>
348 </listitem>
349 </varlistentry>
350
[1515ed8a]351 </variablelist>
[8180b89]352
[1515ed8a]353 </sect2>
[8180b89]354
[f45b1953]355</sect1>
Note: See TracBrowser for help on using the repository browser.