expect.xml 4.3 KB

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