source: chapter06/patch.xml@ c18e731

6.1 6.1.1
Last change on this file since c18e731 was c18e731, checked in by Jeremy Huntwork <jhuntwork@…>, 19 years ago

Merged changes to patch description from trunk

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

  • Property mode set to 100644
File size: 2.4 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 or creating files by
14applying a <quote>patch</quote> file typically created by the diff program.</para>
15
16<segmentedlist>
17<segtitle>&buildtime;</segtitle>
18<segtitle>&diskspace;</segtitle>
19<seglistitem><seg>0.1 SBU</seg><seg>1.5 MB</seg></seglistitem>
20</segmentedlist>
21
22<segmentedlist>
23<segtitle>&dependencies;</segtitle>
24<seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
25GCC, Glibc, Grep, Make, and Sed</seg></seglistitem>
26</segmentedlist>
27</sect2>
28
29<sect2 role="installation">
30<title>Installation of Patch</title>
31
32<para>Prepare Patch for compilation. The preprocessor flag
33<parameter>-D_GNU_SOURCE</parameter> is only needed on the PowerPC
34platform. It can be left it out on other architectures:</para>
35
36<screen><userinput>CPPFLAGS=-D_GNU_SOURCE ./configure --prefix=/usr</userinput></screen>
37
38<para>Compile the package:</para>
39
40<screen><userinput>make</userinput></screen>
41
42<para>This package does not come with a test suite.</para>
43
44<para>Install the package:</para>
45
46<screen><userinput>make install</userinput></screen>
47
48</sect2>
49
50
51<sect2 id="contents-patch" role="content"><title>Contents of Patch</title>
52
53<segmentedlist>
54<segtitle>Installed program</segtitle>
55<seglistitem><seg>patch</seg></seglistitem>
56</segmentedlist>
57
58<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
59<?dbfo list-presentation="list"?>
60<?dbhtml list-presentation="table"?>
61
62<varlistentry id="patch">
63<term><command>patch</command></term>
64<listitem>
65<para>Modifies files according to a patch file. A patch file is normally
66a difference listing created with the <command>diff</command> program. By applying
67these differences to the original files, <command>patch</command> creates the patched
68versions.</para>
69<indexterm zone="ch-system-patch patch"><primary sortas="b-patch">patch</primary></indexterm>
70</listitem>
71</varlistentry>
72</variablelist>
73
74</sect2>
75
76</sect1>
77
Note: See TracBrowser for help on using the repository browser.