aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/patch.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter06/patch.xml')
-rw-r--r--chapter06/patch.xml37
1 files changed, 33 insertions, 4 deletions
diff --git a/chapter06/patch.xml b/chapter06/patch.xml
index 5d28069f6..d935dfc14 100644
--- a/chapter06/patch.xml
+++ b/chapter06/patch.xml
@@ -3,13 +3,14 @@
<!ENTITY % general-entities SYSTEM "../general.ent">
%general-entities;
]>
-<sect1 id="ch-system-patch" xreflabel="Patch" role="wrap">
+<sect1 id="ch-system-patch" role="wrap">
<title>Patch-&patch-version;</title>
<?dbhtml filename="patch.html"?>
<indexterm zone="ch-system-patch"><primary sortas="a-Patch">Patch</primary></indexterm>
<sect2 role="package"><title/>
+<para>The Patch package contains a program for modifying files.</para>
<segmentedlist>
<segtitle>&buildtime;</segtitle>
@@ -17,12 +18,19 @@
<seglistitem><seg>0.1 SBU</seg><seg>1.9 MB</seg></seglistitem>
</segmentedlist>
+<segmentedlist>
+<segtitle>Patch installation depends on</segtitle>
+<seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
+GCC, Glibc, Grep, Make, and Sed</seg></seglistitem>
+</segmentedlist>
</sect2>
<sect2 role="installation">
<title>Installation of Patch</title>
-<para>Prepare Patch for compilation:</para>
+<para>Prepare Patch for compilation. The preprocessor flag
+<parameter>-D_GNU_SOURCE</parameter> is only needed on the PowerPC
+platform. It can be left it out on other architectures:</para>
<screen><userinput>CPPFLAGS=-D_GNU_SOURCE ./configure --prefix=/usr</userinput></screen>
@@ -30,7 +38,9 @@
<screen><userinput>make</userinput></screen>
-<para>Now install it:</para>
+<para>This package does not come with a test suite.</para>
+
+<para>Install the package:</para>
<screen><userinput>make install</userinput></screen>
@@ -39,8 +49,27 @@
<sect2 id="contents-patch" role="content"><title>Contents of Patch</title>
-<para>See testing</para>
+<segmentedlist>
+<segtitle>Installed program</segtitle>
+<seglistitem><seg>patch</seg></seglistitem>
+</segmentedlist>
+
+<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
+<?dbfo list-presentation="list"?>
+
+<varlistentry id="patch">
+<term><command>patch</command></term>
+<listitem>
+<para>Modifies files according to a patch file. A patch file is normally
+a difference listing created with the <command>diff</command> program. By applying
+these differences to the original files, <command>patch</command> creates the patched
+versions.</para>
+<indexterm zone="ch-system-patch patch"><primary sortas="b-patch">patch</primary></indexterm>
+</listitem>
+</varlistentry>
+</variablelist>
</sect2>
</sect1>
+