patch.xml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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">
  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. <para>The Patch package contains a program for modifying files.</para>
  11. <screen>&buildtime; 0.1 SBU
  12. &diskspace; 1.9 MB</screen>
  13. <para>Patch installation depends on: Bash, Binutils, Coreutils, Diffutils,
  14. GCC, Glibc, Grep, Make, Sed.</para>
  15. <sect2>
  16. <title>Installation of Patch</title>
  17. <para>Prepare Patch for compilation (the preprocessor flag
  18. <emphasis>-D_GNU_SOURCE</emphasis> is only needed on PowerPCs, on other
  19. machines you can leave it out):</para>
  20. <screen><userinput>CPPFLAGS=-D_GNU_SOURCE ./configure --prefix=/usr</userinput></screen>
  21. <para>Compile the package:</para>
  22. <screen><userinput>make</userinput></screen>
  23. <para>Now install it:</para>
  24. <screen><userinput>make install</userinput></screen>
  25. </sect2>
  26. <sect2 id="contents-patch"><title>Contents of Patch</title>
  27. <para><emphasis>Installed program</emphasis>: patch</para>
  28. </sect2>
  29. <sect2><title>Short description</title>
  30. <indexterm zone="ch-system-patch patch"><primary sortas="b-patch">patch</primary></indexterm>
  31. <para id="patch"><command>patch</command> modifies files according to a patch file.
  32. A patch file normally is a difference listing created with the diff program.
  33. By applying these differences to the original files, patch creates the patched
  34. versions. Using patches instead of entirely new tarballs to keep your sources
  35. up-to-date can save you a lot of download time.</para>
  36. </sect2>
  37. </sect1>