Changeset 7406bec


Ignore:
Timestamp:
05/29/2020 08:06:18 AM (17 months ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, ml-11.0, multilib, old-trunk, trunk, xry111/git-transition, xry111/glibc-2.34, xry111/tester-nohack, xry111/usr-move
Children:
5f24c50
Parents:
51c960d
Message:

Add an unprivileged user, tester, at the
beginning of Chapter 6 for running some tests. This
user is then removed at the end of the chapter.

Update to zstd-1.4.5. Fixes
Update to util-linux-2.35.2. Fixes
Update to bison-3.6.2. Fixes
Update to linux-5.6.15. Fixes

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11864 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

Files:
10 edited

Legend:

Unmodified
Added
Removed
  • chapter01/changelog.xml

    r51c960d r7406bec  
    4747      <itemizedlist>
    4848        <listitem>
     49          <para>[bdubbs] - Add an unprivileged user, tester, at the
     50          beginning of Chapter 6 for running some tests.  This
     51          user is then removed at the end of the chapter.</para>
     52        </listitem>
     53        <listitem>
     54          <para>[bdubbs] - Update to zstd-1.4.5. Fixes
     55          <ulink url="&lfs-ticket-root;4660">#4660</ulink>.</para>
     56        </listitem>
     57        <listitem>
     58          <para>[bdubbs] - Update to util-linux-2.35.2. Fixes
     59          <ulink url="&lfs-ticket-root;4659">#4659</ulink>.</para>
     60        </listitem>
     61        <listitem>
     62          <para>[bdubbs] - Update to bison-3.6.2. Fixes
     63          <ulink url="&lfs-ticket-root;4657">#4657</ulink>.</para>
     64        </listitem>
     65        <listitem>
    4966          <para>[pierre] - Update to linux-5.6.15. Fixes
    5067          <ulink url="&lfs-ticket-root;4658">#4658</ulink>.</para>
     
    6784        <listitem>
    6885          <para>[pierre] - Bash: do not use "su -c command" to change user
    69           to nobody: it removes the controlling terminal and makes some
    70           tests fail. Use "su &lt;&lt; EOF" instead.</para>
     86          to nobody: it removes the controlling terminal and makes some
     87          tests fail. Use "su &lt;&lt; EOF" instead.</para>
    7188        </listitem>
    7289        <listitem>
  • chapter01/whatsnew.xml

    r51c960d r7406bec  
    243243      <para>Tzdata-&tzdata-version;</para>
    244244    </listitem>
    245     <!--<listitem>
     245    <listitem>
    246246      <para>Util-Linux-&util-linux-version;</para>
    247     </listitem>-->
     247    </listitem>
    248248    <listitem>
    249249      <para>Vim-&vim-version;</para>
     
    258258      <para>Zlib-&zlib-version;</para>
    259259    </listitem>-->
    260     <!--<listitem>
     260    <listitem>
    261261      <para>Zstd-&zstd-version;</para>
    262     </listitem>-->
     262    </listitem>
    263263  </itemizedlist>
    264264
  • chapter06/bash.xml

    r51c960d r7406bec  
    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 &lt;&lt; EOF
    84 PATH=$PATH HOME=/home make tests
    85 EOF</userinput></screen>
    86 
     83<screen><userinput remap="test">su tester -c "PATH=$PATH make tests"</userinput></screen>
     84<!--
    8785    <para>The <command>su</command> command above is slightly different from
    8886    other places in the book. The
    8987    reason is that the <option>-c</option> option runs the command without
    9088    a controlling terminal, while the bash test suite needs one.</para>
    91 
    92     <para>Nevertheless, the <systemitem class="username">nobody</systemitem>
     89-->
     90    <para>The <systemitem class="username">tester</systemitem>
    9391    user does not have enough permissions for all the tests to pass. This shows
    9492    up in some <quote>diff</quote> output in four test results.</para>
  • chapter06/coreutils.xml

    r51c960d r7406bec  
    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 "tester:x:1000:nogroup" &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. Make sure the PATH in the <userinput>su</userinput>
    127127    environment includes /tools/bin.</para>
    128128
    129 <screen><userinput remap="test">su nobody -s /bin/bash -c "PATH=$PATH make RUN_EXPENSIVE_TESTS=yes check"</userinput></screen>
     129<screen><userinput remap="test">su tester -c "PATH=$PATH make RUN_EXPENSIVE_TESTS=yes check"</userinput></screen>
    130130<!--
    131131    <para>The test program test-getlogin is known to fail in a
     
    133133    passes if run at the end of this chapter.  The test program tty.sh is
    134134    also known to fail.</para>
     135
     136    <para>Remove the temporary group:</para>
     137
     138<screen><userinput remap="test">sed -i '/dummy/d' /etc/group</userinput></screen>
    135139-->
    136     <para>Remove the temporary group:</para>
    137 
    138 <screen><userinput remap="test">sed -i '/dummy/d' /etc/group</userinput></screen>
    139 
    140140    <para>Install the package:</para>
    141141
  • chapter06/createfiles.xml

    r51c960d r7406bec  
    343343  rather use the group's name.</para>
    344344
     345  <para>Some tests later in the chapter need a regular user. We add this
     346  user here and delete this account at the end of the chapter.</para>
     347
     348<screen><userinput>echo "tester:x:101:101::/tmp:/bin/bash" &gt;&gt; /etc/passwd
     349echo "tester:x:101:dummy" &gt;&gt; /etc/group</userinput></screen>
     350
    345351  <para>To remove the <quote>I have no name!</quote> prompt, start a new
    346352  shell. Since a full Glibc was installed in <xref
  • chapter06/gcc.xml

    r51c960d r7406bec  
    116116    <para>Test the results as a non-privileged user, but do not stop at errors:</para>
    117117
    118 <screen><userinput remap="test">chown -Rv nobody .
    119 su nobody -s /bin/bash -c "PATH=$PATH make -k check"</userinput></screen>
     118<screen><userinput remap="test">chown -Rv tester .
     119su tester -c "PATH=$PATH make -k check"</userinput></screen>
    120120
    121121    <para>To receive a summary of the test suite results, run:</para>
     
    157157
    158158    <para>The GCC build directory is owned by <systemitem class="username">
    159     nobody</systemitem> now and the ownership of the installed header
     159    tester</systemitem> now and the ownership of the installed header
    160160    directory (and its content) will be incorrect.  Change the ownership to
    161161    <systemitem class="username">root</systemitem> user and group:</para>
  • chapter06/revisedchroot.xml

    r51c960d r7406bec  
    7171   Archive (.la) files"</ulink>.</para>
    7272
     73   <para>Finally, remove the temporary 'tester' usr account created at the
     74   beginning of this chapter.</para>
     75
     76<screen><userinput>sed -i '/tester/d' /etc/passwd /etc/group</userinput></screen>
    7377</sect1>
  • chapter06/util-linux.xml

    r51c960d r7406bec  
    116116    </warning>
    117117
    118 <screen><userinput remap="test">chown -Rv nobody .
    119 su nobody -s /bin/bash -c "PATH=$PATH make -k check"</userinput></screen>
     118<screen><userinput remap="test">chown -Rv tester .
     119su tester -c "make -k check"</userinput></screen>
    120120
    121121    <para>Install the package:</para>
  • chapter06/vim.xml

    r51c960d r7406bec  
    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>-->
  • packages.ent

    r51c960d r7406bec  
    7171<!ENTITY binutils-ch6-sbu "6.7 SBU">
    7272
    73 <!ENTITY bison-version "3.6.1">
    74 <!ENTITY bison-size "2,407 KB">
     73<!ENTITY bison-version "3.6.2">
     74<!ENTITY bison-size "2,411 KB">
    7575<!ENTITY bison-url "&gnu;bison/bison-&bison-version;.tar.xz">
    76 <!ENTITY bison-md5 "16fa3e60f2c33888c6ef7af64c89e182">
     76<!ENTITY bison-md5 "fa5f7c67c523f1d8b2155f55e67f7e1c">
    7777<!ENTITY bison-home "&gnu-software;bison/">
    7878<!ENTITY bison-ch5-du "43 MB">
     
    429429<!--<!ENTITY linux-version "&linux-major-version;.&linux-minor-version;">-->
    430430<!ENTITY linux-version "&linux-major-version;.&linux-minor-version;.&linux-patch-version;">
    431 <!ENTITY linux-size "109,192 KB">
     431<!ENTITY linux-size "109,193 KB">
    432432<!ENTITY linux-url "&kernel;linux/kernel/v&linux-major-version;.x/linux-&linux-version;.tar.xz">
    433433<!ENTITY linux-md5 "41f02b34dbb66ffa6b71bb3e2361e94d">
     
    691691
    692692<!ENTITY util-linux-minor "2.35">
    693 <!ENTITY util-linux-version "2.35.1"> <!-- 2.33.x -->
    694 <!ENTITY util-linux-size "5,018 KB">
     693<!ENTITY util-linux-version "2.35.2"> <!-- 2.33.x -->
     694<!ENTITY util-linux-size "5,030 KB">
    695695<!ENTITY util-linux-url "&kernel;linux/utils/util-linux/v&util-linux-minor;/util-linux-&util-linux-version;.tar.xz">
    696 <!ENTITY util-linux-md5 "7f64882f631225f0295ca05080cee1bf">
     696<!ENTITY util-linux-md5 "248a4d0810c9193e0e9a4bb3f26b93d8">
    697697<!ENTITY util-linux-home "http://freecode.com/projects/util-linux">
    698698<!ENTITY util-linux-ch5-du "154 MB">
     
    738738<!ENTITY zlib-ch6-sbu "less than 0.1 SBU">
    739739
    740 <!ENTITY zstd-version "1.4.4">
    741 <!ENTITY zstd-size "1,903 KB">
     740<!ENTITY zstd-version "1.4.5">
     741<!ENTITY zstd-size "1,928 KB">
    742742<!ENTITY zstd-url "https://github.com/facebook/zstd/releases/download/v&zstd-version;/zstd-&zstd-version;.tar.gz">
    743 <!ENTITY zstd-md5 "487f7ee1562dee7c1c8adf85e2a63df9">
     743<!ENTITY zstd-md5 "dd0b53631303b8f972dafa6fd34beb0c">
    744744<!ENTITY zstd-home "https://facebook.github.io/zstd/">
    745745<!ENTITY zstd-ch6-du "16 MB">
Note: See TracChangeset for help on using the changeset viewer.