From 835e40ce16b6043f6349cc37ff83ee701d961ee5 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Wed, 8 Mar 2023 11:21:34 +0800 Subject: Adjustments for /dev/pts 1. Declare UNIX98 PTY requirement in host system requirements and check it in the script. All desktop or server distros should have it now, but let's stop anyone from building on a embedded distro w/o UNIX98 PTY early... 2. Use Expect test suite as a guard against mishandled $LFS/dev/pts. 3. No need to test the basic function of Expect in Binutils anymore because if ($LFS)/dev/pts is not good, the Expect test suite would have failed. --- chapter02/hostreqs.xml | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'chapter02/hostreqs.xml') diff --git a/chapter02/hostreqs.xml b/chapter02/hostreqs.xml index e3a06df4e..78a9c0561 100644 --- a/chapter02/hostreqs.xml +++ b/chapter02/hostreqs.xml @@ -105,6 +105,12 @@ compiling the kernel and configuring the boot loader (assuming the host uses GRUB) are located in . + We require the host kernel to support UNIX 98 pseudo terminal + (PTY). It should be enabled on all desktop or server distros shipping + Linux &min-kernel; or a newer kernel. If you are building a custom + host kernel, ensure is set to + y in the kernel configuration. + @@ -230,6 +236,10 @@ ver_check Texinfo texi2any 4.7 ver_check Xz xz 5.0.0 ver_kernel &min-kernel; +if mount | grep -q 'devpts on /dev/pts' && [ -e /dev/ptmx ] +then echo "OK: Linux Kernel supports UNIX 98 PTY"; +else echo "ERROR: Linux Kernel does NOT support UNIX 98 PTY"; fi + alias_check() { if $1 --version 2>&1 | grep -qi $2 then printf "OK: %-4s is $2\n" "$1"; -- cgit v1.2.3-54-g00ecf