浏览代码

Changed patches to use entities

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@5402 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Jim Gifford 20 年之前
父节点
当前提交
3e36a78621
共有 81 个文件被更改,包括 215 次插入66 次删除
  1. 12 10
      chapter01/changelog.xml
  2. 22 27
      chapter03/patches.xml
  3. 3 1
      chapter05/bash.xml
  4. 2 0
      chapter05/binutils-pass1.xml
  5. 2 0
      chapter05/binutils-pass2.xml
  6. 2 0
      chapter05/bison.xml
  7. 2 0
      chapter05/bzip2.xml
  8. 2 0
      chapter05/coreutils.xml
  9. 2 0
      chapter05/dejagnu.xml
  10. 2 0
      chapter05/diffutils.xml
  11. 3 1
      chapter05/expect.xml
  12. 2 0
      chapter05/findutils.xml
  13. 3 1
      chapter05/flex.xml
  14. 2 0
      chapter05/gawk.xml
  15. 2 0
      chapter05/gcc-pass1.xml
  16. 4 2
      chapter05/gcc-pass2.xml
  17. 2 0
      chapter05/gettext.xml
  18. 3 1
      chapter05/glibc.xml
  19. 2 0
      chapter05/grep.xml
  20. 2 0
      chapter05/gzip.xml
  21. 2 0
      chapter05/linux-libc-headers.xml
  22. 2 0
      chapter05/m4.xml
  23. 2 0
      chapter05/make.xml
  24. 2 0
      chapter05/ncurses.xml
  25. 2 0
      chapter05/patch.xml
  26. 3 1
      chapter05/perl.xml
  27. 2 0
      chapter05/sed.xml
  28. 2 0
      chapter05/tar.xml
  29. 2 0
      chapter05/tcl.xml
  30. 2 0
      chapter05/texinfo.xml
  31. 2 0
      chapter05/util-linux.xml
  32. 2 0
      chapter06/autoconf.xml
  33. 2 0
      chapter06/automake.xml
  34. 4 2
      chapter06/bash.xml
  35. 2 0
      chapter06/binutils.xml
  36. 2 0
      chapter06/bison.xml
  37. 2 0
      chapter06/bzip2.xml
  38. 4 3
      chapter06/coreutils.xml
  39. 2 0
      chapter06/diffutils.xml
  40. 2 0
      chapter06/e2fsprogs.xml
  41. 2 0
      chapter06/file.xml
  42. 2 0
      chapter06/findutils.xml
  43. 3 1
      chapter06/flex.xml
  44. 2 0
      chapter06/gawk.xml
  45. 4 2
      chapter06/gcc.xml
  46. 2 0
      chapter06/gettext.xml
  47. 3 1
      chapter06/glibc.xml
  48. 2 0
      chapter06/grep.xml
  49. 2 0
      chapter06/groff.xml
  50. 2 0
      chapter06/grub.xml
  51. 3 1
      chapter06/gzip.xml
  52. 2 0
      chapter06/hotplug.xml
  53. 2 0
      chapter06/iana-etc.xml
  54. 3 6
      chapter06/inetutils.xml
  55. 2 0
      chapter06/iproute2.xml
  56. 2 0
      chapter06/kbd.xml
  57. 2 0
      chapter06/less.xml
  58. 2 0
      chapter06/libtool.xml
  59. 2 0
      chapter06/linux-libc-headers.xml
  60. 2 0
      chapter06/m4.xml
  61. 2 0
      chapter06/make.xml
  62. 2 0
      chapter06/man-pages.xml
  63. 2 0
      chapter06/man.xml
  64. 3 1
      chapter06/mktemp.xml
  65. 2 0
      chapter06/module-init-tools.xml
  66. 2 0
      chapter06/ncurses.xml
  67. 2 0
      chapter06/patch.xml
  68. 2 0
      chapter06/perl.xml
  69. 2 0
      chapter06/procps.xml
  70. 2 0
      chapter06/psmisc.xml
  71. 3 1
      chapter06/readline.xml
  72. 2 0
      chapter06/sed.xml
  73. 2 0
      chapter06/shadow.xml
  74. 3 1
      chapter06/sysklogd.xml
  75. 2 0
      chapter06/sysvinit.xml
  76. 3 1
      chapter06/tar.xml
  77. 2 0
      chapter06/texinfo.xml
  78. 2 0
      chapter06/udev.xml
  79. 3 1
      chapter06/util-linux.xml
  80. 3 1
      chapter06/vim.xml
  81. 2 0
      chapter06/zlib.xml

+ 12 - 10
chapter01/changelog.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-scatter-changelog">
 <title>Changelog</title>
