expect.xml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. <!ENTITY % patches-entities SYSTEM "../patches.ent">
  5. %general-entities;
  6. %patches-entities;
  7. ]>
  8. <sect1 id="ch-tools-expect" role="wrap">
  9. <title>Expect-&expect-version;</title>
  10. <?dbhtml filename="expect.html"?>
  11. <indexterm zone="ch-tools-expect"><primary sortas="a-Expect">Expect</primary></indexterm>
  12. <sect2 role="package"><title/>
  13. <para>The Expect package contains a program for carrying out scripted dialogues
  14. with other interactive programs.</para>
  15. <segmentedlist>
  16. <segtitle>&buildtime;</segtitle>
  17. <segtitle>&diskspace;</segtitle>
  18. <seglistitem><seg>0.1 SBU</seg><seg>4.0 MB</seg></seglistitem>
  19. </segmentedlist>
  20. <segmentedlist>
  21. <segtitle>&dependencies;</segtitle>
  22. <seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
  23. GCC, Glibc, Grep, Make, Sed, and Tcl</seg></seglistitem>
  24. </segmentedlist>
  25. </sect2>
  26. <sect2 role="installation">
  27. <title>Installation of Expect</title>
  28. <para>First, fix a bug that can result in false failures during the GCC test
  29. suite run:</para>
  30. <screen><userinput>patch -Np1 -i ../&expect-spawn-patch;</userinput></screen>
  31. <para>Now prepare Expect for compilation:</para>
  32. <screen><userinput>./configure --prefix=/tools --with-tcl=/tools/lib \
  33. --with-tclinclude=$TCLPATH --with-x=no</userinput></screen>
  34. <para>The meaning of the configure options:</para>
  35. <variablelist>
  36. <varlistentry>
  37. <term><parameter>--with-tcl=/tools/lib</parameter></term>
  38. <listitem><para>This ensures that the configure script finds the Tcl installation in
  39. the temporary tools location instead of possibly locating an existing
  40. one on the host system.</para></listitem>
  41. </varlistentry>
  42. <varlistentry>
  43. <term><parameter>--with-tclinclude=$TCLPATH</parameter></term>
  44. <listitem><para>This explicitly tells Expect where to find Tcl's source
  45. directory and internal headers. Using this option avoids conditions
  46. where <command>configure</command> fails because it cannot automatically
  47. discover the location of the Tcl source directory.</para></listitem>
  48. </varlistentry>
  49. <varlistentry>
  50. <term><parameter>--with-x=no</parameter></term>
  51. <listitem><para>This tells the configure script not to search for Tk
  52. (the Tcl GUI component) or the X Window System libraries, both of
  53. which may reside on the host system but will not exist in the temporary
  54. environment.</para></listitem>
  55. </varlistentry>
  56. </variablelist>
  57. <para>Build the package:</para>
  58. <screen><userinput>make</userinput></screen>
  59. <para>To test the results, issue: <userinput>make test</userinput>.
  60. Note that the Expect test suite is known to experience failures under
  61. certain host conditions that are not within our control. Therefore,
  62. test suite failures here are not surprising and are not considered
  63. critical.</para>
  64. <para>Install the package:</para>
  65. <screen><userinput>make SCRIPTS="" install</userinput></screen>
  66. <para>The meaning of the make parameter:</para>
  67. <variablelist>
  68. <varlistentry>
  69. <term><parameter>SCRIPTS=""</parameter></term>
  70. <listitem><para>This prevents installation of the supplementary expect
  71. scripts, which are not needed.</para></listitem>
  72. </varlistentry>
  73. </variablelist>
  74. <para>Now remove the <envar>TCLPATH</envar> variable:</para>
  75. <screen><userinput>unset TCLPATH</userinput></screen>
  76. <para>The source directories of both Tcl and Expect can now be removed.</para>
  77. </sect2>
  78. <sect2 id="contents-expect" role="content"><title>Contents of Expect</title>
  79. <segmentedlist>
  80. <segtitle>Installed program</segtitle>
  81. <segtitle>Installed library</segtitle>
  82. <seglistitem><seg>expect</seg><seg>libexpect-5.42.a</seg></seglistitem>
  83. </segmentedlist>
  84. <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
  85. <?dbfo list-presentation="list"?>
  86. <?dbhtml list-presentation="table"?>
  87. <varlistentry id="expect">
  88. <term><command>expect</command></term>
  89. <listitem>
  90. <para>Communicates with other interactive
  91. programs according to a script</para>
  92. <indexterm zone="ch-tools-expect expect"><primary sortas="b-expect">expect</primary></indexterm>
  93. </listitem>
  94. </varlistentry>
  95. <varlistentry id="libexpect">
  96. <term><filename class="libraryfile">libexpect-5.42.a</filename></term>
  97. <listitem>
  98. <para>Contains functions that allow Expect to be used as a Tcl extension or to
  99. be used directly from C or C++ (without Tcl)</para>
  100. <indexterm zone="ch-tools-expect libexpect"><primary
  101. sortas="c-libexpect-5.42">libexpect-5.42</primary></indexterm>
  102. </listitem>
  103. </varlistentry>
  104. </variablelist>
  105. </sect2>
  106. </sect1>