Update to trunk r11877

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross-chap5@11878 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
Pierre Labastie 2020-05-30 18:22:47 +00:00
parent f4bb2af2e4
commit ae7f075dd6
23 changed files with 174 additions and 87 deletions

View File

@ -780,7 +780,7 @@
<segtitle>&before;</segtitle> <segtitle>&before;</segtitle>
<seglistitem> <seglistitem>
<seg>None</seg> <seg>Binutils, IProute2, Kbd, Kmod, and Man-DB</seg>
</seglistitem> </seglistitem>
</segmentedlist> </segmentedlist>
@ -837,7 +837,7 @@
<seglistitem> <seglistitem>
<seg>Bash, Binutils, Coreutils, Diffutils, Findutils, Gawk, GCC, <seg>Bash, Binutils, Coreutils, Diffutils, Findutils, Gawk, GCC,
Gettext, Glibc, GMP, Grep, M4, Make, MPC, MPFR, Patch, Perl, Sed, Tar, Gettext, Glibc, GMP, Grep, M4, Make, MPC, MPFR, Patch, Perl, Sed, Tar,
and Texinfo</seg> Texinfo, and Zstd</seg>
</seglistitem> </seglistitem>
</segmentedlist> </segmentedlist>
@ -911,7 +911,7 @@
<seglistitem> <seglistitem>
<seg>Bash, Binutils, Coreutils, Gawk, GCC, Glibc, Grep, Make, <seg>Bash, Binutils, Coreutils, Gawk, GCC, Glibc, Grep, Make,
Sed, and Texinfo</seg> Ncurses, Sed, and Texinfo</seg>
</seglistitem> </seglistitem>
</segmentedlist> </segmentedlist>
@ -2786,7 +2786,7 @@
<segtitle>&before;</segtitle> <segtitle>&before;</segtitle>
<seglistitem> <seglistitem>
<seg>None</seg> <seg>GCC</seg>
</seglistitem> </seglistitem>
</segmentedlist> </segmentedlist>

View File

@ -42,6 +42,84 @@
<listitem revision="sysv"> or <listitem revision="systemd"> as <listitem revision="sysv"> or <listitem revision="systemd"> as
appropriate for the entry or if needed the entire day's listitem. appropriate for the entry or if needed the entire day's listitem.
--> -->
<listitem>
<para>2020-05-29</para>
<itemizedlist>
<listitem>
<para>[bdubbs] - Run sed and findutils tests as an
unprivileged user. Fixes
<ulink url="&lfs-ticket-root;4661">#4661</ulink>.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>2020-05-28</para>
<itemizedlist>
<listitem>
<para>[bdubbs] - 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.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to zstd-1.4.5. Fixes
<ulink url="&lfs-ticket-root;4660">#4660</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to util-linux-2.35.2. Fixes
<ulink url="&lfs-ticket-root;4659">#4659</ulink>.</para>
</listitem>
<listitem>
<para>[bdubbs] - Update to bison-3.6.2. Fixes
<ulink url="&lfs-ticket-root;4657">#4657</ulink>.</para>
</listitem>
<listitem>
<para>[pierre] - Update to linux-5.6.15. Fixes
<ulink url="&lfs-ticket-root;4658">#4658</ulink>.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>2020-05-27</para>
<itemizedlist>
<listitem>
<para>[pierre] - Bash: document test results.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>2020-05-26</para>
<itemizedlist>
<listitem>
<para>[pierre] - Bash: do not use "su -c command" to change user
to nobody: it removes the controlling terminal and makes some
tests fail. Use "su &lt;&lt; EOF" instead.</para>
</listitem>
<listitem>
<para>[pierre] - Mount /dev/pts with "--bind", so that "tty"
knows there is a terminal. Fixes a test in coreutils.</para>
</listitem>
<listitem>
<para>[pierre] - Add a patch to fix a failure in gold test suite,
which really needs -fcommon in some tests.</para>
</listitem>
<listitem>
<para>[pierre] - Fix a failure in automake test suite.</para>
</listitem>
<listitem>
<para>[pierre] - Update to vim-8.2.0814.</para>
</listitem>
<listitem>
<para>[pierre] - Add a symlink from /tools/lib/locale
to /usr/lib/locale/locale-archive, to allow some programs
to find the installed locales. Fixes test failures in bison
and man-db.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem> <listitem>
<para>2020-05-21</para> <para>2020-05-21</para>
<itemizedlist> <itemizedlist>

