Changeset efcb393 for chapter05/expect.xml
- Timestamp:
- 05/03/2020 09:02:51 PM (4 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter05/expect.xml
r9d719e2 refcb393 49 49 <title>Installation of Expect</title> 50 50 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> 55 52 56 <screen><userinput remap="pre">cp -v configure{,.orig} 57 sed 's:/usr/local/bin:/bin:' configure.orig > 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> 64 59 65 60 <variablelist> … … 67 62 68 63 <varlistentry> 69 <term><parameter>--with-tcl=/ tools/lib</parameter></term>64 <term><parameter>--with-tcl=/usr/lib</parameter></term> 70 65 <listitem> 71 <para>This ensures that the configure script finds the Tcl72 installation in the temporary tools location instead of possibly73 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> 74 69 </listitem> 75 70 </varlistentry> 76 71 77 72 <varlistentry> 78 <term><parameter>--with-tclinclude=/ tools/include</parameter></term>73 <term><parameter>--with-tclinclude=/usr/include</parameter></term> 79 74 <listitem> 80 75 <para>This explicitly tells Expect where to find Tcl's internal … … 91 86 <screen><userinput remap="make">make</userinput></screen> 92 87 93 <para>Compilation is now complete. As discussed earlier, running the test94 suite is not mandatory for the temporary tools here in this chapter. To run95 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 under100 certain host conditions that are not within our control. Therefore,101 test suite failures here are not surprising and are not considered102 critical.</para>103 104 88 <para>Install the package:</para> 105 89 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 91 ln -svf expect&expect-version;/libexpect&expect-version;.so /usr/lib</userinput></screen> 120 92 121 93 </sect2>
Note:
See TracChangeset
for help on using the changeset viewer.