mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-19 03:39:20 +01:00
Automatic merge of trunk into multilib
This commit is contained in:
commit
2e43fd45f6
@ -63,11 +63,14 @@
|
|||||||
|
|
||||||
<para>Now mount the remaining virtual kernel file systems:</para>
|
<para>Now mount the remaining virtual kernel file systems:</para>
|
||||||
|
|
||||||
<screen><userinput>mount -v --bind /dev/pts $LFS/dev/pts
|
<!-- Do not put any option after $LFS/${mountpoint} or jhalfs cannot
|
||||||
|
handle it! -->
|
||||||
|
|
||||||
|
<screen><userinput>mount -vt devpts devpts -o gid=5,mode=0620 $LFS/dev/pts
|
||||||
mount -vt proc proc $LFS/proc
|
mount -vt proc proc $LFS/proc
|
||||||
mount -vt sysfs sysfs $LFS/sys
|
mount -vt sysfs sysfs $LFS/sys
|
||||||
mount -vt tmpfs tmpfs $LFS/run</userinput></screen>
|
mount -vt tmpfs tmpfs $LFS/run</userinput></screen>
|
||||||
<!--
|
|
||||||
<variablelist>
|
<variablelist>
|
||||||
<title>The meaning of the mount options for devpts:</title>
|
<title>The meaning of the mount options for devpts:</title>
|
||||||
|
|
||||||
@ -95,7 +98,7 @@ mount -vt tmpfs tmpfs $LFS/run</userinput></screen>
|
|||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
</variablelist>
|
</variablelist>
|
||||||
-->
|
|
||||||
<para>In some host systems, <filename>/dev/shm</filename> is a
|
<para>In some host systems, <filename>/dev/shm</filename> is a
|
||||||
symbolic link to a directory, typically
|
symbolic link to a directory, typically
|
||||||
<filename class="directory">/run/shm</filename>.
|
<filename class="directory">/run/shm</filename>.
|
||||||
|
@ -83,7 +83,7 @@
|
|||||||
<application>Expect</application> and run the tests as the <systemitem
|
<application>Expect</application> and run the tests as the <systemitem
|
||||||
class="username">tester</systemitem> user:</para>
|
class="username">tester</systemitem> user:</para>
|
||||||
|
|
||||||
<screen><userinput remap="test">su -s /usr/bin/expect tester << EOF
|
<screen><userinput remap="test">su -s /usr/bin/expect tester << "EOF"
|
||||||
set timeout -1
|
set timeout -1
|
||||||
spawn make tests
|
spawn make tests
|
||||||
expect eof
|
expect eof
|
||||||
|
@ -48,6 +48,25 @@
|
|||||||
<sect2 role="installation">
|
<sect2 role="installation">
|
||||||
<title>Installation of Expect</title>
|
<title>Installation of Expect</title>
|
||||||
|
|
||||||
|
<para>Expect needs PTYs to work. Verify that the PTYs are working
|
||||||
|
properly inside the chroot environment by performing a simple
|
||||||
|
test:</para>
|
||||||
|
|
||||||
|
<screen><userinput remap="test">python3 -c 'from pty import spawn; spawn(["echo", "ok"])'</userinput></screen>
|
||||||
|
|
||||||
|
<para>This command should output <computeroutput>ok</computeroutput>.
|
||||||
|
If, instead, the output includes <computeroutput>OSError: out of pty
|
||||||
|
devices</computeroutput>, then the environment is not set up for proper
|
||||||
|
PTY operation. You need to exit from the chroot environment, read
|
||||||
|
<xref linkend='ch-tools-kernfs'/> again, and ensure the
|
||||||
|
<systemitem class="filesystem">devpts</systemitem> file system (and
|
||||||
|
other virtual kernel file systems) mounted correctly. Then reenter
|
||||||
|
the chroot environment following <xref linkend='ch-tools-chroot'/>.
|
||||||
|
This issue needs to be resolved before continuing, or the test suites
|
||||||
|
requring Expect (for example the test suites of Bash, Binutils, GCC,
|
||||||
|
GDBM, and of course Expect itself) will fail catastrophically, and other
|
||||||
|
subtle breakages may also happen.</para>
|
||||||
|
|
||||||
<para>Prepare Expect for compilation:</para>
|
<para>Prepare Expect for compilation:</para>
|
||||||
|
|
||||||
<screen><userinput remap="configure">./configure --prefix=/usr \
|
<screen><userinput remap="configure">./configure --prefix=/usr \
|
||||||
@ -82,27 +101,10 @@
|
|||||||
|
|
||||||
<screen><userinput remap="make">make</userinput></screen>
|
<screen><userinput remap="make">make</userinput></screen>
|
||||||
|
|
||||||
<important>
|
|
||||||
<para>The test suite for Expect is considered critical.
|
|
||||||
Do not skip it under any circumstances.</para>
|
|
||||||
</important>
|
|
||||||
|
|
||||||
<para>To test the results, issue:</para>
|
<para>To test the results, issue:</para>
|
||||||
|
|
||||||
<screen><userinput remap="test">make test</userinput></screen>
|
<screen><userinput remap="test">make test</userinput></screen>
|
||||||
|
|
||||||
<para>If any test fails with the message
|
|
||||||
<computeroutput>The system has no more ptys. Ask your system
|
|
||||||
administrator to create more</computeroutput>, it indicates
|
|
||||||
you've not mounted the
|
|
||||||
<systemitem class="filesystem">devpts</systemitem> file system
|
|
||||||
correctly. You need to exit from the chroot environment, read
|
|
||||||
<xref linkend='ch-tools-kernfs'/> again, and ensure the
|
|
||||||
<systemitem class="filesystem">devpts</systemitem> file system (and
|
|
||||||
other virtual kernel file systems) mounted correctly. Then reenter
|
|
||||||
the chroot environment following <xref linkend='ch-tools-chroot'/>.
|
|
||||||
This issue needs to be resolved before continuing.</para>
|
|
||||||
|
|
||||||
<para>Install the package:</para>
|
<para>Install the package:</para>
|
||||||
|
|
||||||
<screen><userinput remap="install">make install
|
<screen><userinput remap="install">make install
|
||||||
|
Loading…
Reference in New Issue
Block a user