@@ -59,16 +61,16 @@ First a summary, then a detailed log.</para>
 
 <listitem><para>Added:</para>
 <itemizedlist>
-<listitem><para>bash-3.0-fixes-3.patch</para></listitem>
-<listitem><para>bash-3.0-avoid_WCONTINUED-1.patch</para></listitem>
-<listitem><para>glibc-2.3.5-fix_test-1.patch</para></listitem>
-<listitem><para>gzip-1.3.5-security_fixes-1.patch</para></listitem>
-<listitem><para>Hotplug 2004_09_23</para></listitem>
-<listitem><para>shadow-4.0.7-fix_lastlog-1.patch</para></listitem>
-<listitem><para>sysklogd-1.4.1-fixes-1.patch</para></listitem>
-<listitem><para>tar-1.15.1-sparse_fix-1.patch</para></listitem>
-<listitem><para>util-linux-2.12p-cramfs-1.patch</para></listitem>
-<listitem><para>vim-6.0-security_fix-1.patch</para></listitem>
+<listitem><para>&bash-fixes-patch;</para></listitem>
+<listitem><para>&bash-avoid_WCONTINUED-patch;</para></listitem>
+<listitem><para>&glibc-testfix-patch;</para></listitem>
+<listitem><para>&gzip-security_fix-patch;</para></listitem>
+<listitem><para>Hotplug &hotplug-version;</para></listitem>
+<listitem><para>&gzip-security_fix-patch;</para></listitem>
+<listitem><para>&sysklogd-fixes-patch;</para></listitem>
+<listitem><para>&tar-sparse_fix-patch;</para></listitem>
+<listitem><para>&util-linux-cramfs-patch;</para></listitem>
+<listitem><para>&vim-security_fix-patch;</para></listitem>
 </itemizedlist>
 </listitem>
  

+ 22 - 27
chapter03/patches.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="materials-patches">
 <title>Needed Patches</title>
@@ -18,144 +20,137 @@ needed to build an LFS system:</para>
 <varlistentry>
 <term>Bash Various Fixes - 23 KB:</term>
 <listitem>
-<para><ulink url="&patches-root;bash-&bash-version;-fixes-3.patch"/></para>
+<para><ulink url="&patches-root;&bash-fixes-patch;"/></para>
 </listitem>
 </varlistentry>
 
 <varlistentry>
 <term>Bash Avoid Wcontinued Patch - 1 KB:</term>
 <listitem>
-<para><ulink url="&patches-root;bash-&bash-version;-avoid_WCONTINUED-1.patch"/></para>
+<para><ulink url="&patches-root;&bash-avoid_WCONTINUED-patch;"/></para>
 </listitem>
 </varlistentry>
 
 <varlistentry>
 <term>Coreutils Suppress Uptime, Kill, Su Patch - 16 KB:</term>
 <listitem>
-<para><ulink url="&patches-root;coreutils-&coreutils-version;-suppress_uptime_kill_su-1.patch"/></para>
+<para><ulink url="&patches-root;&coreutils-suppress-patch;"/></para>
 </listitem>
 </varlistentry>
 
 <varlistentry>
 <term>Coreutils Uname Patch - 1 KB:</term>
 <listitem>
-<para><ulink url="&patches-root;coreutils-&coreutils-version;-uname-2.patch"/></para>
+<para><ulink url="&patches-root;&coreutils-uname-patch;"/></para>
 </listitem>
 </varlistentry>
 
 <varlistentry>
 <term>Expect Spawn Patch - 6 KB:</term>
 <listitem>
-<para><ulink url="&patches-root;expect-&expect-version;-spawn-1.patch"/></para>
+<para><ulink url="&patches-root;&expect-spawn-patch;"/></para>
 </listitem>
 </varlistentry>
 
 <varlistentry>
 <term>Flex Brokenness Patch - 8 KB:</term>
 <listitem>
-<para><ulink url="&patches-root;flex-&flex-version;-debian_fixes-2.patch"/></para>
+<para><ulink url="&patches-root;&flex-fixes-patch;"/></para>
 </listitem>
 </varlistentry>
 
 <varlistentry>
 <term> GCC Linkonce Patch - 12 KB:</term>
 <listitem>
-<para><ulink url="&patches-root;gcc-&gcc-version;-linkonce-1.patch"/></para>
+<para><ulink url="&patches-root;&gcc-linkonce-patch;"/></para>
 </listitem>
 </varlistentry>
 
 <varlistentry>
 <term>GCC No-Fixincludes Patch - 1 KB:</term>
 <listitem>
