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