Ignore:
Timestamp:
05/03/2020 09:02:51 PM (4 years ago)
Author:
Pierre Labastie <pieere@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
a715dec
Parents:
9d719e2
Message:

Make the new book

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross-chap5@11831 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter05/expect.xml

    r9d719e2 refcb393  
    4949    <title>Installation of Expect</title>
    5050
    51     <para>First, force Expect's configure script to use <filename>/bin/stty</filename>
    52     instead of a <filename>/usr/local/bin/stty</filename> it may find on the host system.
    53     This will ensure that our test suite tools remain sane for the final builds of our
    54     toolchain:</para>
     51    <para>Prepare Expect for compilation:</para>
    5552
    56 <screen><userinput remap="pre">cp -v configure{,.orig}
    57 sed 's:/usr/local/bin:/bin:' configure.orig &gt; configure</userinput></screen>
    58 
    59     <para>Now prepare Expect for compilation:</para>
    60 
    61 <screen><userinput remap="configure">./configure --prefix=/tools       \
    62             --with-tcl=/tools/lib \
    63             --with-tclinclude=/tools/include</userinput></screen>
     53<screen><userinput remap="configure">
     54./configure --prefix=/usr           \
     55            --with-tcl=/usr/lib     \
     56            --enable-shared         \
     57            --mandir=/usr/share/man \
     58            --with-tclinclude=/usr/include</userinput></screen>
    6459
    6560    <variablelist>
     
    6762
    6863      <varlistentry>
    69         <term><parameter>--with-tcl=/tools/lib</parameter></term>
     64        <term><parameter>--with-tcl=/usr/lib</parameter></term>
    7065        <listitem>
    71           <para>This ensures that the configure script finds the Tcl
    72           installation in the temporary tools location instead of possibly
    73           locating an existing one on the host system.</para>
     66          <para>This parameter is needed to tell the
     67          <command>configure</command> where the
     68          <command>tclConfig.sh</command> is located.</para>
    7469        </listitem>
    7570      </varlistentry>
    7671
    7772      <varlistentry>
    78         <term><parameter>--with-tclinclude=/tools/include</parameter></term>
     73        <term><parameter>--with-tclinclude=/usr/include</parameter></term>
    7974        <listitem>
    8075          <para>This explicitly tells Expect where to find Tcl's internal
     
    9186<screen><userinput remap="make">make</userinput></screen>
    9287
    93     <para>Compilation is now complete. As discussed earlier, running the test
    94     suite is not mandatory for the temporary tools here in this chapter. To run
    95     the Expect test suite anyway, issue the following command:</para>
    96 
    97 <screen><userinput remap="test">make test</userinput></screen>
    98 
    99     <para>Note that the Expect test suite is known to experience failures under
    100     certain host conditions that are not within our control. Therefore,
    101     test suite failures here are not surprising and are not considered
    102     critical.</para>
    103 
    10488    <para>Install the package:</para>
    10589
    106 <screen><userinput remap="install">make SCRIPTS="" install</userinput></screen>
    107 
    108     <variablelist>
    109       <title>The meaning of the make parameter:</title>
    110 
    111       <varlistentry>
    112         <term><parameter>SCRIPTS=""</parameter></term>
    113         <listitem>
    114           <para>This prevents installation of the supplementary Expect
    115           scripts, which are not needed.</para>
    116         </listitem>
    117       </varlistentry>
    118 
    119     </variablelist>
     90<screen><userinput remap="install">make install
     91ln -svf expect&expect-version;/libexpect&expect-version;.so /usr/lib</userinput></screen>
    12092
    12193  </sect2>
Note: See TracChangeset for help on using the changeset viewer.