Ignore:
Timestamp:
02/27/2024 03:52:31 PM (6 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
xry111/arm64
Children:
e4e7ffb
Parents:
648f145 (diff), 23f4367 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge remote-tracking branch 'origin/trunk' into xry111/arm64

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter08/expect.xml

    r648f145 r328eb6f  
    4949    <title>Installation of Expect</title>
    5050
     51    <para>Expect needs PTYs to work.  Verify that the PTYs are working
     52    properly inside the chroot environment by performing a simple
     53    test:</para>
     54
     55<screen><userinput remap="test">python3 -c 'from pty import spawn; spawn(["echo", "ok"])'</userinput></screen>
     56
     57    <para>This command should output <computeroutput>ok</computeroutput>.
     58    If, instead, the output includes <computeroutput>OSError: out of pty
     59    devices</computeroutput>, then the environment is not set up for proper
     60    PTY operation.  You need to exit from the chroot environment, read
     61    <xref linkend='ch-tools-kernfs'/> again, and ensure the
     62    <systemitem class="filesystem">devpts</systemitem> file system (and
     63    other virtual kernel file systems) mounted correctly.  Then reenter
     64    the chroot environment following <xref linkend='ch-tools-chroot'/>.
     65    This issue needs to be resolved before continuing, or the test suites
     66    requiring Expect (for example the test suites of Bash, Binutils, GCC,
     67    GDBM, and of course Expect itself) will fail catastrophically, and other
     68    subtle breakages may also happen.</para>
     69
    5170    <para>Update two config scripts to allow building this package for
    5271    AArch64:</para>
     
    89108<screen><userinput remap="make">make</userinput></screen>
    90109
    91     <important>
    92       <para>The test suite for Expect is considered critical.
    93       Do not skip it under any circumstances.</para>
    94     </important>
    95 
    96110    <para>To test the results, issue:</para>
    97111
    98112<screen><userinput remap="test">make test</userinput></screen>
    99 
    100     <para>If any test fails with the message
    101     <quote><computeroutput>The system has no more ptys.  Ask your system
    102     administrator to create more</computeroutput></quote>, it indicates
    103     you've not mounted the
    104     <systemitem class="filesystem">devpts</systemitem> file system
    105     correctly.  You need to exit from the chroot environment, read
    106     <xref linkend='ch-tools-kernfs'/> again, and ensure the
    107     <systemitem class="filesystem">devpts</systemitem> file system (and
    108     other virtual kernel file systems) mounted correctly.  Then reenter
    109     the chroot environment following <xref linkend='ch-tools-chroot'/>.
    110     This issue needs to be resolved before continuing.</para>
    111113
    112114    <para>Install the package:</para>
Note: See TracChangeset for help on using the changeset viewer.