patch.xml 2.3 KB

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