View File

@ -242,9 +242,9 @@
<listitem> <listitem>
<para>Tzdata-&tzdata-version;</para> <para>Tzdata-&tzdata-version;</para>
</listitem> </listitem>
<!--<listitem> <listitem>
<para>Util-Linux-&util-linux-version;</para> <para>Util-Linux-&util-linux-version;</para>
</listitem>--> </listitem>
<listitem> <listitem>
<para>Vim-&vim-version;</para> <para>Vim-&vim-version;</para>
</listitem> </listitem>
@ -257,9 +257,9 @@
<!--<listitem> <!--<listitem>
<para>Zlib-&zlib-version;</para> <para>Zlib-&zlib-version;</para>
</listitem>--> </listitem>-->
<!--<listitem> <listitem>
<para>Zstd-&zstd-version;</para> <para>Zstd-&zstd-version;</para>
</listitem>--> </listitem>
</itemizedlist> </itemizedlist>
<!--<itemizedlist> <!--<itemizedlist>

View File

@ -26,15 +26,15 @@
</listitem> </listitem>
</varlistentry> </varlistentry>
<!--
<varlistentry> <varlistentry>
<term>Bc Memory Leak Patch - <token>&bc-memory-leak-patch-size;</token>:</term> <term>Binutils Fix for gold Test Suite Patch - <token>&binutils-gold-test-patch-size;</token>:</term>
<listitem> <listitem>
<para>Download: <ulink url="&patches-root;&bc-memory-leak-patch;"/></para> <para>Download: <ulink url="&patches-root;&binutils-gold-test-patch;"/></para>
<para>MD5 sum: <literal>&bc-memory-leak-patch-md5;</literal></para> <para>MD5 sum: <literal>&binutils-gold-test-patch-md5;</literal></para>
</listitem> </listitem>
</varlistentry> </varlistentry>
-->
<varlistentry> <varlistentry>
<term>Bzip2 Documentation Patch - <token>&bzip2-docs-patch-size;</token>:</term> <term>Bzip2 Documentation Patch - <token>&bzip2-docs-patch-size;</token>:</term>
<listitem> <listitem>

View File

@ -22,7 +22,6 @@
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="m4.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="m4.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="ncurses.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="ncurses.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="bash.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="bash.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="bzip2.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="coreutils.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="coreutils.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="diffutils.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="diffutils.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="file.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="file.xml"/>

View File

@ -156,6 +156,14 @@ EOF</userinput></screen>
administrator since well-written programs do not depend on GID numbers, but administrator since well-written programs do not depend on GID numbers, but
rather use the group's name.</para> rather use the group's name.</para>
<para>Some tests in <xref linkend="chapter-building-system"/> need a regular
user. We add this user here and delete this account at the end of that
chapter.</para>
<screen><userinput>echo "tester:x:101:101::/home/tester:/bin/bash" &gt;&gt; /etc/passwd
echo "tester:x:101:" &gt;&gt; /etc/group
install -o tester -d /home/tester</userinput></screen>
<para>To remove the <quote>I have no name!</quote> prompt, start a new <para>To remove the <quote>I have no name!</quote> prompt, start a new
shell. Since the shell. Since the
<filename>/etc/passwd</filename> and <filename>/etc/group</filename> <filename>/etc/passwd</filename> and <filename>/etc/group</filename>

View File

@ -68,7 +68,7 @@ mknod -m 666 $LFS/dev/null c 1 3</userinput></screen>
<para>Now mount the remaining virtual kernel filesystems:</para> <para>Now mount the remaining virtual kernel filesystems:</para>
<screen><userinput>mount -vt devpts devpts $LFS/dev/pts -o gid=5,mode=620 <screen><userinput>mount -v --bind /dev/pts $LFS/dev/pts
mount -vt proc proc $LFS/proc mount -vt proc proc $LFS/proc
mount -vt sysfs sysfs $LFS/sys mount -vt sysfs sysfs $LFS/sys
mount -vt tmpfs tmpfs $LFS/run</userinput></screen> mount -vt tmpfs tmpfs $LFS/run</userinput></screen>

View File