-<para><ulink url="&patches-root;gcc-&gcc-version;-no_fixincludes-1.patch"/></para>
+<para><ulink url="&patches-root;&gcc-no_fixincludes-patch;"/></para>
 </listitem>
 </varlistentry>
 
 <varlistentry>
 <term>GCC Specs Patch - 11 KB:</term>
 <listitem>
-<para><ulink url="&patches-root;gcc-&gcc-version;-specs-2.patch"/></para>
+<para><ulink url="&patches-root;&gcc-specs-patch;"/></para>
 </listitem>
 </varlistentry>
 
 <varlistentry>
 <term>Glibc Fix Testsuite Patch - 1 KB:</term>
 <listitem>
-<para><ulink url="&patches-root;glibc-&glibc-version;-fix_test-1.patch"/></para>
+<para><ulink url="&patches-root;&glibc-testfix-patch;"/></para>
 </listitem>
 </varlistentry>
 
 <varlistentry>
 <term>Gzip Security Patch - 2KB:</term><listitem>
-<para><ulink url="&patches-root;gzip-&gzip-version;-security_fixes-1.patch"/></para>
-</listitem>
-</varlistentry>
-
-<varlistentry>
-<term>Inetutils Kernel Headers Patch - 1 KB:</term>
-<listitem>
-<para><ulink url="&patches-root;inetutils-&inetutils-version;-kernel_headers-1.patch"/></para>
+<para><ulink url="&patches-root;&gzip-security_fix-patch;"/></para>
 </listitem>
 </varlistentry>
 
 <varlistentry>
 <term>Inetutils No-Server-Man-Pages Patch - 4 KB:</term>
 <listitem>
-<para><ulink url="&patches-root;inetutils-&inetutils-version;-no_server_man_pages-1.patch"/></para>
+<para><ulink url="&patches-root;&inetutils-man_pages-patch;"/></para>
 </listitem>
 </varlistentry>
 
 <varlistentry>
 <term>Mktemp Tempfile Patch - 3 KB:</term>
 <listitem>
-<para><ulink url="&patches-root;mktemp-&mktemp-version;-add_tempfile-1.patch"/></para>
+<para><ulink url="&patches-root;&mktemp-tempfile-patch;"/></para>
 </listitem>
 </varlistentry>
 
 <varlistentry>
 <term>Perl Libc Patch - 1 KB:</term>
 <listitem>
-<para><ulink url="&patches-root;perl-&perl-version;-libc-1.patch"/></para>
+<para><ulink url="&patches-root;&perl-libc-patch;"/></para>
 </listitem>
 </varlistentry>
 
 <varlistentry>
 <term>Readline Fixes Patch - 1 KB:</term>
 <listitem>
-<para><ulink url="&patches-root;readline-&readline-version;-fixes-1.patch"/></para>
+<para><ulink url="&patches-root;&readline-fixes-patch;"/></para>
 </listitem>
 </varlistentry>
 
 <varlistentry>
 <term>Shadow Lastlog Fix Patch - 1 KB:</term>
 <listitem>
-<para><ulink url="&patches-root;shadow-&shadow-version;-fix_lastlog-1.patch"/></para>
+<para><ulink url="&patches-root;&shadow-lastlog-patch;"/></para>
 </listitem>
 </varlistentry>
 
 <varlistentry>
 <term>Sysklogd Fixes Patch - 27 KB:</term>
 <listitem>
-<para><ulink url="&patches-root;sysklogd-&sysklogd-version;-fixes-1.patch"/></para>
+<para><ulink url="&patches-root;&sysklogd-fixes-patch;"/></para>
 </listitem>
 </varlistentry>
 
 <varlistentry>
 <term>Tar Sparse Fix Patch - 1 KB:</term>
 <listitem>
-<para><ulink url="&patches-root;tar-&tar-version;-sparse_fix-1.patch"/></para>
+<para><ulink url="&patches-root;&tar-sparse_fix-patch;"/></para>
 </listitem>
 </varlistentry>
 
 <varlistentry>
 <term>Util-linux Cramfs Patch - 2kb:</term> <listitem>
-<para><ulink url="&patches-root;util-linux-&util-linux-version;-cramfs-1.patch"/></para>
+<para><ulink url="&patches-root;&util-linux-cramfs-patch;"/></para>
 </listitem>
 </varlistentry>
 
 <varlistentry>
 <term>Vim Security Patch - 8KB:</term><listitem>
-<para><ulink url="&patches-root;vim-&vim-version;-security_fix-1.patch"/></para>
+<para><ulink url="&patches-root;&vim-security_fix-patch;"/></para>
 </listitem>
 </varlistentry>
 

