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