patch.xml 2.4 KB

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