Changeset 2e43fd4


Ignore:
Timestamp:
02/05/2024 11:30:18 PM (8 months ago)
Author:
Thomas Trepl <thomas@…>
Branches:
multilib, xry111/multilib
Children:
34ffa57
Parents:
ce6d8f6 (diff), 4816dc6 (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:

Automatic merge of trunk into multilib

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • chapter07/kernfs.xml

    rce6d8f6 r2e43fd4  
    6464      <para>Now mount the remaining virtual kernel file systems:</para>
    6565
    66 <screen><userinput>mount -v --bind /dev/pts $LFS/dev/pts
     66      <!-- Do not put any option after $LFS/${mountpoint} or jhalfs cannot
     67           handle it! -->
     68
     69<screen><userinput>mount -vt devpts devpts -o gid=5,mode=0620 $LFS/dev/pts
    6770mount -vt proc proc $LFS/proc
    6871mount -vt sysfs sysfs $LFS/sys
    6972mount -vt tmpfs tmpfs $LFS/run</userinput></screen>
    70 <!--
     73
    7174    <variablelist>
    7275      <title>The meaning of the mount options for devpts:</title>
     
    9699
    97100    </variablelist>
    98 -->
     101
    99102      <para>In some host systems, <filename>/dev/shm</filename> is a
    100103      symbolic link to a directory, typically
  • chapter08/bash.xml

    rce6d8f6 r2e43fd4  
    8484    class="username">tester</systemitem> user:</para>
    8585
    86 <screen><userinput remap="test">su -s /usr/bin/expect tester &lt;&lt; EOF
     86<screen><userinput remap="test">su -s /usr/bin/expect tester &lt;&lt; "EOF"
    8787set timeout -1
    8888spawn make tests
  • chapter08/expect.xml

    rce6d8f6 r2e43fd4  
    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    requring 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>Prepare Expect for compilation:</para>
    5271
     
    83102<screen><userinput remap="make">make</userinput></screen>
    84103
    85     <important>
    86       <para>The test suite for Expect is considered critical.
    87       Do not skip it under any circumstances.</para>
    88     </important>
    89 
    90104    <para>To test the results, issue:</para>
    91105
    92106<screen><userinput remap="test">make test</userinput></screen>
    93 
    94     <para>If any test fails with the message
    95     <computeroutput>The system has no more ptys. Ask your system
    96     administrator to create more</computeroutput>, it indicates
    97     you've not mounted the
    98     <systemitem class="filesystem">devpts</systemitem> file system
    99     correctly.  You need to exit from the chroot environment, read
    100     <xref linkend='ch-tools-kernfs'/> again, and ensure the
    101     <systemitem class="filesystem">devpts</systemitem> file system (and
    102     other virtual kernel file systems) mounted correctly.  Then reenter
    103     the chroot environment following <xref linkend='ch-tools-chroot'/>.
    104     This issue needs to be resolved before continuing.</para>
    105107
    106108    <para>Install the package:</para>
Note: See TracChangeset for help on using the changeset viewer.