Ignore:
Timestamp:
03/08/2023 03:25:48 AM (14 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
12.0, 12.0-rc1, 12.1, 12.1-rc1, bdubbs/gcc13, multilib, renodr/libudev-from-systemd, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/update-glibc
Children:
7160772, a8c261b, d0a9bda4
Parents:
e0fb109
git-author:
Xi Ruoyao <xry111@…> (03/08/2023 03:21:34 AM)
git-committer:
Xi Ruoyao <xry111@…> (03/08/2023 03:25:48 AM)
Message:

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.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter02/hostreqs.xml

    re0fb109 r835e40c  
    105105      compiling the kernel and configuring the boot loader (assuming the host
    106106      uses GRUB) are located in <xref linkend="chapter-bootable"/>.</para>
     107
     108      <para>We require the host kernel to support UNIX 98 pseudo terminal
     109      (PTY).  It should be enabled on all desktop or server distros shipping
     110      Linux &min-kernel; or a newer kernel. If you are building a custom
     111      host kernel, ensure <option>CONFIG_UNIX98_PTYS</option> is set to
     112      <literal>y</literal> in the kernel configuration.</para>
    107113
    108114    </listitem>
     
    231237ver_kernel &min-kernel;
    232238
     239if mount | grep -q 'devpts on /dev/pts' &amp;&amp; [ -e /dev/ptmx ]
     240then echo "OK:    Linux Kernel supports UNIX 98 PTY";
     241else echo "ERROR: Linux Kernel does NOT support UNIX 98 PTY"; fi
     242
    233243alias_check() {
    234244   if $1 --version 2>&amp;1 | grep -qi $2
Note: See TracChangeset for help on using the changeset viewer.