Fix libxml2 instructions for Python 3

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@18949 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
Pierre Labastie 2017-07-19 13:27:02 +00:00
parent 765c2a785c
commit ca25773c6b
3 changed files with 34 additions and 5 deletions

View File

@ -1,12 +1,12 @@
<!-- $LastChangedBy$ $Date$ -->
<!ENTITY day "17"> <!-- Always 2 digits -->
<!ENTITY day "19"> <!-- Always 2 digits -->
<!ENTITY month "07"> <!-- Always 2 digits -->
<!ENTITY year "2017">
<!ENTITY copyrightdate "2001-&year;">
<!ENTITY copyholder "The BLFS Development Team">
<!ENTITY version "&year;-&month;-&day;">
<!ENTITY releasedate "July 17th &year;">
<!ENTITY releasedate "July 19th &year;">
<!ENTITY pubdate "&year;-&month;-&day;"> <!-- metadata req. by TLDP -->
<!ENTITY blfs-version "svn"> <!-- svn|[release #] -->
<!ENTITY lfs-version "development"> <!-- x.y|development -->

View File

@ -93,9 +93,9 @@
<bridgehead renderas="sect4">Recommended</bridgehead>
<para role="recommended">
<xref linkend="python2"/> and <xref linkend="python3"/> (to build and install a
<application>Python</application> library module, additionally it is
required to run the full suite of tests)
<xref linkend="python2"/> or <xref linkend="python3"/> (to build and
install a <application>Python</application> library module, additionally
it is required to run the full suite of tests)
<!-- As discovered by Bruce, itstool needs this module. -->
</para>
@ -123,6 +123,13 @@
<sect2 role="installation">
<title>Installation of libxml2</title>
<para>
If you want to build the <application>Python</application> module for
<xref linkend="python3"/>, run:
</para>
<screen><userinput>sed -i '/_PyVerify_fd/,+1d' python/types.c</userinput></screen>
<para>
Install <application>libxml2</application> by running the following
commands:
@ -167,6 +174,16 @@ make</userinput></screen>
want libxml2 to use Python3 instead of Python2.
</para>
<para>
<option>--with-icu</option>: Add this switch if you have built
<xref linkend="icu"/>, for better unicode support.
</para>
<para>
<option>--with-threads</option>: Add this switch to enable multithread
support.
</para>
</sect2>
<sect2 role="content">

View File

@ -41,6 +41,18 @@
</itemizedlist>
</listitem>
-->
<listitem>
<para>July 19th, 2017</para>
<itemizedlist>
<listitem>
<para>[pierre] - Fix instructions for building libxml2 with
Python3, and add some command explanations. Fixes
<ulink url="&blfs-ticket-root;9467">#9467</ulink>.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>July 17th, 2017</para>
<itemizedlist>