expect.xml 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. %general-entities;
  5. ]>
  6. <sect1 id="ch-tools-expect" xreflabel="Expect">
  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. <para>The Expect package contains a program for doing scripted dialogues with
  11. other interactive programs.</para>
  12. <screen>&buildtime; 0.1 SBU
  13. &diskspace; 3.9 MB</screen>
  14. <para>Expect installation depends on: Bash, Binutils, Coreutils, Diffutils,
  15. GCC, Glibc, Grep, Make, Sed, Tcl.</para>
  16. <sect2>
  17. <title>Installation of Expect</title>
  18. <para>First fix a bug that can result in bogus failures during the GCC test
  19. suite run:</para>
  20. <screen><userinput>patch -Np1 -i ../expect-&expect-version;-spawn-1.patch</userinput></screen>
  21. <para>Now prepare Expect for compilation:</para>
  22. <screen><userinput>./configure --prefix=/tools --with-tcl=/tools/lib --with-x=no</userinput></screen>
  23. <para>The meaning of the configure options:</para>
  24. <itemizedlist>
  25. <listitem><para><userinput>--with-tcl=/tools/lib</userinput>: This ensures that
  26. the configure script finds the Tcl installation in our temporary tools location.
  27. We don't want it to find an existing one that may possibly reside on the host
  28. system.</para></listitem>
  29. <listitem><para><userinput>--with-x=no</userinput>: This tells the configure
  30. script not to search for Tk (the Tcl GUI component) or the X Window System
  31. libraries, both of which may possibly reside on the host system.</para></listitem>
  32. </itemizedlist>
  33. <para>Build the package:</para>
  34. <screen><userinput>make</userinput></screen>
  35. <para>(If you insist on testing the results, then issue:
  36. <userinput>make test</userinput>. However, the Expect test suite is known to
  37. experience failures under certain host conditions that are not fully
  38. understood. Therefore, test suite failures here are not surprising, and are not
  39. considered critical.)</para>
  40. <para>And install it:</para>
  41. <screen><userinput>make SCRIPTS="" install</userinput></screen>
  42. <para>The meaning of the make parameter:</para>
  43. <itemizedlist>
  44. <listitem><para><userinput>SCRIPTS=""</userinput>: This prevents installation
  45. of the supplementary expect scripts which are not needed.</para></listitem>
  46. </itemizedlist>
  47. <para>You can now remove the source directories of both Tcl and Expect.</para>
  48. </sect2>
  49. <sect2 id="contents-expect"><title>Contents of Expect</title>
  50. <para><emphasis>Installed program</emphasis>: expect</para>
  51. <para><emphasis>Installed library</emphasis>: libexpect&expect-version;.a</para>
  52. </sect2>
  53. <sect2><title>Short description</title>
  54. <indexterm zone="ch-tools-expect expect"><primary sortas="b-expect">expect</primary></indexterm>
  55. <para id="expect"><command>expect</command> <quote>talks</quote> to other interactive
  56. programs according to a script.</para>
  57. </sect2>
  58. </sect1>