source: chapter06/patch.xml@ 3ed279f

6.0
Last change on this file since 3ed279f was 3ed279f, checked in by Manuel Canales Esparcia <manuel@…>, 20 years ago

Tags changes in the contents sections to make a better print output.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/testing/BOOK@4009 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 2.2 KB
Line 
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" role="wrap">
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<sect2 role="package"><title/>
13<para>The Patch package contains a program for modifying files.</para>
14
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>
20
21<segmentedlist>
22<segtitle>Patch installation depends on</segtitle>
23<seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
24GCC, Glibc, Grep, Make, Sed</seg></seglistitem>
25</segmentedlist>
26</sect2>
27
28<sect2 role="installation">
29<title>Installation of Patch</title>
30
31<para>Prepare Patch for compilation. The preprocessor flag
32<parameter>-D_GNU_SOURCE</parameter> is only needed on the PowerPC
33platform, on other architectures it can be left it out:</para>
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
41<para>Install the package:</para>
42
43<screen><userinput>make install</userinput></screen>
44
45</sect2>
46
47
48<sect2 id="contents-patch" role="content"><title>Contents of Patch</title>
49
50<segmentedlist>
51<segtitle>Installed program</segtitle>
52<seglistitem><seg>patch</seg></seglistitem>
53</segmentedlist>
54
55<variablelist><bridgehead renderas="sect3">Short descriptions</bridgehead>
56<?dbfo list-presentation="list"?>
57
58<varlistentry id="patch">
59<term><command>patch</command></term>
60<listitem>
61<para>modifies files according to a patch file. A patch file normally
62is a difference listing created with the <command>diff</command> program. By applying
63these differences to the original files, <command>patch</command> creates the patched
64versions.</para>
65<indexterm zone="ch-system-patch patch"><primary sortas="b-patch">patch</primary></indexterm>
66</listitem>
67</varlistentry>
68</variablelist>
69
70</sect2>
71
72</sect1>
73
Note: See TracBrowser for help on using the repository browser.