@ -41,6 +41,10 @@
<sect2 role="installation"> <sect2 role="installation">
<title>Installation of Automake</title> <title>Installation of Automake</title>
<para>Fix a failing test:</para>
<screen><userinput remap="pre">sed -i "s/''/etags/" t/tags-lisp-space.sh</userinput></screen>
<para>Prepare Automake for compilation:</para> <para>Prepare Automake for compilation:</para>
<screen><userinput remap="configure">./configure --prefix=/usr --docdir=/usr/share/doc/automake-&automake-version;</userinput></screen> <screen><userinput remap="configure">./configure --prefix=/usr --docdir=/usr/share/doc/automake-&automake-version;</userinput></screen>

View File

@ -73,14 +73,21 @@
<para>Skip down to <quote>Install the <para>Skip down to <quote>Install the
package</quote> if not running the test suite.</para> package</quote> if not running the test suite.</para>
<para>To prepare the tests, ensure that the <systemitem class="username">nobody</systemitem> user can write to the sources tree:</para> <para>To prepare the tests, ensure that the <systemitem class="username">tester</systemitem> user can write to the sources tree:</para>
<screen><userinput remap="test">chown -Rv nobody .</userinput></screen> <screen><userinput remap="test">chown -Rv tester .</userinput></screen>
<para>Now, run the tests as the <systemitem <para>Now, run the tests as the <systemitem
class="username">nobody</systemitem> user:</para> class="username">tester</systemitem> user:</para>
<screen><userinput remap="test">su nobody -s /bin/bash -c "PATH=$PATH HOME=/home make tests"</userinput></screen> <screen><userinput remap="test">su tester -c "PATH=$PATH make tests"</userinput></screen>
<para>The <systemitem class="username">tester</systemitem>
user does not have enough permissions for all the tests to pass. This shows
up in some <quote>diff</quote> output in four test results. Portions of the
run-execscript, run-lastpipe, run-read, and run-test programs
are known to fail in the LFS chroot environment, but pass if the tests
are run in a full system.</para>
<para>Install the package and move the main executable to <para>Install the package and move the main executable to
<filename class='directory'>/bin</filename>:</para> <filename class='directory'>/bin</filename>:</para>

View File

@ -58,9 +58,11 @@
Ask your system administrator to create more.</computeroutput></screen> Ask your system administrator to create more.</computeroutput></screen>
<para>Now remove one test that prevents the tests from running <para>Now remove one test that prevents the tests from running
to completion:</para> to completion, and fix other tests in the gold test suite, which
need to be adjusted for GCC 10:</para>
<screen><userinput remap="pre">sed -i '/@\tincremental_copy/d' gold/testsuite/Makefile.in</userinput></screen> <screen><userinput remap="pre">sed -i '/@\tincremental_copy/d' gold/testsuite/Makefile.in
patch -Np1 -i ../binutils-&binutils-version;-gcc10_gold_test_fix-1.patch</userinput></screen>
<para>The Binutils documentation recommends building Binutils <para>The Binutils documentation recommends building Binutils
in a dedicated build directory:</para> in a dedicated build directory:</para>
@ -157,7 +159,7 @@ cd build</userinput></screen>
<screen><userinput remap="test">make -k check</userinput></screen> <screen><userinput remap="test">make -k check</userinput></screen>
<para>The ver_test_pr16504.sh test is known to fail.</para> <!-- <para>The ver_test_pr16504.sh test is known to fail.</para>-->
<para>Install the package:</para> <para>Install the package:</para>

View File

@ -20,10 +20,12 @@
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="zlib.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="zlib.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="bzip2.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="bzip2.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="xz.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="xz.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="zstd.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="file.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="file.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="readline.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="readline.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="m4.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="m4.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="bc.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="bc.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="flex.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="binutils.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="binutils.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gmp.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gmp.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="mpfr.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="mpfr.xml"/>
@ -40,7 +42,6 @@
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="iana-etc.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="iana-etc.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gettext.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gettext.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="bison.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="bison.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="flex.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="grep.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="grep.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="bash.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="bash.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libtool.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libtool.xml"/>
@ -69,7 +70,6 @@
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="grub.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="grub.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="less.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="less.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gzip.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="gzip.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="zstd.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="iproute2.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="iproute2.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="kbd.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="kbd.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libpipeline.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libpipeline.xml"/>

View File

