Changeset 777c890


Ignore:
Timestamp:
05/30/2020 07:00:00 AM (4 years ago)
Author:
Thomas Trepl <thomas@…>
Branches:
multilib-10.1
Children:
0e9d60e
Parents:
160e72c
Message:

MultiLib: Merge changes up to 11861

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

Files:
15 edited

Legend:

Unmodified
Added
Removed
  • appendices/dependencies.xml

    r160e72c r777c890  
    912912        <seglistitem>
    913913         <seg>Bash, Binutils, Coreutils, Gawk, GCC, Glibc, Grep, Make,
    914          Sed, and Texinfo</seg>
     914         Ncurses, Sed, and Texinfo</seg>
    915915        </seglistitem>
    916916      </segmentedlist>
  • chapter01/changelog.xml

    r160e72c r777c890  
    4646    -->
    4747    <listitem>
     48      <para>2020-05-29</para>
     49      <itemizedlist>
     50        <listitem>
     51          <para>[bdubbs] - Run sed and findutils tests as an
     52          unprivileged user. Fixes
     53          <ulink url="&lfs-ticket-root;4661">#4661</ulink>.</para>
     54        </listitem>
     55      </itemizedlist>
     56    </listitem>
     57
     58    <listitem>
     59      <para>2020-05-28</para>
     60      <itemizedlist>
     61        <listitem>
     62          <para>[bdubbs] - Add an unprivileged user, tester, at the
     63          beginning of Chapter 6 for running some tests.  This
     64          user is then removed at the end of the chapter.</para>
     65        </listitem>
     66        <listitem>
     67          <para>[bdubbs] - Update to zstd-1.4.5. Fixes
     68          <ulink url="&lfs-ticket-root;4660">#4660</ulink>.</para>
     69        </listitem>
     70        <listitem>
     71          <para>[bdubbs] - Update to util-linux-2.35.2. Fixes
     72          <ulink url="&lfs-ticket-root;4659">#4659</ulink>.</para>
     73        </listitem>
     74        <listitem>
     75          <para>[bdubbs] - Update to bison-3.6.2. Fixes
     76          <ulink url="&lfs-ticket-root;4657">#4657</ulink>.</para>
     77        </listitem>
     78        <listitem>
     79          <para>[pierre] - Update to linux-5.6.15. Fixes
     80          <ulink url="&lfs-ticket-root;4658">#4658</ulink>.</para>
     81        </listitem>
     82      </itemizedlist>
     83    </listitem>
     84
     85    <listitem>
     86      <para>2020-05-27</para>
     87      <itemizedlist>
     88        <listitem>
     89          <para>[pierre] - Bash: document test results.</para>
     90        </listitem>
     91      </itemizedlist>
     92    </listitem>
     93
     94    <listitem>
    4895      <para>2020-05-26</para>
    4996      <itemizedlist>
    5097        <listitem>
    5198          <para>[pierre] - Bash: do not use "su -c command" to change user
    52           to nobody: it removes the controlling terminal and makes some
    53           tests fail. Use "su &lt;&lt; EOF" instead.</para>
     99          to nobody: it removes the controlling terminal and makes some
     100          tests fail. Use "su &lt;&lt; EOF" instead.</para>
    54101        </listitem>
    55102        <listitem>
     
    68115        </listitem>
    69116        <listitem>
    70           <para>[pierre] - Add a symlink from /tools/share/locale
    71           to /usr/share/locale/locale-archive, to allow some programs
     117          <para>[pierre] - Add a symlink from /tools/lib/locale
     118          to /usr/lib/locale/locale-archive, to allow some programs
    72119          to find the installed locales. Fixes test failures in bison
    73           and man-db;</para>
     120          and man-db.</para>
    74121        </listitem>
    75122      </itemizedlist>
  • chapter01/whatsnew.xml

    r160e72c r777c890  
    246246      <para>Tzdata-&tzdata-version;</para>
    247247    </listitem>
    248     <!--<listitem>
     248    <listitem>
    249249      <para>Util-Linux-&util-linux-version;</para>
    250     </listitem>-->
     250    </listitem>
    251251    <listitem>
    252252      <para>Vim-&vim-version;</para>
     
    261261      <para>Zlib-&zlib-version;</para>
    262262    </listitem>-->
    263     <!--<listitem>
     263    <listitem>
    264264      <para>Zstd-&zstd-version;</para>
    265     </listitem>-->
     265    </listitem>
    266266  </itemizedlist>
    267267
  • chapter06/bash.xml

    r160e72c r777c890  
    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>
     83<screen><userinput remap="test">su tester -c "PATH=$PATH make tests"</userinput></screen>
    8684
    87     <para>The <command>su</command> command above is slightly different from
    88     other places in the book. The
    89     reason is that the <option>-c</option> option runs the command without
    90     a controlling terminal, while the bash test suite needs one.</para>
     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>
    9191
    9292    <para>Install the package and move the main executable to
  • chapter06/coreutils.xml

    r160e72c r777c890  
    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

    r160e72c r777c890  
    365365  rather use the group's name.</para>
    366366
     367  <para>Some tests later in the chapter need a regular user. We add this
     368  user here and delete this account at the end of the chapter.</para>
     369
     370<screen><userinput>echo "tester:x:101:101::/home/tester:/bin/bash" &gt;&gt; /etc/passwd
     371echo "tester:x:101:dummy" &gt;&gt; /etc/group
     372install -o tester -d /home/tester</userinput></screen>
     373
    367374  <para>To remove the <quote>I have no name!</quote> prompt, start a new
    368375  shell. Since a full Glibc was installed in <xref
  • chapter06/findutils.xml

    r160e72c r777c890  
    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

    r160e72c r777c890  
    127127    <para>Test the results as a non-privileged user, but do not stop at errors:</para>
    128128
    129 <screen><userinput remap="test">chown -Rv nobody .
    130 su nobody -s /bin/bash -c "PATH=$PATH make -k check"</userinput></screen>
     129<screen><userinput remap="test">chown -Rv tester .
     130su tester -c "PATH=$PATH make -k check"</userinput></screen>
    131131
    132132    <para>To receive a summary of the test suite results, run:</para>
     
    168168
    169169    <para>The GCC build directory is owned by <systemitem class="username">
    170     nobody</systemitem> now and the ownership of the installed header
     170    tester</systemitem> now and the ownership of the installed header
    171171    directory (and its content) will be incorrect.  Change the ownership to
    172172    <systemitem class="username">root</systemitem> user and group:</para>
  • chapter06/revisedchroot.xml

    r160e72c r777c890  
    7474   Archive (.la) files"</ulink>.</para>
    7575
     76   <para>Finally, remove the temporary 'tester' usr account created at the
     77   beginning of this chapter.</para>
     78
     79<screen><userinput>sed -i '/tester/d' /etc/passwd /etc/group
     80rm -rf /home/tester</userinput></screen>
    7681</sect1>
  • chapter06/sed.xml

    r160e72c r777c890  
    4141    <title>Installation of Sed</title>
    4242
    43     <para>First fix an issue in the LFS environment and remove a failing test:</para>
     43    <para>First fix an issue in the LFS environment:</para>
    4444
    45 <screen><userinput remap="pre">sed -i 's/usr/tools/'                 build-aux/help2man
    46 sed -i 's/testsuite.panic-tests.sh//' Makefile.in</userinput></screen>
     45<screen><userinput remap="pre">sed -i 's/usr/tools/' build-aux/help2man</userinput></screen>
    4746
    4847    <para>Prepare Sed for compilation:</para>
    4948
    5049<screen><userinput remap="configure">./configure --prefix=/usr --bindir=/bin</userinput></screen>
    51 <!--
    52     <variablelist>
    53       <title>The meaning of the new configure option:</title>
    5450
    55       <varlistentry>
    56         <term><parameter>-i -htmldir</parameter></term>
    57         <listitem>
    58           <para>This sets the installation directory for the HTML documentation.</para>
    59         </listitem>
    60       </varlistentry>
    61     </variablelist>
    62 -->
    6351    <para>Compile the package and generate the HTML documentation:</para>
    6452
     
    6856    <para>To test the results, issue:</para>
    6957
    70 <screen><userinput remap="test">make check</userinput></screen>
     58<screen><userinput remap="test">chown -Rv tester .
     59su -c "PATH=$PATH make check"</userinput></screen>
    7160
    7261    <para>Install the package and its documentation:</para>
  • chapter06/util-linux.xml

    r160e72c r777c890  
    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>
    57 <!--
    58     <para>First, fix one of the regression tests:</para>
    59 
    60 <screen><userinput remap="pre">sed -e 's/2^64/(2^64/' -e 's/E &lt;/E) &lt;=/' -e 's/ne /eq /' \
    61     -i tests/ts/ipcs/limits2</userinput></screen>
    62 -->
    6352
    6453    <para>Remove the earlier created symlinks and files:</para>
     
    116105    </warning>
    117106
    118 <screen><userinput remap="test">chown -Rv nobody .
    119 su nobody -s /bin/bash -c "PATH=$PATH make -k check"</userinput></screen>
     107<screen><userinput remap="test">chown -Rv tester .
     108su tester -c "make -k check"</userinput></screen>
    120109
    121110    <para>Install the package:</para>
  • chapter06/vim.xml

    r160e72c r777c890  
    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>-->
  • chapter08/kernel.xml

    r160e72c r777c890  
    5454    kernel compilation. Do not rely on the source tree being clean after
    5555    un-tarring.</para>
    56 
    57     <!-- The following paragraph and sed should be only necessary on the 5.6
    58          series, but check when 5.7 is out. -->
    59     <para>When using <envar>CONFIG_STACKPROTECTOR_STRONG=y</envar>, and
    60     compiling with GCC 10 and later, the default optimization is too
    61     aggressive, and generates a kernel panic when booting. This can be
    62     fixed with:</para>
    63 
    64 <screen><userinput remap="pre">sed -e '/cpu_startup/a asm("");' \
    65     -i arch/x86/{kernel/smpboot.c,xen/smp_pv.c}</userinput></screen>
    6656
    6757    <!-- Support for compiling a keymap into the kernel is deliberately removed -->
  • general.ent

    r160e72c r777c890  
    1 <!ENTITY version         "SVN-20200526">
     1<!ENTITY version         "SVN-20200529">
    22<!ENTITY short-version   "svn">  <!-- Used below in &blfs-book;
    33                                      Change to x.y for release but not -rc releases -->
    44<!ENTITY generic-version "development"> <!-- Use "development"  or "x.y[-pre{x}]" -->
    55
    6 <!ENTITY versiond        "20200526-systemd">
     6<!ENTITY versiond        "20200529-systemd">
    77<!ENTITY short-versiond  "systemd">
    88<!ENTITY generic-versiond "systemd">
    99
    10 <!ENTITY releasedate     "May 26th, 2020">
     10<!ENTITY releasedate     "May 29th, 2020">
    1111
    1212<!ENTITY copyrightdate   "1999-2020"><!-- jhalfs needs a literal dash, not &ndash; -->
  • packages.ent

    r160e72c r777c890  
    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">
     
    434434<!ENTITY linux-major-version "5">
    435435<!ENTITY linux-minor-version "6">
    436 <!ENTITY linux-patch-version "13">
     436<!ENTITY linux-patch-version "15">
    437437<!--<!ENTITY linux-version "&linux-major-version;.&linux-minor-version;">-->
    438438<!ENTITY linux-version "&linux-major-version;.&linux-minor-version;.&linux-patch-version;">
    439 <!ENTITY linux-size "109,177 KB">
     439<!ENTITY linux-size "109,193 KB">
    440440<!ENTITY linux-url "&kernel;linux/kernel/v&linux-major-version;.x/linux-&linux-version;.tar.xz">
    441 <!ENTITY linux-md5 "73fa7a9e7c42a9ab2cc8151d20e8d6b6">
     441<!ENTITY linux-md5 "41f02b34dbb66ffa6b71bb3e2361e94d">
    442442<!ENTITY linux-home "https://www.kernel.org/">
    443443<!-- measured for 4.8.3 / gcc-6.2.0 on x86_64 : minimum is
     
    709709
    710710<!ENTITY util-linux-minor "2.35">
    711 <!ENTITY util-linux-version "2.35.1"> <!-- 2.33.x -->
    712 <!ENTITY util-linux-size "5,018 KB">
     711<!ENTITY util-linux-version "2.35.2"> <!-- 2.33.x -->
     712<!ENTITY util-linux-size "5,030 KB">
    713713<!ENTITY util-linux-url "&kernel;linux/utils/util-linux/v&util-linux-minor;/util-linux-&util-linux-version;.tar.xz">
    714 <!ENTITY util-linux-md5 "7f64882f631225f0295ca05080cee1bf">
     714<!ENTITY util-linux-md5 "248a4d0810c9193e0e9a4bb3f26b93d8">
    715715<!ENTITY util-linux-home "http://freecode.com/projects/util-linux">
    716716<!ENTITY util-linux-ch5-du "154 MB">
     
    756756<!ENTITY zlib-ch6-sbu "less than 0.1 SBU">
    757757
    758 <!ENTITY zstd-version "1.4.4">
    759 <!ENTITY zstd-size "1,903 KB">
     758<!ENTITY zstd-version "1.4.5">
     759<!ENTITY zstd-size "1,928 KB">
    760760<!ENTITY zstd-url "https://github.com/facebook/zstd/releases/download/v&zstd-version;/zstd-&zstd-version;.tar.gz">
    761 <!ENTITY zstd-md5 "487f7ee1562dee7c1c8adf85e2a63df9">
     761<!ENTITY zstd-md5 "dd0b53631303b8f972dafa6fd34beb0c">
    762762<!ENTITY zstd-home "https://facebook.github.io/zstd/">
    763763<!ENTITY zstd-ch6-du "16 MB">
Note: See TracChangeset for help on using the changeset viewer.