Changeset ae7f075 for chapter06


Ignore:
Timestamp:
05/30/2020 06:22:47 PM (4 years ago)
Author:
Pierre Labastie <pieere@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
264dfd9
Parents:
f4bb2af
Message:

Update to trunk r11877

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross-chap5@11878 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

Location:
chapter06
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • chapter06/automake.xml

    rf4bb2af rae7f075  
    4141  <sect2 role="installation">
    4242    <title>Installation of Automake</title>
     43
     44    <para>Fix a failing test:</para>
     45
     46<screen><userinput remap="pre">sed -i "s/''/etags/"  t/tags-lisp-space.sh</userinput></screen>
    4347
    4448    <para>Prepare Automake for compilation:</para>
  • chapter06/bash.xml

    rf4bb2af rae7f075  
    7474    package</quote> if not running the test suite.</para>
    7575
    76     <para>To prepare the tests, ensure that the <systemitem class="username">nobody</systemitem> user can write to the sources tree:</para>
     76    <para>To prepare the tests, ensure that the <systemitem class="username">tester</systemitem> user can write to the sources tree:</para>
    7777
    78 <screen><userinput remap="test">chown -Rv nobody .</userinput></screen>
     78<screen><userinput remap="test">chown -Rv tester .</userinput></screen>
    7979
    8080    <para>Now, run the tests as the <systemitem
    81     class="username">nobody</systemitem> user:</para>
     81    class="username">tester</systemitem> user:</para>
    8282
    83 <screen><userinput remap="test">su nobody -s /bin/bash -c "PATH=$PATH HOME=/home make tests"</userinput></screen>
     83<screen><userinput remap="test">su tester -c "PATH=$PATH make tests"</userinput></screen>
     84
     85    <para>The <systemitem class="username">tester</systemitem>
     86    user does not have enough permissions for all the tests to pass. This shows
     87    up in some <quote>diff</quote> output in four test results. Portions of the
     88    run-execscript, run-lastpipe, run-read, and run-test programs
     89    are known to fail in the LFS chroot environment, but pass if the tests
     90    are run in a full system.</para>
    8491
    8592    <para>Install the package and move the main executable to
  • chapter06/binutils.xml

    rf4bb2af rae7f075  
    5959
    6060    <para>Now remove one test that prevents the tests from running
    61     to completion:</para>
    62 
    63 <screen><userinput remap="pre">sed -i '/@\tincremental_copy/d' gold/testsuite/Makefile.in</userinput></screen>
     61    to completion, and fix other tests in the gold test suite, which
     62    need to be adjusted for GCC 10:</para>
     63
     64<screen><userinput remap="pre">sed -i '/@\tincremental_copy/d' gold/testsuite/Makefile.in
     65patch -Np1 -i ../binutils-&binutils-version;-gcc10_gold_test_fix-1.patch</userinput></screen>
    6466
    6567    <para>The Binutils documentation recommends building Binutils
     
    158160<screen><userinput remap="test">make -k check</userinput></screen>
    159161
    160     <para>The ver_test_pr16504.sh test is known to fail.</para>
     162<!--    <para>The ver_test_pr16504.sh test is known to fail.</para>-->
    161163
    162164    <para>Install the package:</para>
  • chapter06/chapter06.xml

    rf4bb2af rae7f075  
    2121  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="bzip2.xml"/>
    2222  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="xz.xml"/>
     23  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="zstd.xml"/>
    2324  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="file.xml"/>
    2425  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="readline.xml"/>
    2526  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="m4.xml"/>
    2627  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="bc.xml"/>
     28  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="flex.xml"/>
    2729  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="binutils.xml"/>
    2830  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gmp.xml"/>
     
    4143  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gettext.xml"/>
    4244  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="bison.xml"/>
    43   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="flex.xml"/>
    4445  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="grep.xml"/>
    4546  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="bash.xml"/>
     
    7071  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="less.xml"/>
    7172  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gzip.xml"/>
    72   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="zstd.xml"/>
    7373  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="iproute2.xml"/>
    7474  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="kbd.xml"/>
  • chapter06/coreutils.xml

    rf4bb2af rae7f075  
    109109    meant to be run as user <systemitem class="username">root</systemitem>:</para>
    110110
    111 <screen><userinput remap="test">make NON_ROOT_USERNAME=nobody check-root</userinput></screen>
     111<screen><userinput remap="test">make NON_ROOT_USERNAME=tester check-root</userinput></screen>
    112112
    113113    <para>We're going to run the remainder of the tests as the
    114     <systemitem class="username">nobody</systemitem> user. Certain tests,
     114    <systemitem class="username">tester</systemitem> user. Certain tests,
    115115    however, require that the user be a member of more than one group. So that
    116116    these tests are not skipped we'll add a temporary group and make the
    117     user <systemitem class="username">nobody</systemitem> a part of it:</para>
    118 
    119 <screen><userinput remap="test">echo "dummy:x:1000:nobody" &gt;&gt; /etc/group</userinput></screen>
     117    user <systemitem class="username">tester</systemitem> a part of it:</para>
     118
     119<screen><userinput remap="test">echo "dummy:x:1000:tester" &gt;&gt; /etc/group</userinput></screen>
    120120
    121121    <para>Fix some of the permissions so that the non-root user can compile and
    122122    run the tests:</para>
    123123
    124 <screen><userinput remap="test">chown -Rv nobody . </userinput></screen>
     124<screen><userinput remap="test">chown -Rv tester . </userinput></screen>
    125125
    126126    <para>Now run the tests:</para>
    127127
    128 <screen><userinput remap="test">su nobody -s /bin/bash \
    129           -c "PATH=$PATH make RUN_EXPENSIVE_TESTS=yes check"</userinput></screen>
    130 
     128<screen><userinput remap="test">su tester -c "PATH=$PATH make RUN_EXPENSIVE_TESTS=yes check"</userinput></screen>
     129<!--
    131130    <para>The test program test-getlogin is known to fail in a
    132131    partially built system environment like the chroot environment here, but
    133132    passes if run at the end of this chapter.  The test program tty.sh is
    134133    also known to fail.</para>
     134-->
    135135
    136136    <para>Remove the temporary group:</para>
    137137
    138138<screen><userinput remap="test">sed -i '/dummy/d' /etc/group</userinput></screen>
    139 
    140139    <para>Install the package:</para>
    141140
  • chapter06/findutils.xml

    rf4bb2af rae7f075  
    6868    <para>To test the results, issue:</para>
    6969
    70 <screen><userinput remap="test">make check</userinput></screen>
    71 
    72     <para>Two tests are known to fail in the chroot environment:
    73     sv-bug-54171.old-O3 and sv-bug-54171.new-O3.</para>
     70<screen><userinput remap="test">chown -Rv tester .
     71su tester -c "PATH=$PATH make check"</userinput></screen>
    7472
    7573    <para>Install the package:</para>
  • chapter06/gcc.xml

    rf4bb2af rae7f075  
    9999    <para>Test the results as a non-privileged user, but do not stop at errors:</para>
    100100
    101 <screen><userinput remap="test">chown -Rv nobody .
    102 su nobody -s /bin/bash -c "PATH=$PATH make -k check"</userinput></screen>
     101<screen><userinput remap="test">chown -Rv tester .
     102su tester -c "PATH=$PATH make -k check"</userinput></screen>
    103103
    104104    <para>To receive a summary of the test suite results, run:</para>
     
    140140
    141141    <para>The GCC build directory is owned by <systemitem class="username">
    142     nobody</systemitem> now and the ownership of the installed header
     142    tester</systemitem> now and the ownership of the installed header
    143143    directory (and its content) will be incorrect.  Change the ownership to
    144144    <systemitem class="username">root</systemitem> user and group:</para>
  • chapter06/make.xml

    rf4bb2af rae7f075  
    5757    results, issue:</para>
    5858
    59 <screen><userinput remap="test">make PERL5LIB=$PWD/tests/ check</userinput></screen>
     59<screen><userinput remap="test">make check</userinput></screen>
    6060
    6161    <para>Install the package:</para>
  • chapter06/revisedchroot.xml

    rf4bb2af rae7f075  
    4343
    4444<screen><userinput>rm -f /usr/lib/lib{bfd,opcodes}.a
     45rm -f /usr/lib/libctf{,-nobfd}.a
    4546rm -f /usr/lib/libbz2.a
    4647rm -f /usr/lib/lib{com_err,e2p,ext2fs,ss}.a
     
    6263   Archive (.la) files"</ulink>.</para>
    6364
     65   <para>Finally, remove the temporary 'tester' usr account created at the
     66   beginning of this chapter.</para>
     67
     68<screen><userinput>sed -i '/tester/d' /etc/passwd /etc/group
     69rm -rf /home/tester</userinput></screen>
    6470</sect1>
  • chapter06/sed.xml

    rf4bb2af rae7f075  
    4141    <title>Installation of Sed</title>
    4242
    43     <para>First fix an issue in the LFS environment and remove a failing test:</para>
    44 
    45 <screen><userinput remap="pre">sed -i 's/testsuite.panic-tests.sh//' Makefile.in</userinput></screen>
    46 
    4743    <para>Prepare Sed for compilation:</para>
    4844
     
    5652    <para>To test the results, issue:</para>
    5753
    58 <screen><userinput remap="test">make check</userinput></screen>
     54<screen><userinput remap="test">chown -Rv tester .
     55su tester -c "PATH=$PATH make check"</userinput></screen>
    5956
    6057    <para>Install the package and its documentation:</para>
  • chapter06/util-linux.xml

    rf4bb2af rae7f075  
    4141
    4242  <sect2 role="installation">
    43     <title>FHS compliance notes</title>
     43    <title>Installation of Util-linux</title>
    4444
    4545    <para>The FHS recommends using the <filename
    4646    class="directory">/var/lib/hwclock</filename> directory instead of the
    4747    usual <filename class="directory">/etc</filename> directory as the
    48     location for the <filename>adjtime</filename> file.  First create a directory
    49     to enable storage for the <command>hwclock</command> program:</para>
     48    location for the <filename>adjtime</filename> file. Create this directory
     49    with:</para>
    5050
    5151<screen><userinput remap="pre">mkdir -pv /var/lib/hwclock</userinput></screen>
    52 
    53   </sect2>
    54 
    55   <sect2 role="installation">
    56     <title>Installation of Util-linux</title>
    5752
    5853    <para>Prepare Util-linux for compilation:</para>
     
    10499    </warning>
    105100
    106 <screen><userinput remap="test">chown -Rv nobody .
    107 su nobody -s /bin/bash -c "PATH=$PATH make -k check"</userinput></screen>
     101<screen><userinput remap="test">chown -Rv tester .
     102su tester -c "make -k check"</userinput></screen>
    108103
    109104    <para>Install the package:</para>
  • chapter06/vim.xml

    rf4bb2af rae7f075  
    6868
    6969    <para>To prepare the tests, ensure that the
    70     <systemitem class="username">nobody</systemitem> user can write
     70    <systemitem class="username">tester</systemitem> user can write
    7171    to the sources tree:</para>
    7272
    73 <screen><userinput remap="test">chown -Rv nobody .</userinput></screen>
     73<screen><userinput remap="test">chown -Rv tester .</userinput></screen>
    7474
    7575    <para>Now run the tests as the <systemitem
    76     class="username">nobody</systemitem> user:</para>
    77 
    78 <screen><userinput remap="test">su nobody -s /bin/bash -c "LANG=en_US.UTF-8 make -j1 test" &amp;> vim-test.log</userinput></screen>
     76    class="username">tester</systemitem> user:</para>
     77
     78<screen><userinput remap="test">su tester -c "LANG=en_US.UTF-8 make -j1 test" &amp;> vim-test.log</userinput></screen>
    7979
    8080<!--<screen><userinput remap="test">LANG=en_US.UTF-8 make -j1 test &amp;&gt; vim-test.log</userinput></screen>-->
Note: See TracChangeset for help on using the changeset viewer.