@ -108,35 +108,34 @@ FORCE_UNSAFE_CONFIGURE=1 ./configure \
<para>Now the test suite is ready to be run. First, run the tests that are <para>Now the test suite is ready to be run. First, run the tests that are
meant to be run as user <systemitem class="username">root</systemitem>:</para> meant to be run as user <systemitem class="username">root</systemitem>:</para>
<screen><userinput remap="test">make NON_ROOT_USERNAME=nobody check-root</userinput></screen> <screen><userinput remap="test">make NON_ROOT_USERNAME=tester check-root</userinput></screen>
<para>We're going to run the remainder of the tests as the <para>We're going to run the remainder of the tests as the
<systemitem class="username">nobody</systemitem> user. Certain tests, <systemitem class="username">tester</systemitem> user. Certain tests,
however, require that the user be a member of more than one group. So that however, require that the user be a member of more than one group. So that
these tests are not skipped we'll add a temporary group and make the these tests are not skipped we'll add a temporary group and make the
user <systemitem class="username">nobody</systemitem> a part of it:</para> user <systemitem class="username">tester</systemitem> a part of it:</para>
<screen><userinput remap="test">echo "dummy:x:1000:nobody" &gt;&gt; /etc/group</userinput></screen> <screen><userinput remap="test">echo "dummy:x:1000:tester" &gt;&gt; /etc/group</userinput></screen>
<para>Fix some of the permissions so that the non-root user can compile and <para>Fix some of the permissions so that the non-root user can compile and
run the tests:</para> run the tests:</para>
<screen><userinput remap="test">chown -Rv nobody . </userinput></screen> <screen><userinput remap="test">chown -Rv tester . </userinput></screen>
<para>Now run the tests:</para> <para>Now run the tests:</para>
<screen><userinput remap="test">su nobody -s /bin/bash \ <screen><userinput remap="test">su tester -c "PATH=$PATH make RUN_EXPENSIVE_TESTS=yes check"</userinput></screen>
-c "PATH=$PATH make RUN_EXPENSIVE_TESTS=yes check"</userinput></screen> <!--
<para>The test program test-getlogin is known to fail in a <para>The test program test-getlogin is known to fail in a
partially built system environment like the chroot environment here, but partially built system environment like the chroot environment here, but
passes if run at the end of this chapter. The test program tty.sh is passes if run at the end of this chapter. The test program tty.sh is
also known to fail.</para> also known to fail.</para>
-->
<para>Remove the temporary group:</para> <para>Remove the temporary group:</para>
<screen><userinput remap="test">sed -i '/dummy/d' /etc/group</userinput></screen> <screen><userinput remap="test">sed -i '/dummy/d' /etc/group</userinput></screen>
<para>Install the package:</para> <para>Install the package:</para>
<screen><userinput remap="install">make install</userinput></screen> <screen><userinput remap="install">make install</userinput></screen>

View File

@ -67,10 +67,8 @@
<para>To test the results, issue:</para> <para>To test the results, issue:</para>
<screen><userinput remap="test">make check</userinput></screen> <screen><userinput remap="test">chown -Rv tester .
su tester -c "PATH=$PATH make check"</userinput></screen>
<para>Two tests are known to fail in the chroot environment:
sv-bug-54171.old-O3 and sv-bug-54171.new-O3.</para>
<para>Install the package:</para> <para>Install the package:</para>

View File

@ -98,8 +98,8 @@ cd build</userinput></screen>
<para>Test the results as a non-privileged user, but do not stop at errors:</para> <para>Test the results as a non-privileged user, but do not stop at errors:</para>
<screen><userinput remap="test">chown -Rv nobody . <screen><userinput remap="test">chown -Rv tester .
su nobody -s /bin/bash -c "PATH=$PATH make -k check"</userinput></screen> su tester -c "PATH=$PATH make -k check"</userinput></screen>
<para>To receive a summary of the test suite results, run:</para> <para>To receive a summary of the test suite results, run:</para>
@ -139,7 +139,7 @@ su nobody -s /bin/bash -c "PATH=$PATH make -k check"</userinput></screen>
rm -rf /usr/lib/gcc/$(gcc -dumpmachine)/&gcc-version;/include-fixed/bits/</userinput></screen> rm -rf /usr/lib/gcc/$(gcc -dumpmachine)/&gcc-version;/include-fixed/bits/</userinput></screen>
<para>The GCC build directory is owned by <systemitem class="username"> <para>The GCC build directory is owned by <systemitem class="username">
nobody</systemitem> now and the ownership of the installed header tester</systemitem> now and the ownership of the installed header
directory (and its content) will be incorrect. Change the ownership to directory (and its content) will be incorrect. Change the ownership to
<systemitem class="username">root</systemitem> user and group:</para> <systemitem class="username">root</systemitem> user and group:</para>