+ 3 - 1
chapter05/bash.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-tools-bash" role="wrap">
 <title>Bash-&bash-version;</title>
@@ -31,7 +33,7 @@
 <para>Bash has a problem when compiled against newer versions of Glibc, causing
 it to hang inappropriately.  This patch fixes the problem:</para>
 
-<screen><userinput>patch -Np1 -i ../bash-&bash-version;-avoid_WCONTINUED-1.patch</userinput></screen>
+<screen><userinput>patch -Np1 -i ../&bash-avoid_WCONTINUED-patch;</userinput></screen>
 
 <para>Prepare Bash for compilation:</para>
 

+ 2 - 0
chapter05/binutils-pass1.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-tools-binutils-pass1" role="wrap">
 <title>Binutils-&binutils-version; - Pass 1</title>

+ 2 - 0
chapter05/binutils-pass2.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-tools-binutils-pass2" role="wrap">
 <title>Binutils-&binutils-version; - Pass 2</title>

+ 2 - 0
chapter05/bison.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-tools-bison" xreflabel="Bison" role="wrap">
 <title>Bison-&bison-version;</title>

+ 2 - 0
chapter05/bzip2.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-tools-bzip2" role="wrap">
 <title>Bzip2-&bzip2-version;</title>

+ 2 - 0
chapter05/coreutils.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-tools-coreutils" role="wrap">
 <title>Coreutils-&coreutils-version;</title>

+ 2 - 0
chapter05/dejagnu.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-tools-dejagnu" role="wrap">
 <title>DejaGNU-&dejagnu-version;</title>

+ 2 - 0
chapter05/diffutils.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-tools-diffutils" role="wrap">
 <title>Diffutils-&diffutils-version;</title>

+ 3 - 1
chapter05/expect.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-tools-expect" role="wrap">
 <title>Expect-&expect-version;</title>
@@ -32,7 +34,7 @@ GCC, Glibc, Grep, Make, Sed, and Tcl</seg></seglistitem>
 <para>First, fix a bug that can result in false failures during the GCC test
 suite run:</para>
 
-<screen><userinput>patch -Np1 -i ../expect-&expect-version;-spawn-1.patch</userinput></screen>
+<screen><userinput>patch -Np1 -i ../&expect-spawn-patch;</userinput></screen>
 
 <para>Now prepare Expect for compilation:</para>
 

+ 2 - 0
chapter05/findutils.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-tools-findutils" role="wrap">
 <title>Findutils-&findutils-version;</title>

+ 3 - 1
chapter05/flex.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-tools-flex" role="wrap">
 <title>Flex-&flex-version;</title>
@@ -30,7 +32,7 @@
 <para>Flex contains several known bugs. These can be fixed with the
 following patch:</para>
 
-<screen><userinput>patch -Np1 -i ../flex-&flex-version;-debian_fixes-2.patch</userinput></screen>
+<screen><userinput>patch -Np1 -i ../&flex-fixes-patch;</userinput></screen>
 
 <para>The GNU autotools will detect that the Flex source code has been
 modified by the previous patch and tries to update the manual page

+ 2 - 0
chapter05/gawk.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-tools-gawk" role="wrap">
 <title>Gawk-&gawk-version;</title>

+ 2 - 0
chapter05/gcc-pass1.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-tools-gcc-pass1" role="wrap">
 <title>GCC-&gcc-version; - Pass 1</title>

+ 4 - 2
chapter05/gcc-pass2.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-tools-gcc-pass2" role="wrap">
 <title>GCC-&gcc-version; - Pass 2</title>
@@ -64,8 +66,8 @@ class="directory">gcc-&gcc-version;/</filename> subdirectory.</para>
 
 <para>First correct a known problem and make an essential adjustment:</para>
 
-<screen><userinput>patch -Np1 -i ../gcc-&gcc-version;-no_fixincludes-1.patch
-patch -Np1 -i ../gcc-&gcc-version;-specs-2.patch</userinput></screen>
+<screen><userinput>patch -Np1 -i ../&gcc-no_fixincludes-patch;
+patch -Np1 -i ../&gcc-specs-patch;</userinput></screen>
 
 <para>The first patch disables the GCC <command>fixincludes</command>
 script. This was briefly mentioned earlier, but a more in-depth

+ 2 - 0
chapter05/gettext.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-tools-gettext" role="wrap">
 <title>Gettext-&gettext-version;</title>

+ 3 - 1
chapter05/glibc.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-tools-glibc" role="wrap">
 <title>Glibc-&glibc-version;</title>
