Index: bootscripts/ChangeLog
===================================================================
--- bootscripts/ChangeLog	(revision 5e06d042854cfc73e879a18733bc33039dd3e8e4)
+++ bootscripts/ChangeLog	(revision f695e024896dfdd51dcb61ec9dfaa104a50296ee)
@@ -1,2 +1,5 @@
+2021-02-01 Bruce Dubbs <bdubbs@linuxfromscratch.org>
+   * Tweak mountfs to properly exit when an error is found.
+
 2021-01-13 Xi Ruoyao <xry111@mengyan1223.wang>
    * Use /run instead of deprecated /var/run
Index: bootscripts/lfs/init.d/mountfs
===================================================================
--- bootscripts/lfs/init.d/mountfs	(revision 5e06d042854cfc73e879a18733bc33039dd3e8e4)
+++ bootscripts/lfs/init.d/mountfs	(revision f695e024896dfdd51dcb61ec9dfaa104a50296ee)
@@ -47,5 +47,6 @@
 
       log_info_msg "Mounting remaining file systems..."
-      mount --all --test-opts no_netdev >/dev/null
+      failed=0
+      mount --all --test-opts no_netdev >/dev/null || failed=1
       evaluate_retval
       exit $failed
Index: chapter01/changelog.xml
===================================================================
--- chapter01/changelog.xml	(revision 5e06d042854cfc73e879a18733bc33039dd3e8e4)
+++ chapter01/changelog.xml	(revision f695e024896dfdd51dcb61ec9dfaa104a50296ee)
@@ -47,4 +47,37 @@
     <listitem>
       <itemizedlist>
+      <para>2021-02-02</para>
+        <listitem>
+          <para>[pierre] - Move tcl, expect, and dejagnu just before binutils
+          in chapter 8: this allows to build them against chapter 8
+          glibc.</para>
+        </listitem>
+        <listitem>
+          <para>[pierre] - To allow building with newer version of glibc
+          than the host distribution, build a "file" executable for the
+          host before cross-compiling it.</para>
+        </listitem>
+        <listitem>
+          <para>[pierre] - Replace the relinked libctf (which may incorrectly
+          link against libz from the host distribution) with the one that
+          was linked during "make" in binutils-pass2.</para>
+        </listitem>
+        <listitem>
+          <para>[bdubbs] - Update to bc-3.2.6. Fixes
+          <ulink url="&lfs-ticket-root;4800">#4800</ulink>.</para>
+        </listitem>
+        <listitem>
+          <para>[bdubbs] - Update to glibc-2.33. Fixes
+          <ulink url="&lfs-ticket-root;4799">#4799</ulink>.</para>
+        </listitem>
+        <listitem>
+          <para>[bdubbs] - Minor change to mountfs boot script. Fixes
+          <ulink url="&lfs-ticket-root;4798">#4798</ulink>.</para>
+        </listitem>
+      </itemizedlist>
+    </listitem>
+
+    <listitem>
+      <itemizedlist>
       <para>2021-02-01</para>
         <listitem>
Index: chapter01/whatsnew.xml
===================================================================
--- chapter01/whatsnew.xml	(revision 5e06d042854cfc73e879a18733bc33039dd3e8e4)
+++ chapter01/whatsnew.xml	(revision f695e024896dfdd51dcb61ec9dfaa104a50296ee)
@@ -106,7 +106,7 @@
       <para>Gettext-&gettext-version;</para>
     </listitem>-->
-    <!--<listitem>
+    <listitem>
       <para>Glibc-&glibc-version;</para>
-    </listitem>-->
+    </listitem>
     <listitem>
       <para>GMP-&gmp-version;</para>
Index: chapter06/binutils-pass2.xml
===================================================================
--- chapter06/binutils-pass2.xml	(revision 5e06d042854cfc73e879a18733bc33039dd3e8e4)
+++ chapter06/binutils-pass2.xml	(revision f695e024896dfdd51dcb61ec9dfaa104a50296ee)
@@ -102,7 +102,19 @@
 <screen><userinput remap="make">make</userinput></screen>
 