View File

@ -56,7 +56,7 @@
We use an environment variable to accomplish this. To test the We use an environment variable to accomplish this. To test the
results, issue:</para> results, issue:</para>
<screen><userinput remap="test">make PERL5LIB=$PWD/tests/ check</userinput></screen> <screen><userinput remap="test">make check</userinput></screen>
<para>Install the package:</para> <para>Install the package:</para>

View File

@ -42,6 +42,7 @@ chroot "$LFS" /usr/bin/env -i \
remove them now:</para> remove them now:</para>
<screen><userinput>rm -f /usr/lib/lib{bfd,opcodes}.a <screen><userinput>rm -f /usr/lib/lib{bfd,opcodes}.a
rm -f /usr/lib/libctf{,-nobfd}.a
rm -f /usr/lib/libbz2.a rm -f /usr/lib/libbz2.a
rm -f /usr/lib/lib{com_err,e2p,ext2fs,ss}.a rm -f /usr/lib/lib{com_err,e2p,ext2fs,ss}.a
rm -f /usr/lib/libltdl.a rm -f /usr/lib/libltdl.a
@ -61,4 +62,9 @@ rm -f /usr/lib/libz.a</userinput></screen>
url="&blfs-book;/introduction/la-files.html">BLFS section "About Libtool url="&blfs-book;/introduction/la-files.html">BLFS section "About Libtool
Archive (.la) files"</ulink>.</para> Archive (.la) files"</ulink>.</para>
<para>Finally, remove the temporary 'tester' usr account created at the
beginning of this chapter.</para>
<screen><userinput>sed -i '/tester/d' /etc/passwd /etc/group
rm -rf /home/tester</userinput></screen>
</sect1> </sect1>

View File

@ -40,10 +40,6 @@
<sect2 role="installation"> <sect2 role="installation">
<title>Installation of Sed</title> <title>Installation of Sed</title>
<para>First fix an issue in the LFS environment and remove a failing test:</para>
<screen><userinput remap="pre">sed -i 's/testsuite.panic-tests.sh//' Makefile.in</userinput></screen>
<para>Prepare Sed for compilation:</para> <para>Prepare Sed for compilation:</para>
<screen><userinput remap="configure">./configure --prefix=/usr --bindir=/bin</userinput></screen> <screen><userinput remap="configure">./configure --prefix=/usr --bindir=/bin</userinput></screen>
@ -55,7 +51,8 @@ make html</userinput></screen>
<para>To test the results, issue:</para> <para>To test the results, issue:</para>
<screen><userinput remap="test">make check</userinput></screen> <screen><userinput remap="test">chown -Rv tester .
su tester -c "PATH=$PATH make check"</userinput></screen>
<para>Install the package and its documentation:</para> <para>Install the package and its documentation:</para>

View File

@ -40,21 +40,16 @@
</sect2> </sect2>
<sect2 role="installation"> <sect2 role="installation">
<title>FHS compliance notes</title> <title>Installation of Util-linux</title>
<para>The FHS recommends using the <filename <para>The FHS recommends using the <filename
class="directory">/var/lib/hwclock</filename> directory instead of the class="directory">/var/lib/hwclock</filename> directory instead of the
usual <filename class="directory">/etc</filename> directory as the usual <filename class="directory">/etc</filename> directory as the
location for the <filename>adjtime</filename> file. First create a directory location for the <filename>adjtime</filename> file. Create this directory
to enable storage for the <command>hwclock</command> program:</para> with:</para>
<screen><userinput remap="pre">mkdir -pv /var/lib/hwclock</userinput></screen> <screen><userinput remap="pre">mkdir -pv /var/lib/hwclock</userinput></screen>
</sect2>
<sect2 role="installation">
<title>Installation of Util-linux</title>
<para>Prepare Util-linux for compilation:</para> <para>Prepare Util-linux for compilation:</para>
<screen revision="sysv"><userinput remap="configure">./configure ADJTIME_PATH=/var/lib/hwclock/adjtime \ <screen revision="sysv"><userinput remap="configure">./configure ADJTIME_PATH=/var/lib/hwclock/adjtime \
@ -103,8 +98,8 @@
<screen role="nodump"><userinput>bash tests/run.sh --srcdir=$PWD --builddir=$PWD</userinput></screen> <screen role="nodump"><userinput>bash tests/run.sh --srcdir=$PWD --builddir=$PWD</userinput></screen>
</warning> </warning>
<screen><userinput remap="test">chown -Rv nobody . <screen><userinput remap="test">chown -Rv tester .
su nobody -s /bin/bash -c "PATH=$PATH make -k check"</userinput></screen> su tester -c "make -k check"</userinput></screen>
<para>Install the package:</para> <para>Install the package:</para>

