Expect-5.45
The Expect package contains a program for carrying out scripted dialogues with other interactive programs.
Expect pakett sisaldab programmi mis veab skriptitud dialooge teiste interaktiivsete programmidega.
Umbkaudne ehitamise aeg: 0.1 SBU Vajaminev kettaruum: 4.1 MB
5.12.1. Expecti paigaldus
First, force Expect's configure script to use /bin/stty instead of a /usr/local/bin/stty it may find on the host system. This will ensure that our test suite tools remain sane for the final builds of our toolchain:
Esiteks tuleb sundida Expecti konfigureerimise skripti kasutama /bin/stty'd /usr/local/bin/stty asemel, mille ta võib baas süsteemist leida. See kindlustab, et testide korrektse töö lõplikus LFS süsteemi lõplikus ehitamisefaasis.
cp -v configure{,.orig} sed 's:/usr/local/bin:/bin:' configure.orig > configure
Valmistame Expecti kompileerimiseks ette:
./configure --prefix=/tools --with-tcl=/tools/lib \ --with-tclinclude=/tools/include
Konfigureerimise võtme tähendus:
- --with-tcl=/tools/lib
This ensures that the configure script finds the Tcl installation in the temporary tools location instead of possibly locating an existing one on the host system.
See kindlustab, et konfigureerimise skript leiab Tcli ajutiste töövahendite kataloogist ega ürita kasutada baasmasina oma.
- --with-tclinclude=/tools/include
This explicitly tells Expect where to find Tcl's internal headers. Using this option avoids conditions where configure fails because it cannot automatically discover the location of Tcl's headers.
See parameeter ütleb Expectile kust ta leiab Tcl'i sisemised päised, välistades tekkida võivad konfigureerija poolsed päiste automaattuvastamise vead.
Kompileerime paketi:
make
Kompileerimise lõppedes võib soovi korral käivitada täiendava testi. Ajutiste töövahendite puhul pole see oluline, seega võib järgmise sammu vahele jätta. Soovides testi käivita, sisesta käsk:
make test
Note that the Expect test suite is known to experience failures under certain host conditions that are not within our control. Therefore, test suite failures here are not surprising and are not considered critical.
Teatud baasmasina seadistuse puhul võivad testid anda teadaolevalt vigu. Seega pole vaja testide ebaõnnestumisele vaja sügavamat tähelepanu pöörata kuna tegemist pole kriitiliste vigadega.
Paigaldame paketi:
make SCRIPTS="" install
Make parameetri selgitus:
SCRIPTS=""
This prevents installation of the supplementary Expect scripts, which are not needed.
See parameeter lülitab välja Expecti täiendavate ja ebavajalike skriptide paigalduse.
5.12.2. Contents of Expect
Installed program: expect Installed library: libexpect-5.45.a Short Descriptions
expect Communicates with other interactive programs according to a script libexpect-5.45.a Contains functions that allow Expect to be used as a Tcl extension or to be used directly from C or C++ (without Tcl)