source: chapter06/patch.xml@ fc1024a

6.1 6.1.1
Last change on this file since fc1024a was fc1024a, checked in by Archaic <archaic@…>, 19 years ago

Updated all build sizes. (merged from trunk r5916, r5917, r5918, and r5972)

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

  • Property mode set to 100644
File size: 2.3 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/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.5 MB</seg></seglistitem>
19</segmentedlist>
20
21<segmentedlist>
22<segtitle>&dependencies;</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<?dbhtml list-presentation="table"?>
60
61<varlistentry id="patch">
62<term><command>patch</command></term>
63<listitem>
64<para>Modifies files according to a patch file. A patch file is normally
65a difference listing created with the <command>diff</command> program. By applying
66these differences to the original files, <command>patch</command> creates the patched
67versions.</para>
68<indexterm zone="ch-system-patch patch"><primary sortas="b-patch">patch</primary></indexterm>
69</listitem>
70</varlistentry>
71</variablelist>
72
73</sect2>
74
75</sect1>
76
Note: See TracBrowser for help on using the repository browser.