View File

@ -67,15 +67,15 @@
<screen><userinput remap="make">make</userinput></screen> <screen><userinput remap="make">make</userinput></screen>
<para>To prepare the tests, ensure that the <para>To prepare the tests, ensure that the
<systemitem class="username">nobody</systemitem> user can write <systemitem class="username">tester</systemitem> user can write
to the sources tree:</para> to the sources tree:</para>
<screen><userinput remap="test">chown -Rv nobody .</userinput></screen> <screen><userinput remap="test">chown -Rv tester .</userinput></screen>
<para>Now run the tests as the <systemitem <para>Now run the tests as the <systemitem
class="username">nobody</systemitem> user:</para> class="username">tester</systemitem> user:</para>
<screen><userinput remap="test">su nobody -s /bin/bash -c "LANG=en_US.UTF-8 make -j1 test" &amp;> vim-test.log</userinput></screen> <screen><userinput remap="test">su tester -c "LANG=en_US.UTF-8 make -j1 test" &amp;> vim-test.log</userinput></screen>
<!--<screen><userinput remap="test">LANG=en_US.UTF-8 make -j1 test &amp;&gt; vim-test.log</userinput></screen>--> <!--<screen><userinput remap="test">LANG=en_US.UTF-8 make -j1 test &amp;&gt; vim-test.log</userinput></screen>-->

View File

@ -54,16 +54,6 @@
kernel compilation. Do not rely on the source tree being clean after kernel compilation. Do not rely on the source tree being clean after
un-tarring.</para> un-tarring.</para>
<!-- The following paragraph and sed should be only necessary on the 5.6
series, but check when 5.7 is out. -->
<para>When using <envar>CONFIG_STACKPROTECTOR_STRONG=y</envar>, and
compiling with GCC 10 and later, the default optimization is too
aggressive, and generates a kernel panic when booting. This can be
fixed with:</para>
<screen><userinput remap="pre">sed -e '/cpu_startup/a asm("");' \
-i arch/x86/{kernel/smpboot.c,xen/smp_pv.c}</userinput></screen>
<!-- Support for compiling a keymap into the kernel is deliberately removed --> <!-- Support for compiling a keymap into the kernel is deliberately removed -->
<para>Configure the kernel via a menu-driven interface. For general <para>Configure the kernel via a menu-driven interface. For general

View File

@ -1,13 +1,13 @@
<!ENTITY version "20200521-cross-chap5"> <!ENTITY version "20200529-cross-chap5">
<!ENTITY short-version "svn"> <!-- Used below in &blfs-book; <!ENTITY short-version "svn"> <!-- Used below in &blfs-book;
Change to x.y for release but not -rc releases --> Change to x.y for release but not -rc releases -->
<!ENTITY generic-version "cross-chap5"> <!-- Use "development" or "x.y[-pre{x}]" --> <!ENTITY generic-version "cross-chap5"> <!-- Use "development" or "x.y[-pre{x}]" -->
<!ENTITY versiond "20200521-cross-cp5-systemd"> <!ENTITY versiond "20200529-cross-cp5-systemd">
<!ENTITY short-versiond "systemd"> <!ENTITY short-versiond "systemd">
<!ENTITY generic-versiond "systemd"> <!ENTITY generic-versiond "systemd">
<!ENTITY releasedate "May 21st, 2020"> <!ENTITY releasedate "May 29th, 2020">
<!ENTITY copyrightdate "1999-2020"><!-- jhalfs needs a literal dash, not &ndash; --> <!ENTITY copyrightdate "1999-2020"><!-- jhalfs needs a literal dash, not &ndash; -->

View File