@@ -42,7 +44,7 @@ risk.</para>
 problem has been determined to be with the tests themselves, not with the libc
 nor the kernel. If you plan to run the testsuite apply this patch:</para>
 
-<screen><userinput>patch -Np1 -i ../glibc-&glibc-version;-fix_test-1.patch</userinput></screen>
+<screen><userinput>patch -Np1 -i ../&glibc-testfix-patch;</userinput></screen>
 
 <para>The Glibc documentation recommends building Glibc outside of the source
 directory in a dedicated build directory:</para>

+ 2 - 0
chapter05/grep.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-tools-grep" role="wrap">
 <title>Grep-&grep-version;</title>

+ 2 - 0
chapter05/gzip.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-tools-gzip" role="wrap">
 <title>Gzip-&gzip-version;</title>

+ 2 - 0
chapter05/linux-libc-headers.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-tools-linux-libc-headers" role="wrap">
 <title>Linux-Libc-Headers-&linux-libc-headers-version;</title>

+ 2 - 0
chapter05/m4.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-tools-m4" role="wrap">
 <title>M4-&m4-version;</title>

+ 2 - 0
chapter05/make.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-tools-make" role="wrap">
 <title>Make-&make-version;</title>

+ 2 - 0
chapter05/ncurses.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-tools-ncurses" role="wrap">
 <title>Ncurses-&ncurses-version;</title>

+ 2 - 0
chapter05/patch.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-tools-patch" role="wrap">
 <title>Patch-&patch-version;</title>

+ 3 - 1
chapter05/perl.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-tools-perl" role="wrap">
 <title>Perl-&perl-version;</title>
@@ -30,7 +32,7 @@
 <para>First adapt some hard-wired paths to the C library by applying
 the following patch:</para>
 
-<screen><userinput>patch -Np1 -i ../perl-&perl-version;-libc-1.patch</userinput></screen>
+<screen><userinput>patch -Np1 -i ../&perl-libc-patch;</userinput></screen>
 
 <para>Prepare Perl for compilation (make sure to get the 'IO Fcntl POSIX'
 part of the command correct&mdash;they are all letters):</para>

+ 2 - 0
chapter05/sed.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-tools-sed" role="wrap">
 <title>Sed-&sed-version;</title>

+ 2 - 0
chapter05/tar.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-tools-tar" role="wrap">
 <title>Tar-&tar-version;</title>

+ 2 - 0
chapter05/tcl.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-tools-tcl" role="wrap">
 <title>Tcl-&tcl-version;</title>

+ 2 - 0
chapter05/texinfo.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-tools-texinfo" role="wrap">
 <title>Texinfo-&texinfo-version;</title>

+ 2 - 0
chapter05/util-linux.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-tools-util-linux" role="wrap">
 <title>Util-linux-&util-linux-version;</title>

+ 2 - 0
chapter06/autoconf.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-system-autoconf" role="wrap">
 <title>Autoconf-&autoconf-version;</title>

+ 2 - 0
chapter06/automake.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-system-automake" role="wrap">
 <title>Automake-&automake-version;</title>

+ 4 - 2
chapter06/bash.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-system-bash" role="wrap">
 <title>Bash-&bash-version;</title>
@@ -32,12 +34,12 @@ GCC, Glibc, Grep, Make, Ncurses, and Sed.</seg></seglistitem>
 <para>The following patch fixes various issues, including a problem where Bash
 will sometimes only show 33 characters on a line, then wrap to the next:</para>
 
-<screen><userinput>patch -Np1 -i ../bash-&bash-version;-fixes-3.patch</userinput></screen>
+<screen><userinput>patch -Np1 -i ../&bash-fixes-patch;</userinput></screen>
 
 <para>Bash also has issues when compiled against newer versions of Glibc.  The
 following patch resolves this problem:</para>
 
-<screen><userinput>patch -Np1 -i ../bash-&bash-version;-avoid_WCONTINUED-1.patch</userinput></screen>
+<screen><userinput>patch -Np1 -i ../&bash-avoid_WCONTINUED-patch;</userinput></screen>
 
 <para>Prepare Bash for compilation:</para>
 

+ 2 - 0
chapter06/binutils.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-system-binutils" role="wrap">
 <title>Binutils-&binutils-version;</title>

+ 2 - 0
chapter06/bison.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-system-bison" role="wrap">
 <title>Bison-&bison-version;</title>

+ 2 - 0
chapter06/bzip2.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-system-bzip2" role="wrap">
 <title>Bzip2-&bzip2-version;</title>

+ 4 - 3
chapter06/coreutils.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-system-coreutils" role="wrap">
 <title>Coreutils-&coreutils-version;</title>
