<?xml version="1.0" encoding="UTF-8"?>
<!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="materials-patches">
  <?dbhtml filename="patches.html"?>

  <title>必要的补丁</title>

  <!--para>In addition to the packages, several patches are also required.
  These patches correct any mistakes in the packages that should be
  fixed by the maintainer.  The patches also make small modifications to
  make the packages easier to work with. The following patches will be
  needed to build an LFS system:</para-->
  <para>除了软件包外，我们还需要一些补丁。
	  有些补丁解决了本应由维护者修复的问题，有些则对软件包进行微小的修改，
	  使得它们更容易使用。构建 LFS 系统需要下列补丁：</para>

  <variablelist role="materials">
<!--
    <varlistentry>
      <term>Bash Upstream Fixes Patch - <token>&bash-fixes-patch-size;</token>:</term>
      <listitem>
        <para>Download: <ulink url="&patches-root;&bash-fixes-patch;"/></para>
        <para>MD5 sum: <literal>&bash-fixes-patch-md5;</literal></para>
      </listitem>
    </varlistentry>
-->
<!--
    <varlistentry>
      <term>Bc Memory Leak Patch - <token>&bc-memory-leak-patch-size;</token>:</term>
      <listitem>
        <para>Download: <ulink url="&patches-root;&bc-memory-leak-patch;"/></para>
        <para>MD5 sum: <literal>&bc-memory-leak-patch-md5;</literal></para>
      </listitem>
    </varlistentry>
-->
    <varlistentry>
      <term>Bzip2 文档补丁 - <token>&bzip2-docs-patch-size;</token>:</term>
      <listitem>
        <para>下载地址: <ulink url="&patches-root;&bzip2-docs-patch;"/></para>
        <para>MD5 校验和: <literal>&bzip2-docs-patch-md5;</literal></para>
      </listitem>
    </varlistentry>

    <varlistentry>
      <term>Coreutils 国际化修复补丁 - <token>&coreutils-i18n-patch-size;</token>:</term>
      <listitem>
        <para>下载地址: <ulink url="&patches-root;&coreutils-i18n-patch;"/></para>
        <para>MD5 校验和: <literal>&coreutils-i18n-patch-md5;</literal></para>
      </listitem>
    </varlistentry>
<!--
    <varlistentry>
      <term>Flex Fixes Patch - <token>&flex-fixes-patch-size;</token>:</term>
      <listitem>
        <para>Download: <ulink url="&patches-root;&flex-fixes-patch;"/></para>
        <para>MD5 sum: <literal>&flex-fixes-patch-md5;</literal></para>
      </listitem>
    </varlistentry>
-->
<!--
    <varlistentry>
      <term>Gccc ASAN Patch - <token>&gcc-asan-patch-size;</token>:</term>
      <listitem>
        <para>Download: <ulink url="&patches-root;&gcc-asan-patch;"/></para>
        <para>MD5 sum: <literal>&gcc-asan-patch-md5;</literal></para>
      </listitem>
    </varlistentry>
-->
    <varlistentry>
      <term>Glibc FHS 补丁 - <token>&glibc-fhs-patch-size;</token>:</term>
      <listitem>
        <para>下载地址: <ulink url="&patches-root;&glibc-fhs-patch;"/></para>
        <para>MD5 校验和: <literal>&glibc-fhs-patch-md5;</literal></para>
      </listitem>
    </varlistentry>
<!--
    <varlistentry>
      <term>Glibc Glob Security Patch - <token>&glibc-glob-patch-size;</token>:</term>
      <listitem>
        <para>Download: <ulink url="&patches-root;&glibc-glob-patch;"/></para>
        <para>MD5 sum: <literal>&glibc-glob-patch-md5;</literal></para>
      </listitem>
    </varlistentry>
-->
    <varlistentry>
		<term>Kbd 退格/删除修复补丁 - <token>&kbd-backspace-patch-size;</token>:</term>
      <listitem>
        <para>下载地址: <ulink url="&patches-root;&kbd-backspace-patch;"/></para>
        <para>MD5 校验和: <literal>&kbd-backspace-patch-md5;</literal></para>
      </listitem>
    </varlistentry>

    <varlistentry>
      <term>Ninja 并行编译限制补丁 - <token>&ninja-limit-jobs-patch-size;</token>:</term>
      <listitem>
        <para>下载地址: <ulink url="&patches-root;&ninja-limit-jobs-patch;"/></para>
        <para>MD5 校验和: <literal>&ninja-limit-jobs-patch-md5;</literal></para>
      </listitem>
    </varlistentry>
<!--
    <varlistentry>
      <term>Readline Upstream Fixes Patch - <token>&readline-fixes-patch-size;</token>:</term>
      <listitem>
        <para>Download: <ulink url="&patches-root;&readline-fixes-patch;"/></para>
        <para>MD5 sum: <literal>&readline-fixes-patch-md5;</literal></para>
      </listitem>
    </varlistentry>
-->
    <varlistentry revision="sysv">
      <term>Sysvinit 累积更新补丁 - <token>&sysvinit-consolidated-patch-size;</token>:</term>
      <listitem>
        <para>下载地址: <ulink url="&patches-root;&sysvinit-consolidated-patch;"/></para>
        <para>MD5 校验和: <literal>&sysvinit-consolidated-patch-md5;</literal></para>
      </listitem>
    </varlistentry>

<!-- 
    <varlistentry revision="systemd">
      <term>Systemd security patch - <token>&systemd-security-patch-size;</token>:</term>
      <listitem>
        <para>Download: <ulink url="&patches-root;&systemd-security-patch;"/></para>
        <para>MD5 sum: <literal>&systemd-security-patch-md5;</literal></para>
      </listitem>
    </varlistentry>
-->

  </variablelist>

  <para>以上补丁的总大小: 约 <returnvalue/></para>

  <!--para>In addition to the above required patches, there exist a number of
  optional patches created by the LFS community. These optional patches
  solve minor problems or enable functionality that is not enabled by
  default. Feel free to peruse the patches database located at
  <ulink url="&lfs-root;patches/downloads/"/> and acquire any additional
  patches to suit your system needs.</para-->
  <para>除了上述必要的补丁外，LFS 社区还创建了一些可选补丁。
	  它们有的解决了一些微小的问题，有的启用了一些默认没有启用的功能。
	  您可以浏览 <ulink url="&lfs-root;patches/downloads/"/>
	  查询 LFS 补丁库，并获取各种适合您需求的补丁。</para>

</sect1>
