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
  • chapter08/binutils.xml

    re0fb109 r835e40c  
    4242    <title>Installation of Binutils</title>
    4343
    44     <para>Verify that the PTYs are working properly inside the chroot
    45     environment by performing a simple test:</para>
    46 
    47 <screen><userinput remap="test">expect -c "spawn ls"</userinput></screen>
    48 
    49     <para>This command should output the following:</para>
    50 
    51 <screen><computeroutput>spawn ls</computeroutput></screen>
    52 
    53     <para>If, instead, the output includes the message below, then the environment
    54     is not set up for proper PTY operation.  This issue needs to be resolved before
    55     running the test suites for Binutils and GCC:</para>
    56 
    57 <screen><computeroutput>The system has no more ptys.
    58 Ask your system administrator to create more.</computeroutput></screen>
    59 <!-- Fixed in binutils-2.39
    60     <para>
    61       Now make a fix identified upstream that affects building some packages:
    62      </para>
    63 
    64 <screen><userinput remap="pre">sed -e '/R_386_TLS_LE /i \   || (TYPE) == R_386_TLS_IE \\' \
    65     -i ./bfd/elfxx-x86.h</userinput></screen>
    66 -->
    6744    <para>The Binutils documentation recommends building Binutils
    6845    in a dedicated build directory:</para>
Note: See TracChangeset for help on using the changeset viewer.