@@ -34,13 +36,12 @@ this package is that the <parameter>-p</parameter> switch always
 returns <computeroutput>unknown</computeroutput>. The following patch
 fixes this behavior for Intel architectures:</para>
 
-<screen><userinput>patch -Np1 -i ../coreutils-&coreutils-version;-uname-2.patch</userinput></screen>
+<screen><userinput>patch -Np1 -i ../&coreutils-uname-patch;</userinput></screen>
 
 <para>Prevent Coreutils from installing binaries that will be later be
 installed by other packages:</para>
 
-<screen><userinput>patch -Np1 -i \
-    ../coreutils-&coreutils-version;-suppress_uptime_kill_su-1.patch</userinput></screen>
+<screen><userinput>patch -Np1 -i ../&coreutils-suppress-patch;</userinput></screen>
 
 <para>Now prepare Coreutils for compilation:</para>
 

+ 2 - 0
chapter06/diffutils.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-system-diffutils" role="wrap">
 <title>Diffutils-&diffutils-version;</title>

+ 2 - 0
chapter06/e2fsprogs.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-system-e2fsprogs" role="wrap">
 <title>E2fsprogs-&e2fsprogs-version;</title>

+ 2 - 0
chapter06/file.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-system-file" role="wrap">
 <title>File-&file-version;</title>

+ 2 - 0
chapter06/findutils.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-system-findutils" role="wrap">
 <title>Findutils-&findutils-version;</title>

+ 3 - 1
chapter06/flex.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-system-flex" role="wrap">
 <title>Flex-&flex-version;</title>
@@ -31,7 +33,7 @@ GCC, Gettext, Glibc, Grep, M4, Make, and Sed</seg></seglistitem>
 
 <para>Flex contains several known bugs. Fix these with the following patch:</para>
 
-<screen><userinput>patch -Np1 -i ../flex-&flex-version;-debian_fixes-2.patch</userinput></screen>
+<screen><userinput>patch -Np1 -i ../&flex-fixes-patch;</userinput></screen>
 
 <para>The GNU autotools detects that the Flex source code has been
 modified by the previous patch and tries to update the manual page

+ 2 - 0
chapter06/gawk.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-system-gawk" role="wrap">
 <title>Gawk-&gawk-version;</title>

+ 4 - 2
chapter06/gcc.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-system-gcc" role="wrap">
 <title>GCC-&gcc-version;</title>
@@ -42,13 +44,13 @@ into the same directory. Likewise, extract the gcc-testsuite tarball.</para>
 <para>Apply only the No-Fixincludes patch (not the Specs patch) also
 used in the previous chapter:</para>
 
-<screen><userinput>patch -Np1 -i ../gcc-&gcc-version;-no_fixincludes-1.patch</userinput></screen>
+<screen><userinput>patch -Np1 -i ../&gcc-no_fixincludes-patch;</userinput></screen>
 
 <para>GCC fails to compile some packages outside of a base Linux From Scratch
 install (e.g., Mozilla and kdegraphics) when used in conjunction with newer
 versions of Binutils.  Apply the following patch to fix this issue:</para>
 
-<screen><userinput>patch -Np1 -i ../gcc-&gcc-version;-linkonce-1.patch</userinput></screen>
+<screen><userinput>patch -Np1 -i ../&gcc-linkonce-patch;</userinput></screen>
 
 <para>Apply a sed substitution that will suppress the installation of
 <filename class="libraryfile">libiberty.a</filename>. The version of

+ 2 - 0
chapter06/gettext.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-system-gettext" role="wrap">
 <title>Gettext-&gettext-version;</title>

+ 3 - 1
chapter06/glibc.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-system-glibc" role="wrap">
 <title>Glibc-&glibc-version;</title>
@@ -55,7 +57,7 @@ within the Glibc source directory:</para>
 problem has been determined to be with the tests themselves, not with the libc
 nor the kernel. This patch fixes the problem:</para>
 
-<screen><userinput>patch -Np1 -i ../glibc-&glibc-version;-fix_test-1.patch</userinput></screen>
+<screen><userinput>patch -Np1 -i ../&glibc-testfix-patch;</userinput></screen>
 
 <para>The Glibc documentation recommends building Glibc outside of the source
 directory in a dedicated build directory:</para>

+ 2 - 0
chapter06/grep.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-system-grep" role="wrap">
 <title>Grep-&grep-version;</title>

+ 2 - 0
chapter06/groff.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-system-groff" role="wrap">
 <title>Groff-&groff-version;</title>

+ 2 - 0
chapter06/grub.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-system-grub" role="wrap">
 <title>Grub-&grub-version;</title>

