[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,
|
---|
[69993f4] | 24 | GCC, Glibc, Grep, Make, and Sed</seg></seglistitem>
|
---|
[a001133] | 25 | </segmentedlist>
|
---|
| 26 | </sect2>
|
---|
[3554fa3a] | 27 |
|
---|
[a001133] | 28 | <sect2 role="installation">
|
---|
[73aedd1d] | 29 | <title>Installation of Patch</title>
|
---|
| 30 |
|
---|
[ef13657] | 31 | <para>Prepare Patch for compilation. The preprocessor flag
|
---|
| 32 | <parameter>-D_GNU_SOURCE</parameter> is only needed on the PowerPC
|
---|
[69993f4] | 33 | platform. It can be left it out on other architectures:</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 |
|
---|
[0cb7f8b] | 41 | <para>This package does not come with a test suite.</para>
|
---|
| 42 |
|
---|
[ef13657] | 43 | <para>Install the package:</para>
|
---|
[73aedd1d] | 44 |
|
---|
| 45 | <screen><userinput>make install</userinput></screen>
|
---|
| 46 |
|
---|
| 47 | </sect2>
|
---|
[6370fa6] | 48 |
|
---|
[5888299] | 49 |
|
---|
[c6cb3aa] | 50 | <sect2 id="contents-patch" role="content"><title>Contents of Patch</title>
|
---|
[673b0d8] | 51 |
|
---|
[c6cb3aa] | 52 | <segmentedlist>
|
---|
| 53 | <segtitle>Installed program</segtitle>
|
---|
| 54 | <seglistitem><seg>patch</seg></seglistitem>
|
---|
| 55 | </segmentedlist>
|
---|
[6370fa6] | 56 |
|
---|
[3ed279f] | 57 | <variablelist><bridgehead renderas="sect3">Short descriptions</bridgehead>
|
---|
| 58 | <?dbfo list-presentation="list"?>
|
---|
[673b0d8] | 59 |
|
---|
[b8a819f] | 60 | <varlistentry id="patch">
|
---|
| 61 | <term><command>patch</command></term>
|
---|
[c6cb3aa] | 62 | <listitem>
|
---|
[69993f4] | 63 | <para>modifies files according to a patch file. A patch file is normally
|
---|
| 64 | a difference listing created with the <command>diff</command> program. By applying
|
---|
[ef13657] | 65 | these differences to the original files, <command>patch</command> creates the patched
|
---|
| 66 | versions.</para>
|
---|
[3ed279f] | 67 | <indexterm zone="ch-system-patch patch"><primary sortas="b-patch">patch</primary></indexterm>
|
---|
[c6cb3aa] | 68 | </listitem>
|
---|
| 69 | </varlistentry>
|
---|
| 70 | </variablelist>
|
---|
[673b0d8] | 71 |
|
---|
| 72 | </sect2>
|
---|
| 73 |
|
---|
| 74 | </sect1>
|
---|
[ef13657] | 75 |
|
---|