Changeset cd964c8 for general/genlib


Ignore:
Timestamp:
11/23/2017 03:21:36 AM (6 years ago)
Author:
Ken Moffat <ken@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, perl-modules, 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
Children:
8f31479b
Parents:
6076396
Message:

Build the Python2 libxml2 module and clarify where / when it is used. Make an additional entry for this in the python modules - if trying to build both sets of modules before installing libxml.so, the lib has to be built twice with separate invocations of configure, that is slow if all the optional dependencies are invoked. The dependencies for docbook-xsl are all used at runtime, note that and flag their xref tags as runtime.

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

Location:
general/genlib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • general/genlib/libxml2.xml

    r6076396 rcd964c8  
    55  %general-entities;
    66
     7  <!-- Also updatethe download, md5, size entities in libxml2py2.xml -->
    78  <!ENTITY libxml2-download-http "http://xmlsoft.org/sources/libxml2-&libxml2-version;.tar.gz">
    89  <!ENTITY libxml2-download-ftp  "ftp://xmlsoft.org/libxml2/libxml2-&libxml2-version;.tar.gz">
     
    104105        Some packages which utilize <application>libxml2</application> (such as
    105106        <application>GNOME Doc Utils</application>) need the
    106         <application>Python</application> module installed to function properly
     107        <application>Python3</application> module installed to function properly
    107108        and some packages will not build properly if the
    108         <application>Python</application> module is not available.
     109        <application>Python3</application> module is not available.
     110      </para>
     111
     112      <para>
     113        The old <application>Python2</application> module can be built after
     114        <filename class="libraryfile">libxml2.so</filename> has been installed,
     115        see <xref linkend="libxml2py2"/>.
    109116      </para>
    110117    </note>
     
    125132
    126133   <para>
    127       If you want to build the <application>Python</application> module for
    128       <xref linkend="python3"/>, run:
     134      To ensure that the <application>Python3</application> module can be
     135      built by <xref linkend="python3"/>, run:
    129136    </para>
    130137
     
    182189
    183190    <para>
     191      <parameter>sed -i '/_PyVerify_fd/,+1d' python/types.c</parameter>: This
     192      fixes the <application>Python3</application> code to build with
     193      <application>gcc-7</application>.
     194    </para>
     195
     196    <para>
    184197      <parameter>--with-history</parameter>: This switch enables
    185198      <application>Readline</application> support when running
     
    214227      <seglistitem>
    215228        <seg>
    216           xml2-config, xmlcatalog and xmllint
     229          xml2-config, xmlcatalog, xmllint and the
     230          drv_libxml2.py and libxml2.py <application>Python3</application>
     231          modules.
    217232        </seg>
    218233        <seg>
    219234          libxml2.so and optionally, the libxml2mod.so
    220           <application>Python</application> module
     235          <application>Python3</application> module
    221236        </seg>
    222237        <seg>
     
    274289      </varlistentry>
    275290
     291      <varlistentry id="drv_libxml2.py3">
     292        <term><command>drv_libxml2.py</command></term>
     293        <listitem>
     294          <para>
     295            is a SAX <application>Python3</application> driver for libxml2.
     296          </para>
     297          <indexterm zone="libxml2 drv_libxml2.py3">
     298            <primary sortas="b-drv_libxml2.py">drv_libxml2.py</primary>
     299          </indexterm>
     300        </listitem>
     301      </varlistentry>
     302
     303      <varlistentry id="libxml2.py3">
     304        <term><command>libxml2.py</command></term>
     305        <listitem>
     306          <para>
     307            is the <application>Python3</application> binding for libxml2.
     308          </para>
     309          <indexterm zone="libxml2 libxml2.py3">
     310            <primary sortas="b-libxml2.py">libxml2.py</primary>
     311          </indexterm>
     312        </listitem>
     313      </varlistentry>
     314
    276315      <varlistentry id="libxml2-lib">
    277316        <term><filename class="libraryfile">libxml2.so</filename></term>
     
    287326      </varlistentry>
    288327
     328      <varlistentry id="libxml2mod3">
     329        <term><filename class="libraryfile">libxml2mod.so</filename></term>
     330        <listitem>
     331          <para>
     332            is the interface for <application>Python3</application>
     333            to use <filename class="libraryfile">libxml2.so</filename>.
     334          </para>
     335          <indexterm zone="libxml2 libxml2mod3">
     336            <primary sortas="c-libxml2mod">libxml2mod.so</primary>
     337          </indexterm>
     338        </listitem>
     339      </varlistentry>
     340
    289341    </variablelist>
    290342
  • general/genlib/libxslt.xml

    r6076396 rcd964c8  
    9797    <bridgehead renderas="sect4">Optional</bridgehead>
    9898    <para role="optional">
    99       <xref linkend="libgcrypt"/> and
    100       <xref linkend="python2"/>
    101       <note><simpara>The <xref role="nodep" linkend="python2"/>
    102       dependency is only appropriate if the Python module for
    103       this package is needed. If it is, the 
    104       <xref role="nodep" linkend="libxml2"/> Python module should also
    105       be built for Python 2. The libxslt Python module is not needed for
    106       any package in BLFS.
     99      <xref linkend="libgcrypt"/>,
     100      <xref linkend="libxml2py2"/>
     101      <note><simpara>The <xref role="nodep" linkend="libxml2py2"/>
     102      dependency is only appropriate if the <application>Python2</application>
     103      module for this package is needed. The
     104      libxslt <application>Python2</application> module is not needed for
     105      any package in BLFS but various packages may install
     106      <application>Python2</application> modules which reference it.
    107107      </simpara></note>
    108108    </para>
Note: See TracChangeset for help on using the changeset viewer.