+ 3 - 1
chapter06/gzip.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-system-gzip" role="wrap">
 <title>Gzip-&gzip-version;</title>
@@ -32,7 +34,7 @@ GCC, Glibc, Grep, Make, and Sed</seg></seglistitem>
 <para>Gzip has 2 known security vulnerabilites.  The following patch
 addresses both of them:</para>
 
-<screen><userinput>patch -Np1 -i ../gzip-&gzip-version;-security_fixes-1.patch</userinput></screen>
+<screen><userinput>patch -Np1 -i ../&gzip-security_fix-patch;</userinput></screen>
 
 <para>Prepare Gzip for compilation:</para>
 

+ 2 - 0
chapter06/hotplug.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-system-hotplug" xreflabel="Hotplug" role="wrap">
 <title>Hotplug-&hotplug-version;</title>

+ 2 - 0
chapter06/iana-etc.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-system-iana-etc" role="wrap">
 <title>Iana-Etc-&iana-etc-version;</title>

+ 3 - 6
chapter06/inetutils.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-system-inetutils" role="wrap">
 <title>Inetutils-&inetutils-version;</title>
@@ -28,17 +30,12 @@ Diffutils, GCC, Glibc, Grep, Make, Ncurses, and Sed</seg></seglistitem>
 <sect2 role="installation">
 <title>Installation of Inetutils</title>
 
-<para>Inetutils has issues with the Linux 2.6 kernel series. Fix these
-issues by applying the following patch:</para>
-
-<screen><userinput>patch -Np1 -i ../inetutils-&inetutils-version;-kernel_headers-1.patch</userinput></screen>
-
 <para>All programs that come with Inetutils will not be installed.
 However, the Inetutils build system will insist on installing all the
 man pages anyway. The following patch will correct this
 situation:</para>
 
-<screen><userinput>patch -Np1 -i ../inetutils-&inetutils-version;-no_server_man_pages-1.patch</userinput></screen>
+<screen><userinput>patch -Np1 -i ../&inetutils-man_pages-patch;</userinput></screen>
 
 <para>Prepare Inetutils for compilation:</para>
 

+ 2 - 0
chapter06/iproute2.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-system-iproute2" role="wrap">
   <title>IPRoute2-&iproute2-version;</title>

+ 2 - 0
chapter06/kbd.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-system-kbd" role="wrap">
 <title>Kbd-&kbd-version;</title>

+ 2 - 0
chapter06/less.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-system-less" role="wrap">
 <title>Less-&less-version;</title>

+ 2 - 0
chapter06/libtool.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-system-libtool" role="wrap">
 <title>Libtool-&libtool-version;</title>

+ 2 - 0
chapter06/linux-libc-headers.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-system-linux-libc-headers" role="wrap">
 <title>Linux-Libc-Headers-&linux-libc-headers-version;</title>

+ 2 - 0
chapter06/m4.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-system-m4" role="wrap">
 <title>M4-&m4-version;</title>

+ 2 - 0
chapter06/make.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-system-make" role="wrap">
 <title>Make-&make-version;</title>

+ 2 - 0
chapter06/man-pages.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-system-man-pages" role="wrap">
 <title>Man-pages-&man-pages-version;</title>

+ 2 - 0
chapter06/man.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-system-man" role="wrap">
 <title>Man-&man-version;</title>

+ 3 - 1
chapter06/mktemp.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-system-mktemp" role="wrap">
 <title>Mktemp-&mktemp-version;</title>
@@ -33,7 +35,7 @@ files in shell scripts.</para>
 to <command>mktemp</command>. Patch Mktemp to include a
 <command>tempfile</command> wrapper:</para>
 
-<screen><userinput>patch -Np1 -i ../mktemp-&mktemp-version;-add_tempfile-1.patch</userinput></screen>
+<screen><userinput>patch -Np1 -i ../&mktemp-tempfile-patch;</userinput></screen>
 
 <para>Prepare Mktemp for compilation:</para>
 

+ 2 - 0
chapter06/module-init-tools.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-system-module-init-tools" role="wrap">
 <title>Module-Init-Tools-&module-init-tools-version;</title>

+ 2 - 0
chapter06/ncurses.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-system-ncurses" role="wrap">
 <title>Ncurses-&ncurses-version;</title>

+ 2 - 0
chapter06/patch.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-system-patch" role="wrap">
 <title>Patch-&patch-version;</title>

+ 2 - 0
chapter06/perl.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-system-perl" role="wrap">
 <title>Perl-&perl-version;</title>

