source: chapter06/patch.xml@ a9fde34e

Last change on this file since a9fde34e was 6a0e6f3, checked in by Matthew Burgess <matthew@…>, 20 years ago
  • Remove the spurious <info> tags that I thought were necessary but evidently aren't

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/LFS-RNG/BOOK@4387 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 section [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
6<section xmlns="http://docbook.org/docbook-ng"
7 xml:id="ch-system-patch" xreflabel="Patch" role="wrap">
8<title>Patch-&patch-version;</title>
9<?dbhtml filename="patch.html"?>
10
11<indexterm zone="ch-system-patch"><primary sortas="a-Patch">Patch</primary></indexterm>
12
13<section role="package"><title/>
14<para>The Patch package contains a program for modifying files.</para>
15
16<segmentedlist>
17<segtitle>&buildtime;</segtitle>
18<segtitle>&diskspace;</segtitle>
19<seglistitem><seg>0.1 SBU</seg><seg>1.9 MB</seg></seglistitem>
20</segmentedlist>
21
22<segmentedlist>
23<segtitle>Patch installation depends on</segtitle>
24<seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
25GCC, Glibc, Grep, Make, Sed</seg></seglistitem>
26</segmentedlist>
27</section>
28
29<section 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 PowerPCs, on other
34machines you can leave it out):</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>Now install it:</para>
43
44<screen><userinput>make install</userinput></screen>
45
46</section>
47
48
49<section xml:id="contents-patch" role="content"><title>Contents of Patch</title>
50
51<segmentedlist>
52<segtitle>Installed program</segtitle>
53<seglistitem><seg>patch</seg></seglistitem>
54</segmentedlist>
55
56<variablelist><title>Short descriptions</title>
57
58<varlistentry xml:id="patch">
59<term><command>patch</command></term>
60<listitem>
61<indexterm zone="ch-system-patch patch"><primary sortas="b-patch">patch</primary></indexterm>
62<para>modifies files according to a patch file.
63A patch file normally is a difference listing created with the <command>diff</command> program.
64By applying these differences to the original files, <command>patch</command> creates the patched
65versions. Using patches instead of entirely new tarballs to keep your sources
66up-to-date can save you a lot of download time.</para>
67</listitem>
68</varlistentry>
69</variablelist>
70
71</section>
72
73</section>
Note: See TracBrowser for help on using the repository browser.