mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-19 03:39:20 +01:00
Fix a problem when building Python in Chapter 5 where some hosts may use host
dependent headers. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11519 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
75828c36cc
commit
791b6c7029
@ -42,6 +42,17 @@
|
|||||||
<listitem revision="sysv"> or <listitem revision="systemd"> as
|
<listitem revision="sysv"> or <listitem revision="systemd"> as
|
||||||
appropriate for the entry or if needed the entire day's listitem.
|
appropriate for the entry or if needed the entire day's listitem.
|
||||||
-->
|
-->
|
||||||
|
<listitem>
|
||||||
|
<para>2019-02-011</para>
|
||||||
|
<itemizedlist>
|
||||||
|
<listitem>
|
||||||
|
<para>[bdubbs] - Fix a problem when building Python in
|
||||||
|
Chapter 5 where some hosts may use host dependent
|
||||||
|
headers.</para>
|
||||||
|
</listitem>
|
||||||
|
</itemizedlist>
|
||||||
|
</listitem>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>2019-02-011</para>
|
<para>2019-02-011</para>
|
||||||
<itemizedlist>
|
<itemizedlist>
|
||||||
@ -56,7 +67,6 @@
|
|||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>2019-02-08</para>
|
<para>2019-02-08</para>
|
||||||
<itemizedlist>
|
<itemizedlist>
|
||||||
|
@ -43,9 +43,31 @@
|
|||||||
<sect2 role="installation">
|
<sect2 role="installation">
|
||||||
<title>Installation of Python</title>
|
<title>Installation of Python</title>
|
||||||
|
|
||||||
|
<para>This package first builds the Python interpreter, then some
|
||||||
|
standard Python modules. The main script for building modules is
|
||||||
|
written in Python, and uses hard-coded paths to the host <filename
|
||||||
|
class="directory">/usr/include</filename> and <filename
|
||||||
|
class="directory">/usr/lib</filename> directories. To prevent them
|
||||||
|
from being used, issue:</para>
|
||||||
|
|
||||||
|
<screen><userinput remap="pre">sed -i '/def add_multiarch_paths/a \ return' setup.py</userinput></screen>
|
||||||
|
|
||||||
<para>Prepare Python for compilation:</para>
|
<para>Prepare Python for compilation:</para>
|
||||||
|
|
||||||
<screen><userinput remap="configure">./configure --prefix=/tools --with-ensurepip=no</userinput></screen>
|
<screen><userinput remap="configure">./configure --prefix=/tools --without-ensurepip</userinput></screen>
|
||||||
|
|
||||||
|
<variablelist>
|
||||||
|
<title>The meaning of the configure option:</title>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term><parameter>--without-ensurepip</parameter></term>
|
||||||
|
<listitem>
|
||||||
|
<para>This switch disables the Python installer, which is not needed
|
||||||
|
at this stage.</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
</variablelist>
|
||||||
|
|
||||||
<para>Compile the package:</para>
|
<para>Compile the package:</para>
|
||||||
|
|
||||||
|
@ -80,7 +80,7 @@
|
|||||||
<para>Now, run the tests as the <systemitem
|
<para>Now, run the tests as the <systemitem
|
||||||
class="username">nobody</systemitem> user:</para>
|
class="username">nobody</systemitem> user:</para>
|
||||||
|
|
||||||
<screen><userinput remap="test">su nobody -s /bin/bash -c "PATH=$PATH make tests"</userinput></screen>
|
<screen><userinput remap="test">su nobody -s /bin/bash -c "PATH=$PATH HOME=/home make tests"</userinput></screen>
|
||||||
|
|
||||||
<para>Install the package and move the main executable to
|
<para>Install the package and move the main executable to
|
||||||
<filename class='directory'>/bin</filename>:</para>
|
<filename class='directory'>/bin</filename>:</para>
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
<!ENTITY version "SVN-20190211">
|
<!ENTITY version "SVN-20190214">
|
||||||
<!ENTITY short-version "svn"> <!-- Used below in &blfs-book;
|
<!ENTITY short-version "svn"> <!-- Used below in &blfs-book;
|
||||||
Change to x.y for release but not -rc releases -->
|
Change to x.y for release but not -rc releases -->
|
||||||
<!ENTITY generic-version "development"> <!-- Use "development" or "x.y[-pre{x}]" -->
|
<!ENTITY generic-version "development"> <!-- Use "development" or "x.y[-pre{x}]" -->
|
||||||
|
|
||||||
<!ENTITY versiond "20190211-systemd">
|
<!ENTITY versiond "20190214-systemd">
|
||||||
<!ENTITY short-versiond "systemd">
|
<!ENTITY short-versiond "systemd">
|
||||||
<!ENTITY generic-versiond "systemd">
|
<!ENTITY generic-versiond "systemd">
|
||||||
|
|
||||||
<!ENTITY releasedate "February 11, 2019">
|
<!ENTITY releasedate "February 14, 2019">
|
||||||
|
|
||||||
<!ENTITY copyrightdate "1999-2019"><!-- jhalfs needs a literal dash, not – -->
|
<!ENTITY copyrightdate "1999-2019"><!-- jhalfs needs a literal dash, not – -->
|
||||||
<!ENTITY milestone "8.4">
|
<!ENTITY milestone "8.4">
|
||||||
|
Loading…
Reference in New Issue
Block a user