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