diff --git a/chapter08/gettext.xml b/chapter08/gettext.xml
index f26d15536..d8fbc8f20 100644
--- a/chapter08/gettext.xml
+++ b/chapter08/gettext.xml
@@ -43,6 +43,14 @@
   <sect2 role="installation">
     <title>Installation of Gettext</title>
 
+    <para>At first, fix an issue causing the package fail to build with
+    libxml-2.12 or later.  The fix is optional for building LFS, but
+    required if rebuilding this package in BLFS with libxml
+    installed:</para>
+
+<screen><userinput remap="pre">sed -e '/^structured/s/xmlError \*/typeof(xmlCtxtGetLastError(NULL)) /' \
+    -i gettext-tools/src/its.c</userinput></screen>
+
     <para>Prepare Gettext for compilation:</para>
 
 <screen><userinput remap="configure">./configure --prefix=/usr    \
diff --git a/chapter08/systemd.xml b/chapter08/systemd.xml
index 30ac59119..de7ce92be 100644
--- a/chapter08/systemd.xml
+++ b/chapter08/systemd.xml
@@ -45,8 +45,9 @@
     <systemitem class="groupname">sgx</systemitem>, from the default udev
     rules:</para>
 
- <screen><userinput remap="pre">sed -i -e 's/GROUP="render"/GROUP="video"/' \
-       -e 's/GROUP="sgx", //' rules.d/50-udev-default.rules.in</userinput></screen>
+ <screen><userinput remap="pre">sed -e 's/GROUP="render"/GROUP="video"/' \
+    -e 's/GROUP="sgx", //'               \
+    -i rules.d/50-udev-default.rules.in</userinput></screen>
 
     <para>Prepare systemd for compilation:</para>