+ 2 - 0
chapter06/procps.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-system-procps" role="wrap">
 <title>Procps-&procps-version;</title>

+ 2 - 0
chapter06/psmisc.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-system-psmisc" role="wrap">
 <title>Psmisc-&psmisc-version;</title>

+ 3 - 1
chapter06/readline.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-system-readline" role="wrap">
 <title>Readline-&readline-version;</title>
@@ -33,7 +35,7 @@ Readline sometimes only shows 33 characters on a line and then wraps
 to the next line. It also includes other fixes recommended by the
 Readline author.</para>
 
-<screen><userinput>patch -Np1 -i ../readline-&readline-version;-fixes-1.patch</userinput></screen>
+<screen><userinput>patch -Np1 -i ../&readline-fixes-patch;</userinput></screen>
 
 <para>Prepare Readline for compilation:</para>
 

+ 2 - 0
chapter06/sed.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-system-sed" role="wrap">
 <title>Sed-&sed-version;</title>

+ 2 - 0
chapter06/shadow.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-system-shadow" role="wrap">
 <title>Shadow-&shadow-version;</title>

+ 3 - 1
chapter06/sysklogd.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-system-sysklogd" xreflabel="Sysklogd" role="wrap">
 <title>Sysklogd-&sysklogd-version;</title>
@@ -31,7 +33,7 @@ as those given by the kernel when unusual things happen.</para>
 <para>The following patch fixes various issues, including a problem building
 Sysklogd with Linux 2.6 series kernels</para>
 
-<screen><userinput>patch -Np1 -i ../sysklogd-&sysklogd-version;-fixes-1.patch</userinput></screen>
+<screen><userinput>patch -Np1 -i ../&sysklogd-fixes-patch;</userinput></screen>
 
 <para>Compile the package:</para>
 

+ 2 - 0
chapter06/sysvinit.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-system-sysvinit" role="wrap">
 <title>Sysvinit-&sysvinit-version;</title>

+ 3 - 1
chapter06/tar.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-system-tar" role="wrap">
 <title>Tar-&tar-version;</title>
@@ -31,7 +33,7 @@ Diffutils, GCC, Gettext, Glibc, Grep, Make, and Sed</seg></seglistitem>
 <para>Tar has a bug when the <parameter>-S</parameter> option is used 
 with files larger than 4 GB. The following patch properly fixes this issue:</para>
 
-<screen><userinput>patch -Np1 -i ../tar-&tar-version;-sparse_fix-1.patch</userinput></screen>
+<screen><userinput>patch -Np1 -i ../&tar-sparse_fix-patch;</userinput></screen>
 
 <para>Prepare Tar for compilation:</para>
 

+ 2 - 0
chapter06/texinfo.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-system-texinfo" role="wrap">
 <title>Texinfo-&texinfo-version;</title>

+ 2 - 0
chapter06/udev.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-system-udev" role="wrap">
 <title>Udev-&udev-version;</title>

+ 3 - 1
chapter06/util-linux.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-system-util-linux" role="wrap">
 <title>Util-linux-&util-linux-version;</title>
@@ -49,7 +51,7 @@ mkdir -p /var/lib/hwclock</userinput></screen>
 <para>Util-linux has a compilation error against newer versions of
 Linux-Libc-Headers.  The following patch properly fixes that issue</para>
 
-<screen><userinput>patch -Np1 -i ../util-linux-&util-linux-version;-cramfs-1.patch</userinput></screen>
+<screen><userinput>patch -Np1 -i ../&util-linux-cramfs-patch;</userinput></screen>
 
 <para>Prepare Util-linux for compilation:</para>
 

+ 3 - 1
chapter06/vim.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-system-vim" role="wrap">
 <title>Vim-&vim-version;</title>
@@ -49,7 +51,7 @@ echo '#define SYS_GVIMRC_FILE "/etc/gvimrc"' &gt;&gt; src/feature.h</userinput><
 <para>Vim has a security vulnerability already addressed upstream.  The
 following patch fixes the problem:</para>
 
-<screen><userinput>patch -Np1 -i ../vim-&vim-version;-security_fix-1.patch</userinput></screen>
+<screen><userinput>patch -Np1 -i ../&vim-security_fix-patch;</userinput></screen>
 
 <para>Now prepare Vim for compilation:</para>
 

+ 2 - 0
chapter06/zlib.xml

@@ -1,7 +1,9 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
+  <!ENTITY % patches-entities SYSTEM "../patches.ent">
   %general-entities;
+  %patches-entities;
 ]>
 <sect1 id="ch-system-zlib" role="wrap">
 <title>Zlib-&zlib-version;</title>