patch.xml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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 or creating files by
  14. applying a "patch" file typically created by the diff program.</para>
  15. <segmentedlist>
  16. <segtitle>&buildtime;</segtitle>
  17. <segtitle>&diskspace;</segtitle>
  18. <seglistitem><seg>0.1 SBU</seg><seg>1.5 MB</seg></seglistitem>
  19. </segmentedlist>
  20. <segmentedlist>
  21. <segtitle>&dependencies;</segtitle>
  22. <seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
  23. GCC, Glibc, Grep, Make, and Sed</seg></seglistitem>
  24. </segmentedlist>
  25. </sect2>
  26. <sect2 role="installation">
  27. <title>Installation of Patch</title>
  28. <para>Prepare Patch for compilation. The preprocessor flag
  29. <parameter>-D_GNU_SOURCE</parameter> is only needed on the PowerPC
  30. platform. It can be left it out on other architectures:</para>
  31. <screen><userinput>CPPFLAGS=-D_GNU_SOURCE ./configure --prefix=/usr</userinput></screen>
  32. <para>Compile the package:</para>
  33. <screen><userinput>make</userinput></screen>
  34. <para>This package does not come with a test suite.</para>
  35. <para>Install the package:</para>
  36. <screen><userinput>make install</userinput></screen>
  37. </sect2>
  38. <sect2 id="contents-patch" role="content"><title>Contents of Patch</title>
  39. <segmentedlist>
  40. <segtitle>Installed program</segtitle>
  41. <seglistitem><seg>patch</seg></seglistitem>
  42. </segmentedlist>
  43. <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
  44. <?dbfo list-presentation="list"?>
  45. <?dbhtml list-presentation="table"?>
  46. <varlistentry id="patch">
  47. <term><command>patch</command></term>
  48. <listitem>
  49. <para>Modifies files according to a patch file. A patch file is normally
  50. a difference listing created with the <command>diff</command> program. By applying
  51. these differences to the original files, <command>patch</command> creates the patched
  52. versions.</para>
  53. <indexterm zone="ch-system-patch patch"><primary sortas="b-patch">patch</primary></indexterm>
  54. </listitem>
  55. </varlistentry>
  56. </variablelist>
  57. </sect2>
  58. </sect1>