-    <para>Install the package:</para>
+    <para>Install the package, and
+    workaround an issue causing
+    <filename class="libraryfile">libctf.so</filename>
+    to link against zlib from the host distribution:</para>
 
-<screen><userinput remap="install">make DESTDIR=$LFS install</userinput></screen>
+<screen><userinput remap="install">make DESTDIR=$LFS install
+install -vm755 libctf/.libs/libctf.so.0.0.0 $LFS/usr/lib</userinput></screen>
+
+    <para>
+      Workaround an issue causing
+      <filename class="libraryfile">libctf.so</filename>
+      to link against zlib from the host distribution:
+    </para>
+
+<screen><userinput remap="install">install -vm755 libctf/.libs/libctf.so.0.0.0 $LFS/usr/lib</userinput></screen>
 
   </sect2>
Index: chapter06/chapter06.xml
===================================================================
--- chapter06/chapter06.xml	(revision 5e06d042854cfc73e879a18733bc33039dd3e8e4)
+++ chapter06/chapter06.xml	(revision f695e024896dfdd51dcb61ec9dfaa104a50296ee)
@@ -23,5 +23,5 @@
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="grep.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="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="make.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="patch.xml"/>
Index: chapter06/file.xml
===================================================================
--- chapter06/file.xml	(revision 5e06d042854cfc73e879a18733bc33039dd3e8e4)
+++ chapter06/file.xml	(revision f695e024896dfdd51dcb61ec9dfaa104a50296ee)
@@ -44,7 +44,19 @@
     <title>Installation of File</title>
 
+    <para>
+       The <command>file</command> command on the build host needs 
+       to be same version as the one we are building in order to 
+       create the signature file. Run the following commands to build it:
+    </para>
+
+<screen><userinput remap="pre">mkdir build
+pushd build
+  ../configure
+  make
+popd</userinput></screen>
+
     <para>Prepare File for compilation:</para>
 
-<screen><userinput remap="configure">./configure --prefix=/usr --host=$LFS_TGT</userinput></screen>
+<screen><userinput remap="configure">./configure --prefix=/usr --host=$LFS_TGT --build=$(./config.guess)</userinput></screen>
 
 <!-- devs: if using - -build here, the build system wants to compile
@@ -55,5 +67,5 @@
     <para>Compile the package:</para>
 
-<screen><userinput remap="make">make</userinput></screen>
+<screen><userinput remap="make">make FILE_COMPILE=$(pwd)/build/src/file</userinput></screen>
 
     <para>Install the package:</para>
Index: chapter06/ncurses.xml
===================================================================
--- chapter06/ncurses.xml	(revision 5e06d042854cfc73e879a18733bc33039dd3e8e4)
+++ chapter06/ncurses.xml	(revision f695e024896dfdd51dcb61ec9dfaa104a50296ee)
@@ -178,4 +178,5 @@
 ./configure --prefix=/usr           \
             --host=$LFS_TGT32       \
+            --build=$(./config.guess)    \
             --libdir=&usr-lib-m32;     \
             --mandir=/usr/share/man \
@@ -217,4 +218,5 @@
 ./configure --prefix=/usr           \
             --host=$LFS_TGTX32      \
+            --build=$(./config.guess)    \
             --libdir=&usr-lib-mx32;    \
             --mandir=/usr/share/man \