@ -70,10 +70,10 @@
<!ENTITY binutils-ch6-du "5.1 GB"> <!ENTITY binutils-ch6-du "5.1 GB">
<!ENTITY binutils-ch6-sbu "6.7 SBU"> <!ENTITY binutils-ch6-sbu "6.7 SBU">
<!ENTITY bison-version "3.6.1"> <!ENTITY bison-version "3.6.2">
<!ENTITY bison-size "2,407 KB"> <!ENTITY bison-size "2,411 KB">
<!ENTITY bison-url "&gnu;bison/bison-&bison-version;.tar.xz"> <!ENTITY bison-url "&gnu;bison/bison-&bison-version;.tar.xz">
<!ENTITY bison-md5 "16fa3e60f2c33888c6ef7af64c89e182"> <!ENTITY bison-md5 "fa5f7c67c523f1d8b2155f55e67f7e1c">
<!ENTITY bison-home "&gnu-software;bison/"> <!ENTITY bison-home "&gnu-software;bison/">
<!ENTITY bison-ch5-du "43 MB"> <!ENTITY bison-ch5-du "43 MB">
<!ENTITY bison-ch5-sbu "0.3 SBU"> <!ENTITY bison-ch5-sbu "0.3 SBU">
@ -425,12 +425,12 @@
<!ENTITY linux-major-version "5"> <!ENTITY linux-major-version "5">
<!ENTITY linux-minor-version "6"> <!ENTITY linux-minor-version "6">
<!ENTITY linux-patch-version "13"> <!ENTITY linux-patch-version "15">
<!--<!ENTITY linux-version "&linux-major-version;.&linux-minor-version;">--> <!--<!ENTITY linux-version "&linux-major-version;.&linux-minor-version;">-->
<!ENTITY linux-version "&linux-major-version;.&linux-minor-version;.&linux-patch-version;"> <!ENTITY linux-version "&linux-major-version;.&linux-minor-version;.&linux-patch-version;">
<!ENTITY linux-size "109,177 KB"> <!ENTITY linux-size "109,193 KB">
<!ENTITY linux-url "&kernel;linux/kernel/v&linux-major-version;.x/linux-&linux-version;.tar.xz"> <!ENTITY linux-url "&kernel;linux/kernel/v&linux-major-version;.x/linux-&linux-version;.tar.xz">
<!ENTITY linux-md5 "73fa7a9e7c42a9ab2cc8151d20e8d6b6"> <!ENTITY linux-md5 "41f02b34dbb66ffa6b71bb3e2361e94d">
<!ENTITY linux-home "https://www.kernel.org/"> <!ENTITY linux-home "https://www.kernel.org/">
<!-- measured for 4.8.3 / gcc-6.2.0 on x86_64 : minimum is <!-- measured for 4.8.3 / gcc-6.2.0 on x86_64 : minimum is
allnoconfig extended for a hopefully-bootable build on desktop machine, allnoconfig extended for a hopefully-bootable build on desktop machine,
@ -690,23 +690,23 @@
<!ENTITY udev-lfs-home " "> <!ENTITY udev-lfs-home " ">
<!ENTITY util-linux-minor "2.35"> <!ENTITY util-linux-minor "2.35">
<!ENTITY util-linux-version "2.35.1"> <!-- 2.33.x --> <!ENTITY util-linux-version "2.35.2"> <!-- 2.33.x -->
<!ENTITY util-linux-size "5,018 KB"> <!ENTITY util-linux-size "5,030 KB">
<!ENTITY util-linux-url "&kernel;linux/utils/util-linux/v&util-linux-minor;/util-linux-&util-linux-version;.tar.xz"> <!ENTITY util-linux-url "&kernel;linux/utils/util-linux/v&util-linux-minor;/util-linux-&util-linux-version;.tar.xz">
<!ENTITY util-linux-md5 "7f64882f631225f0295ca05080cee1bf"> <!ENTITY util-linux-md5 "248a4d0810c9193e0e9a4bb3f26b93d8">
<!ENTITY util-linux-home "http://freecode.com/projects/util-linux"> <!ENTITY util-linux-home "http://freecode.com/projects/util-linux">
<!ENTITY util-linux-ch5-du "154 MB"> <!ENTITY util-linux-ch5-du "154 MB">
<!ENTITY util-linux-ch5-sbu "0.9 SBU"> <!ENTITY util-linux-ch5-sbu "0.9 SBU">
<!ENTITY util-linux-ch6-du "289 MB"> <!ENTITY util-linux-ch6-du "289 MB">
<!ENTITY util-linux-ch6-sbu "1.1 SBU"> <!ENTITY util-linux-ch6-sbu "1.1 SBU">
<!ENTITY vim-version "8.2.0716"> <!ENTITY vim-version "8.2.0814">
<!ENTITY vim-majmin "82"> <!ENTITY vim-majmin "82">
<!ENTITY vim-docdir "vim/vim82"> <!ENTITY vim-docdir "vim/vim82">
<!ENTITY vim-size "14,595 KB"> <!ENTITY vim-size "14,595 KB">
<!--<!ENTITY vim-url "https://github.com/vim/vim/archive/v&vim-version;/vim-&vim-version;.tar.gz">--> <!--<!ENTITY vim-url "https://github.com/vim/vim/archive/v&vim-version;/vim-&vim-version;.tar.gz">-->
<!ENTITY vim-url "&anduin-sources;/vim-&vim-version;.tar.gz"> <!ENTITY vim-url "&anduin-sources;/vim-&vim-version;.tar.gz">
<!ENTITY vim-md5 "004b4596f185889fbca5b8d513f294ce"> <!ENTITY vim-md5 "02b8b91bd2a9a97879fc60616f4eb767">
<!ENTITY vim-home "https://www.vim.org"> <!ENTITY vim-home "https://www.vim.org">
<!ENTITY vim-ch6-du "202 MB"> <!ENTITY vim-ch6-du "202 MB">
<!ENTITY vim-ch6-sbu "1.7 SBU"> <!ENTITY vim-ch6-sbu "1.7 SBU">
@ -737,10 +737,10 @@
<!ENTITY zlib-ch6-du "5.1 MB"> <!ENTITY zlib-ch6-du "5.1 MB">
<!ENTITY zlib-ch6-sbu "less than 0.1 SBU"> <!ENTITY zlib-ch6-sbu "less than 0.1 SBU">
<!ENTITY zstd-version "1.4.4"> <!ENTITY zstd-version "1.4.5">
<!ENTITY zstd-size "1,903 KB"> <!ENTITY zstd-size "1,928 KB">
<!ENTITY zstd-url "https://github.com/facebook/zstd/releases/download/v&zstd-version;/zstd-&zstd-version;.tar.gz"> <!ENTITY zstd-url "https://github.com/facebook/zstd/releases/download/v&zstd-version;/zstd-&zstd-version;.tar.gz">
<!ENTITY zstd-md5 "487f7ee1562dee7c1c8adf85e2a63df9"> <!ENTITY zstd-md5 "dd0b53631303b8f972dafa6fd34beb0c">
<!ENTITY zstd-home "https://facebook.github.io/zstd/"> <!ENTITY zstd-home "https://facebook.github.io/zstd/">
<!ENTITY zstd-ch6-du "16 MB"> <!ENTITY zstd-ch6-du "16 MB">
<!ENTITY zstd-ch6-sbu "0.7 SBU"> <!ENTITY zstd-ch6-sbu "0.7 SBU">

