source: chapter06/patch.xml@ d38b5dd

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

Tags corrections, Chapter 6.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/testing/BOOK@4132 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" 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, and 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. It can be left it out on other architectures:</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>This package does not come with a test suite.</para>
42
43<para>Install the package:</para>
44
45<screen><userinput>make install</userinput></screen>
46
47</sect2>
48
49
50<sect2 id="contents-patch" role="content"><title>Contents of Patch</title>
51
52<segmentedlist>
53<segtitle>Installed program</segtitle>
54<seglistitem><seg>patch</seg></seglistitem>
55</segmentedlist>
56
57<variablelist><bridgehead renderas="sect3">Short descriptions</bridgehead>
58<?dbfo list-presentation="list"?>
59
60<varlistentry id="patch">
61<term><command>patch</command></term>
62<listitem>
63<para>modifies files according to a patch file. A patch file is normally
64a difference listing created with the <command>diff</command> program. By applying
65these differences to the original files, <command>patch</command> creates the patched
66versions.</para>
67<indexterm zone="ch-system-patch patch"><primary sortas="b-patch">patch</primary></indexterm>
68</listitem>
69</varlistentry>
70</variablelist>
71
72</sect2>
73
74</sect1>
75
Note: See TracBrowser for help on using the repository browser.