patch.xml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. <!ENTITY % patches-entities SYSTEM "../patches.ent">
  5. %general-entities;
  6. %patches-entities;
  7. ]>
  8. <sect1 id="ch-system-patch" role="wrap">
  9. <title>Patch-&patch-version;</title>
  10. <?dbhtml filename="patch.html"?>
  11. <indexterm zone="ch-system-patch"><primary sortas="a-Patch">Patch</primary></indexterm>
  12. <sect2 role="package"><title/>
  13. <para>The Patch package contains a program for modifying files.</para>
  14. <segmentedlist>
  15. <segtitle>&buildtime;</segtitle>
  16. <segtitle>&diskspace;</segtitle>
  17. <seglistitem><seg>0.1 SBU</seg><seg>1.9 MB</seg></seglistitem>
  18. </segmentedlist>
  19. <segmentedlist>
  20. <segtitle>&dependencies;</segtitle>
  21. <seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
  22. GCC, Glibc, Grep, Make, and Sed</seg></seglistitem>
  23. </segmentedlist>
  24. </sect2>
  25. <sect2 role="installation">
  26. <title>Installation of Patch</title>
  27. <para>Prepare Patch for compilation. The preprocessor flag
  28. <parameter>-D_GNU_SOURCE</parameter> is only needed on the PowerPC
  29. platform. It can be left it out on other architectures:</para>
  30. <screen><userinput>CPPFLAGS=-D_GNU_SOURCE ./configure --prefix=/usr</userinput></screen>
  31. <para>Compile the package:</para>
  32. <screen><userinput>make</userinput></screen>
  33. <para>This package does not come with a test suite.</para>
  34. <para>Install the package:</para>
  35. <screen><userinput>make install</userinput></screen>
  36. </sect2>
  37. <sect2 id="contents-patch" role="content"><title>Contents of Patch</title>
  38. <segmentedlist>
  39. <segtitle>Installed program</segtitle>
  40. <seglistitem><seg>patch</seg></seglistitem>
  41. </segmentedlist>
  42. <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
  43. <?dbfo list-presentation="list"?>
  44. <?dbhtml list-presentation="table"?>
  45. <varlistentry id="patch">
  46. <term><command>patch</command></term>
  47. <listitem>
  48. <para>Modifies files according to a patch file. A patch file is normally
  49. a difference listing created with the <command>diff</command> program. By applying
  50. these differences to the original files, <command>patch</command> creates the patched
  51. versions.</para>
  52. <indexterm zone="ch-system-patch patch"><primary sortas="b-patch">patch</primary></indexterm>
  53. </listitem>
  54. </varlistentry>
  55. </variablelist>
  56. </sect2>
  57. </sect1>