patch.xml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. %general-entities;
  5. ]>
  6. <sect1 id="ch-system-patch" xreflabel="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, 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 PowerPCs, on other
  27. machines you can leave it out):</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>Now install it:</para>
  32. <screen><userinput>make install</userinput></screen>
  33. </sect2>
  34. <sect2 id="contents-patch" role="content"><title>Contents of Patch</title>
  35. <segmentedlist>
  36. <segtitle>Installed program</segtitle>
  37. <seglistitem><seg>patch</seg></seglistitem>
  38. </segmentedlist>
  39. <variablelist><title>Short descriptions</title>
  40. <varlistentry id="patch">
  41. <term><command>patch</command></term>
  42. <listitem>
  43. <indexterm zone="ch-system-patch patch"><primary sortas="b-patch">patch</primary></indexterm>
  44. <para>modifies files according to a patch file.
  45. A patch file normally is a difference listing created with the <command>diff</command> program.
  46. By applying these differences to the original files, <command>patch</command> creates the patched
  47. versions. Using patches instead of entirely new tarballs to keep your sources
  48. up-to-date can save you a lot of download time.</para>
  49. </listitem>
  50. </varlistentry>
  51. </variablelist>
  52. </sect2>
  53. </sect1>