Ignore:
Timestamp:
01/18/2013 03:06:25 PM (11 years ago)
Author:
Krejzi <krejzi@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
1700976
Parents:
bc9797f
Message:

Package updates and some modifications. See changelog.xml for details.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/prog/python2.xml

    rbc9797f r82fac2c  
    66
    77  <!ENTITY python2-download-http
    8   "http://www.python.org/ftp/python/&python2-version;/Python-&python2-version;.tar.xz">
     8          "http://www.python.org/ftp/python/&python2-version;/Python-&python2-version;.tar.xz">
    99  <!ENTITY python2-download-ftp  " ">
    10   <!-- <!ENTITY python2-download-ftp  "&gentoo-ftp-repo;/Python-&python2-version;.tar.xz"> -->
    1110  <!ENTITY python2-md5sum        "62c4c1699170078c469f79ddfed21bc0">
    1211  <!ENTITY python2-size          "9.6 MB">
    1312  <!ENTITY python2-buildsize     "235 MB (not including the test suite)">
    1413  <!ENTITY python2-time          "1.1 SBU (not including the test suite)">
     14
    1515  <!ENTITY python2htmldoc-download-http
    16   "http://docs.python.org/ftp/python/doc/&python2-version;/python-&python2-version;-docs-html.tar.bz2">
     16           "http://docs.python.org/ftp/python/doc/&python2-version;/python-&python2-version;-docs-html.tar.bz2">
    1717  <!ENTITY python2htmldoc-md5sum        "101c13d39f76fd6706aac3a9196b2f01">
    1818  <!ENTITY python2htmldoc-size          "4.2 MB">
     
    3030
    3131  <indexterm zone="python2">
    32     <primary sortas="a-Python2">Python</primary>
     32    <primary sortas="a-Python2">Python2</primary>
    3333  </indexterm>
    3434
     
    3838    <para>
    3939      The <application>Python 2</application> package contains the
    40       <application>Python</application> development environment. This is useful
     40      <application>Python</application> development environment. It is useful
    4141      for object-oriented programming, writing scripts, prototyping large
    4242      programs or developing entire applications. This version is for backward
     
    101101    </itemizedlist>
    102102
     103    <bridgehead renderas="sect3">Additional Patches</bridgehead>
     104    <itemizedlist spacing="compact">
     105      <listitem>
     106        <para>
     107          Required patch:
     108          <ulink url="&patch-root;/Python-&python2-version;-bsddb_fix-1.patch"/>
     109        </para>
     110      </listitem>
     111    </itemizedlist>
     112
    103113    <bridgehead renderas="sect3">Python Dependencies</bridgehead>
     114
     115    <bridgehead renderas="sect4">Recommended</bridgehead>
     116    <para role="recommended">
     117      <xref linkend="expat"/>,
     118      <xref linkend="libffi"/> and
     119      <xref linkend="pkgconfig"/>
     120    </para>
    104121
    105122    <bridgehead renderas="sect4">Optional</bridgehead>
    106123    <para role="optional">
    107       <!-- <xref linkend="pth"/> can only be used if you've overwritten glibc's
    108       libpthread. -->
    109       <xref linkend="libffi"/> and <xref linkend="pkgconfig"/>
    110       (<command>configure</command> uses <command>pkgconfig</command> to find
    111       <application>libffi</application>. There is a circular dependency here:
    112       <application>Pkgconfig</application> requires
    113       <application>Glib</application> which requires
    114       <application>Python 2</application>),
    115       <!-- gcc's libffi does not install a pkgconfig file -->
    116       <ulink url="http://sphinx.pocoo.org/">Sphinx</ulink> (to create the docs),
    117       <xref linkend="bluez"/>,
     124      <xref linkend="bluez"/> and
     125      <ulink url="http://sphinx.pocoo.org/">Sphinx</ulink>
     126    </para>
     127
     128    <bridgehead renderas="sect4">Optional (For Additional Modules)</bridgehead>
     129    <para role="optional">
     130      <xref linkend="db"/>,
    118131      <xref linkend="openssl"/>,
    119       <xref linkend="tk"/> (there is a circular dependency with the
    120       <application>Tk</application> package as it requires Xorg to be installed
    121       but parts of Xorg depend on <application>Python</application>),
    122       <!--<xref linkend="db"/> and-->
    123       <ulink
    124       url="http://www.oracle.com/technetwork/products/berkeleydb/downloads/">BerkeleyDB</ulink>
    125       (only versions up to 4.8), and
    126       <xref linkend="sqlite"/>.
     132      <xref linkend="sqlite"/> and
     133      <xref linkend="tk"/>
    127134    </para>
    128135
     
    141148
    142149<screen><userinput>sed -i "s/ndbm_libs = \[\]/ndbm_libs = ['gdbm', 'gdbm_compat']/" setup.py &amp;&amp;
    143 ./configure --prefix=/usr --enable-shared &amp;&amp;
     150patch -Np1 -i ../Python-&python2-version;-bsddb_fix-1.patch &amp;&amp;
     151./configure --prefix=/usr       \
     152            --enable-shared     \
     153            --with-system-expat \
     154            --with-system-ffi   \
     155            --enable-unicode=ucs4 &amp;&amp;
    144156make</userinput></screen>
    145157
     
    194206
    195207    <para>
    196       <option>--with-system-ffi</option>: If you have installed
    197       <application>Libffi</application> and
    198       <application>Pkgconfig</application>, add this option to compile
    199       <application>Python</application>'s _ctypes module using the system
    200       installed <application>Libffi</application>. Otherwise
    201       <application>Python</application> will compile its own copy of
    202       <application>Libffi</application>.
    203     </para>
    204 
    205     <para>
    206208      <command>sed -i "s/ndbm_libs = ..." setup.py</command>: This command is
    207209      used to fix a build problem with the <application>GDBM</application>
     
    210212
    211213    <para>
     214      <option>--with-system-expat</option>: This switch enables linking against
     215      system version of <application>Expat</application>. Remove if you have
     216      not installed recommended dependency <xref linkend="expat"/>.
     217    </para>
     218
     219    <para>
     220      <option>--with-system-ffi</option>: This switch enables linking against
     221      system version of <application>libffi</application>. Remove if you have
     222      not installed recommended dependency <xref linkend="libffi"/>.
     223    </para>
     224
     225    <para>
     226      <parameter>--enable-unicode=ucs4</parameter>: This switch enables
     227      32bit Unicode support in <application>Python</application>.
     228    </para>
     229
     230    <para>
     231      <parameter>--with-dbmliborder=bdb:gdbm:ndbm</parameter>: Use this switch
     232      if you want to build <application>Python</application> DBM Module
     233      against <application>Berkeley DB</application> instead of
     234      <application>GDBM</application>.
     235    </para>
     236
     237    <para>
    212238      <command>chmod ...</command>: Fix permissions for libraries to be
    213239      consistent with other libraries.
    214240    </para>
     241
    215242  </sect2>
    216243
     
    225252
    226253<screen role="root"><userinput>export PYTHONDOCS=/usr/share/doc/Python-&python2-version;</userinput></screen>
     254
    227255  </sect2>
    228256
     
    334362        </listitem>
    335363      </varlistentry>
     364
    336365    </variablelist>
    337   </sect2>
     366
     367  </sect2>
     368
    338369</sect1>
Note: See TracChangeset for help on using the changeset viewer.