Index: apter06/zlib.xml
===================================================================
--- chapter06/zlib.xml	(revision 5e06d042854cfc73e879a18733bc33039dd3e8e4)
+++ 	(revision )
@@ -1,122 +1,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
-  "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
-  <!ENTITY % general-entities SYSTEM "../general.ent">
-  %general-entities;
-]>
-
-<sect1 id="ch-tools-zlib" role="wrap">
-  <?dbhtml filename="zlib.html"?>
-
-  <sect1info condition="script">
-    <productname>zlib</productname>
-    <productnumber>&zlib-version;</productnumber>
-    <address>&zlib-url;</address>
-  </sect1info>
-
-  <title>Zlib-&zlib-version;</title>
-
-  <indexterm zone="ch-tools-zlib">
-    <primary sortas="a-Zlib">Zlib</primary>
-  </indexterm>
-
-  <sect2 role="package">
-    <title/>
-
-    <para>The Zlib package contains compression and decompression routines used by
-    some programs.</para>
-
-    <segmentedlist>
-      <segtitle>&buildtime;</segtitle>
-      <segtitle>&diskspace;</segtitle>
-
-      <seglistitem>
-        <seg>&zlib-fin-sbu;</seg>
-        <seg>&zlib-fin-du;</seg>
-      </seglistitem>
-    </segmentedlist>
-
-  </sect2>
-
-  <sect2 role="installation">
-    <title>Installation of Zlib</title>
-
-    <para>Prepare Zlib for compilation:</para>
-
-<screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
-
-    <para>Compile the package:</para>
-
-<screen><userinput remap="make">make</userinput></screen>
-
-    <para>Install the package:</para>
-
-<screen><userinput remap="install">make DESTDIR=$LFS install
-mv -v $LFS/usr/lib/libz.so.* $LFS/lib
-ln -sfv ../../lib/$(readlink $LFS/usr/lib/libz.so) $LFS/usr/lib/libz.so</userinput></screen>
-
-  </sect2>
-
-  <!-- - - - - - - - - - -->
-  <!-- Multilib - 32bit  -->
-  <!-- - - - - - - - - - -->
-
-  <sect2 arch="ml_32,ml_all" role="installation">
-    <title>Installation of Zlib - 32bit</title>
-
-    <para>Clean previous build:</para>
-
-<screen><userinput remap="pre">make distclean</userinput></screen>
-
-    <para>Prepare Zlib for compilation:</para>
-
-<screen><userinput remap="configure">CC="gcc -m32" \
-./configure --prefix=/usr \
-    --libdir=&usr-lib-m32;</userinput></screen>
-
-    <para>Compile the package:</para>
-
-<screen><userinput remap="make">make</userinput></screen>
-
-    <para>Install the package:</para>
-
-<screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
-cp -Rv DESTDIR&usr-lib-m32;/* $LFS&usr-lib-m32;
-rm -rf DESTDIR</userinput></screen>
-
-  </sect2><!-- m32 -->
-
-  <!-- - - - - - - - - - -->
-  <!-- Multilib - x32bit -->
-  <!-- - - - - - - - - - -->
-
-  <sect2 arch="ml_x32,ml_all" role="installation">
-    <title>Installation of Zlib - x32bit</title>
-
-<screen><userinput remap="pre">make distclean</userinput></screen>
-
-    <para>Prepare Zlib for compilation:</para>
-
-<screen><userinput remap="configure">CC="gcc -mx32" \
-./configure --prefix=/usr    \
-    --libdir=&usr-lib-mx32;</userinput></screen>
-
-    <para>Compile the package:</para>
-
-<screen><userinput remap="make">make</userinput></screen>
-
-    <para>Install the package:</para>
-
-<screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
-cp -Rv DESTDIR&usr-lib-mx32;/* $LFS&usr-lib-mx32;
-rm -rf DESTDIR</userinput></screen>
-
-  </sect2><!-- mx32 -->
-
-  <sect2 role="content">
-     <title/>
-     <para>Details on this package are located in <xref linkend="contents-zlib" role="."/></para>
-
-  </sect2>
-
-</sect1>
Index: chapter08/bc.xml
===================================================================
--- chapter08/bc.xml	(revision 5e06d042854cfc73e879a18733bc33039dd3e8e4)
+++ chapter08/bc.xml	(revision f695e024896dfdd51dcb61ec9dfaa104a50296ee)
@@ -41,8 +41,4 @@
   <sect2 role="installation">
     <title>Installation of Bc</title>
-
-    <para>First, fix an error in the configure script::</para>
-
-<screen><userinput remap="pre">sed -i '612d' configure.sh</userinput></screen>
 
     <para>Prepare Bc for compilation:</para>
Index: chapter08/chapter08.xml
===================================================================
--- chapter08/chapter08.xml	(revision 5e06d042854cfc73e879a18733bc33039dd3e8e4)
+++ chapter08/chapter08.xml	(revision f695e024896dfdd51dcb61ec9dfaa104a50296ee)
@@ -15,9 +15,4 @@
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="pkgmgt.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="man-pages.xml"/>
-
-  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="tcl.xml"/>
-  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="expect.xml"/>
-  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="dejagnu.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="glibc.xml"/>
@@ -31,4 +26,9 @@
   <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="tcl.xml"/>
+  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="expect.xml"/>
+  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="dejagnu.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"/>
Index: chapter08/gcc.xml
===================================================================
--- chapter08/gcc.xml	(revision 5e06d042854cfc73e879a18733bc33039dd3e8e4)
+++ chapter08/gcc.xml	(revision f695e024896dfdd51dcb61ec9dfaa104a50296ee)
@@ -144,5 +144,5 @@
 
     <para>Additionally the following tests related to the following files
-    are known to fail with glibc-2.32: asan_test.C, co-ret-17-void-ret-coro.C, 
+    are known to fail with glibc-2.33: asan_test.C, co-ret-17-void-ret-coro.C, 
     pr95519-05-gro.C, pr80166.c.</para>
 
@@ -193,6 +193,5 @@
     Link Time Optimization (LTO):</para> 
 
-<screen><userinput remap="install">install -v -dm755 /usr/lib/bfd-plugins
-ln -sfv ../../libexec/gcc/$(gcc -dumpmachine)/&gcc-version;/liblto_plugin.so \
+<screen><userinput remap="install">ln -sfv ../../libexec/gcc/$(gcc -dumpmachine)/&gcc-version;/liblto_plugin.so \
         /usr/lib/bfd-plugins/</userinput></screen>
 
Index: chapter08/glibc.xml
===================================================================
--- chapter08/glibc.xml	(revision 5e06d042854cfc73e879a18733bc33039dd3e8e4)
+++ chapter08/glibc.xml	(revision f695e024896dfdd51dcb61ec9dfaa104a50296ee)
@@ -134,5 +134,5 @@
 
 <!-- Use remap="make" here to work around a jhalfs issue. -->
-<screen><userinput remap="make">case $(uname -m) in
+<!--<screen><userinput remap="make">case $(uname -m) in
   i?86)   ln -sfnv $PWD/elf/ld-linux.so.2        /lib ;;
   x86_64) ln -sfnv $PWD/elf/ld-linux-x86-64.so.2 /lib ;;
@@ -142,5 +142,5 @@
     stage of building in the chroot environment.  It will be overwritten
     in the install phase below.</para></note>
-
+-->
 <screen><userinput remap="test">make check</userinput></screen>
 
@@ -160,16 +160,10 @@
         is known to fail in the LFS chroot environment.</para>
       </listitem>
-<!--
+
       <listitem>
-        <para><emphasis>inet/tst-idna_name_classify</emphasis> 
-        is known to fail in the LFS chroot environment.</para>
-      </listitem>
-
-      <listitem>
-        <para><emphasis>posix/tst-getaddrinfo4</emphasis> and
-        <emphasis>posix/tst-getaddrinfo5</emphasis>
+        <para><emphasis>elf/tst-cpu-features-cpuinfo</emphasis>
         may fail on some architectures.</para>
       </listitem>
--->
+
       <listitem>
         <para>The <emphasis>nss/tst-nss-files-hosts-multi</emphasis>
Index: chapter08/tcl.xml
===================================================================
--- chapter08/tcl.xml	(revision 5e06d042854cfc73e879a18733bc33039dd3e8e4)
+++ chapter08/tcl.xml	(revision f695e024896dfdd51dcb61ec9dfaa104a50296ee)
@@ -46,9 +46,8 @@
 
     <para>This package and the next two (Expect and DejaGNU) are
-    installed to support running the test suites for GCC and binutils and other
+    installed to support running the test suites for binutils and GCC and other
     packages.  Installing three packages for testing purposes may seem
     excessive, but it is very reassuring, if not essential, to know that the
-    most important tools are working properly. These packages are required
-    to run the test suites in this chapter.</para>
+    most important tools are working properly.</para>
 
 <!--    <para>Note that the Tcl package used here is a minimal version needed
Index: general.ent
===================================================================
--- general.ent	(revision 5e06d042854cfc73e879a18733bc33039dd3e8e4)
+++ general.ent	(revision f695e024896dfdd51dcb61ec9dfaa104a50296ee)
@@ -1,12 +1,12 @@
-<!ENTITY version         "SVN-20210201">
+<!ENTITY version         "SVN-20210202">
 <!ENTITY short-version   "svn">  <!-- Used below in &blfs-book; 
                                       Change to x.y for release but not -rc releases -->
 <!ENTITY generic-version "development"> <!-- Use "development"  or "x.y[-pre{x}]" -->
 
-<!ENTITY versiond        "20210201-systemd">
+<!ENTITY versiond        "20210202-systemd">
 <!ENTITY short-versiond  "systemd">
 <!ENTITY generic-versiond "systemd"> 
 
-<!ENTITY releasedate     "February 1st, 2021">
+<!ENTITY releasedate     "February 2nd, 2021">
 
 <!ENTITY copyrightdate   "1999-2021"><!-- jhalfs needs a literal dash, not &ndash; -->
Index: packages.ent
===================================================================
--- packages.ent	(revision 5e06d042854cfc73e879a18733bc33039dd3e8e4)
+++ packages.ent	(revision f695e024896dfdd51dcb61ec9dfaa104a50296ee)
@@ -58,8 +58,8 @@
 <!ENTITY bash-fin-sbu "2.4 SBU">
 
-<!ENTITY bc-version "3.2.5">
-<!ENTITY bc-size "229 KB">
+<!ENTITY bc-version "3.2.6">
+<!ENTITY bc-size "230 KB">
 <!ENTITY bc-url "https://github.com/gavinhoward/bc/releases/download/&bc-version;/bc-&bc-version;.tar.xz">
-<!ENTITY bc-md5 "44cd2eb1ad793b6d95ea5fc7b9293cd4">
+<!ENTITY bc-md5 "f2c3da63d24c8c541413866b13ec1e3b">
 <!ENTITY bc-home "https://git.yzena.com/gavin/bc">
 <!ENTITY bc-fin-du "6.5 MB">
@@ -257,8 +257,8 @@
 <!ENTITY gettext-fin-sbu "3.2 SBU">
 
-<!ENTITY glibc-version "2.32">
-<!ENTITY glibc-size "16,353 KB">
+<!ENTITY glibc-version "2.33">
+<!ENTITY glibc-size "16,663 KB">
 <!ENTITY glibc-url "&gnu;glibc/glibc-&glibc-version;.tar.xz">
-<!ENTITY glibc-md5 "720c7992861c57cf97d66a2f36d8d1fa">
+<!ENTITY glibc-md5 "390bbd889c7e8e8a7041564cb6b27cca">
 <!ENTITY glibc-home "&gnu-software;libc/">
 <!ENTITY glibc-tmp-du "762 MB">
@@ -384,5 +384,5 @@
 <!ENTITY less-fin-sbu "less than 0.1 SBU">
 
-<!ENTITY lfs-bootscripts-version "20210113">      <!-- Scripts depend on this format -->
+<!ENTITY lfs-bootscripts-version "20210201">      <!-- Scripts depend on this format -->
 <!ENTITY lfs-bootscripts-size "BOOTSCRIPTS-SIZE KB">        
 <!ENTITY lfs-bootscripts-url "&downloads-root;lfs-bootscripts-&lfs-bootscripts-version;.tar.xz">
