patch.xml 2.4 KB

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