[673b0d8] | 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 | ]>
|
---|
[a001133] | 6 | <sect1 id="ch-system-patch" xreflabel="Patch" role="wrap">
|
---|
[673b0d8] | 7 | <title>Patch-&patch-version;</title>
|
---|
| 8 | <?dbhtml filename="patch.html"?>
|
---|
| 9 |
|
---|
| 10 | <indexterm zone="ch-system-patch"><primary sortas="a-Patch">Patch</primary></indexterm>
|
---|
[6370fa6] | 11 |
|
---|
[a001133] | 12 | <sect2 role="package"><title/>
|
---|
[5888299] | 13 | <para>The Patch package contains a program for modifying files.</para>
|
---|
| 14 |
|
---|
[a001133] | 15 | <segmentedlist>
|
---|
| 16 | <segtitle>&buildtime;</segtitle>
|
---|
| 17 | <segtitle>&diskspace;</segtitle>
|
---|
| 18 | <seglistitem><seg>0.1 SBU</seg><seg>1.9 MB</seg></seglistitem>
|
---|
| 19 | </segmentedlist>
|
---|
[673b0d8] | 20 |
|
---|
[a001133] | 21 | <segmentedlist>
|
---|
| 22 | <segtitle>Patch installation depends on</segtitle>
|
---|
| 23 | <seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
|
---|
| 24 | GCC, Glibc, Grep, Make, Sed</seg></seglistitem>
|
---|
| 25 | </segmentedlist>
|
---|
| 26 | </sect2>
|
---|
[3554fa3a] | 27 |
|
---|
[a001133] | 28 | <sect2 role="installation">
|
---|
[73aedd1d] | 29 | <title>Installation of Patch</title>
|
---|
| 30 |
|
---|
[673b0d8] | 31 | <para>Prepare Patch for compilation (the preprocessor flag
|
---|
[8ad7980] | 32 | <parameter>-D_GNU_SOURCE</parameter> is only needed on PowerPCs, on other
|
---|
[c3dc67c] | 33 | machines you can leave it out):</para>
|
---|
[73aedd1d] | 34 |
|
---|
| 35 | <screen><userinput>CPPFLAGS=-D_GNU_SOURCE ./configure --prefix=/usr</userinput></screen>
|
---|
| 36 |
|
---|
| 37 | <para>Compile the package:</para>
|
---|
| 38 |
|
---|
| 39 | <screen><userinput>make</userinput></screen>
|
---|
| 40 |
|
---|
[673b0d8] | 41 | <para>Now install it:</para>
|
---|
[73aedd1d] | 42 |
|
---|
| 43 | <screen><userinput>make install</userinput></screen>
|
---|
| 44 |
|
---|
| 45 | </sect2>
|
---|
[6370fa6] | 46 |
|
---|
[5888299] | 47 |
|
---|
[c6cb3aa] | 48 | <sect2 id="contents-patch" role="content"><title>Contents of Patch</title>
|
---|
[673b0d8] | 49 |
|
---|
[c6cb3aa] | 50 | <segmentedlist>
|
---|
| 51 | <segtitle>Installed program</segtitle>
|
---|
| 52 | <seglistitem><seg>patch</seg></seglistitem>
|
---|
| 53 | </segmentedlist>
|
---|
[6370fa6] | 54 |
|
---|
[c6cb3aa] | 55 | <variablelist><title>Short descriptions</title>
|
---|
[673b0d8] | 56 |
|
---|
[b8a819f] | 57 | <varlistentry id="patch">
|
---|
| 58 | <term><command>patch</command></term>
|
---|
[c6cb3aa] | 59 | <listitem>
|
---|
[673b0d8] | 60 | <indexterm zone="ch-system-patch patch"><primary sortas="b-patch">patch</primary></indexterm>
|
---|
[c6cb3aa] | 61 | <para>modifies files according to a patch file.
|
---|
[8ad7980] | 62 | A patch file normally is a difference listing created with the <command>diff</command> program.
|
---|
| 63 | By applying these differences to the original files, <command>patch</command> creates the patched
|
---|
[673b0d8] | 64 | versions. Using patches instead of entirely new tarballs to keep your sources
|
---|
| 65 | up-to-date can save you a lot of download time.</para>
|
---|
[c6cb3aa] | 66 | </listitem>
|
---|
| 67 | </varlistentry>
|
---|
| 68 | </variablelist>
|
---|
[673b0d8] | 69 |
|
---|
| 70 | </sect2>
|
---|
| 71 |
|
---|
| 72 | </sect1>
|
---|