1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 | ]>
|
---|
7 |
|
---|
8 | <sect1 id="ch-system-patch" role="wrap">
|
---|
9 | <?dbhtml filename="patch.html"?>
|
---|
10 |
|
---|
11 | <title>Patch-&patch-version;</title>
|
---|
12 |
|
---|
13 | <indexterm zone="ch-system-patch">
|
---|
14 | <primary sortas="a-Patch">Patch</primary>
|
---|
15 | </indexterm>
|
---|
16 |
|
---|
17 | <sect2 role="package">
|
---|
18 | <title/>
|
---|
19 |
|
---|
20 | <para>The Patch package contains a program for modifying or creating
|
---|
21 | files by applying a <quote>patch</quote> file typically created by the
|
---|
22 | <command>diff</command> program.</para>
|
---|
23 |
|
---|
24 | </sect2>
|
---|
25 |
|
---|
26 | &env-target;
|
---|
27 |
|
---|
28 | <sect2 role="installation">
|
---|
29 | <title>Installation of Patch</title>
|
---|
30 |
|
---|
31 | <para os="a">Configure would like to hardcode the full path to
|
---|
32 | <command>ed</command>. When <command>ed</command> isn't found it falls
|
---|
33 | back on just "<command>ed</command>". Since <command>ed</command>
|
---|
34 | isn't installed by default but it may be installed on the host, Lets
|
---|
35 | force the fallback value.</para>
|
---|
36 |
|
---|
37 | <screen os="b"><userinput>cat > config.cache << EOF
|
---|
38 | ac_cv_path_ed_PROGRAM=ed
|
---|
39 | EOF</userinput></screen>
|
---|
40 |
|
---|
41 | <para os="c">Prepare Patch for compilation:</para>
|
---|
42 |
|
---|
43 | <screen os="d"><userinput>./configure --build=${CLFS_HOST} --host=${CLFS_TARGET} \
|
---|
44 | --prefix=/usr --cache-file=config.cache</userinput></screen>
|
---|
45 |
|
---|
46 | <para os="e">Compile the package:</para>
|
---|
47 |
|
---|
48 | <screen os="f"><userinput>make</userinput></screen>
|
---|
49 |
|
---|
50 | <para os="g">Install the package:</para>
|
---|
51 |
|
---|
52 | <screen os="h"><userinput>make prefix=${CLFS}/usr install</userinput></screen>
|
---|
53 |
|
---|
54 | </sect2>
|
---|
55 |
|
---|
56 | <sect2 id="contents-patch" role="content">
|
---|
57 | <title>Contents of Patch</title>
|
---|
58 |
|
---|
59 | <segmentedlist>
|
---|
60 | <segtitle>Installed program</segtitle>
|
---|
61 |
|
---|
62 | <seglistitem>
|
---|
63 | <seg>patch</seg>
|
---|
64 | </seglistitem>
|
---|
65 | </segmentedlist>
|
---|
66 |
|
---|
67 | <variablelist>
|
---|
68 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
69 | <?dbfo list-presentation="list"?>
|
---|
70 | <?dbhtml list-presentation="table"?>
|
---|
71 |
|
---|
72 | <varlistentry id="patch">
|
---|
73 | <term><command>patch</command></term>
|
---|
74 | <listitem>
|
---|
75 | <para>Modifies files according to a patch file. A patch file is
|
---|
76 | normally a difference listing created with the <command>diff</command>
|
---|
77 | program. By applying these differences to the original files,
|
---|
78 | <command>patch</command> creates the patched versions.</para>
|
---|
79 | <indexterm zone="ch-system-patch patch">
|
---|
80 | <primary sortas="b-patch">patch</primary>
|
---|
81 | </indexterm>
|
---|
82 | </listitem>
|
---|
83 | </varlistentry>
|
---|
84 |
|
---|
85 | </variablelist>
|
---|
86 |
|
---|
87 | </sect2>
|
---|
88 |
|
---|
89 | </sect1>
|
---|