View File

@ -6,6 +6,10 @@
<!ENTITY bash-fixes-patch-md5 "c1545da2ad7d78574b52c465ec077ed9"> <!ENTITY bash-fixes-patch-md5 "c1545da2ad7d78574b52c465ec077ed9">
<!ENTITY bash-fixes-patch-size "22 KB"> <!ENTITY bash-fixes-patch-size "22 KB">
<!ENTITY binutils-gold-test-patch "binutils-&binutils-version;-gcc10_gold_test_fix-1.patch">
<!ENTITY binutils-gold-test-patch-md5 "d18aaf9b25830cb8f7a5d44aa3febe28">
<!ENTITY binutils-gold-test-patch-size "5.0 KB">
<!ENTITY bzip2-docs-patch "bzip2-&bzip2-version;-install_docs-1.patch"> <!ENTITY bzip2-docs-patch "bzip2-&bzip2-version;-install_docs-1.patch">
<!ENTITY bzip2-docs-patch-md5 "6a5ac7e89b791aae556de0f745916f7f"> <!ENTITY bzip2-docs-patch-md5 "6a5ac7e89b791aae556de0f745916f7f">
<!ENTITY bzip2-docs-patch-size "1.6 KB"> <!ENTITY bzip2-docs-patch-size "1.6 KB">