source: chapter06/patch.xml@ 9c9d585

Last change on this file since 9c9d585 was 1fe35e1, checked in by Matthew Burgess <matthew@…>, 20 years ago
  • (chapter06/*.xml) RELAX NG validation fixes

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

  • Property mode set to 100644
File size: 2.3 KB
RevLine 
[673b0d8]1<?xml version="1.0" encoding="ISO-8859-1"?>
[1fe35e1]2<!DOCTYPE section [
[673b0d8]3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
[1fe35e1]6<section xmlns="http://docbook.org/docbook-ng"
7 xml:id="ch-system-patch" xreflabel="Patch" role="wrap">
8<info><title>Patch-&patch-version;</title></info>
[673b0d8]9<?dbhtml filename="patch.html"?>
10
11<indexterm zone="ch-system-patch"><primary sortas="a-Patch">Patch</primary></indexterm>
[6370fa6]12
[1fe35e1]13<section role="package"><info><title/></info>
[5888299]14<para>The Patch package contains a program for modifying files.</para>
15
[a001133]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>
[673b0d8]21
[a001133]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>
[1fe35e1]27</section>
[3554fa3a]28
[1fe35e1]29<section role="installation">
30<info><title>Installation of Patch</title></info>
[73aedd1d]31
[673b0d8]32<para>Prepare Patch for compilation (the preprocessor flag
[8ad7980]33<parameter>-D_GNU_SOURCE</parameter> is only needed on PowerPCs, on other
[c3dc67c]34machines you can leave it out):</para>
[73aedd1d]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
[673b0d8]42<para>Now install it:</para>
[73aedd1d]43
44<screen><userinput>make install</userinput></screen>
45
[1fe35e1]46</section>
[6370fa6]47
[5888299]48
[1fe35e1]49<section xml:id="contents-patch" role="content"><info><title>Contents of Patch</title></info>
[673b0d8]50
[c6cb3aa]51<segmentedlist>
52<segtitle>Installed program</segtitle>
53<seglistitem><seg>patch</seg></seglistitem>
54</segmentedlist>
[6370fa6]55
[c6cb3aa]56<variablelist><title>Short descriptions</title>
[673b0d8]57
[1fe35e1]58<varlistentry xml:id="patch">
[b8a819f]59<term><command>patch</command></term>
[c6cb3aa]60<listitem>
[673b0d8]61<indexterm zone="ch-system-patch patch"><primary sortas="b-patch">patch</primary></indexterm>
[c6cb3aa]62<para>modifies files according to a patch file.
[8ad7980]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
[673b0d8]65versions. Using patches instead of entirely new tarballs to keep your sources
66up-to-date can save you a lot of download time.</para>
[c6cb3aa]67</listitem>
68</varlistentry>
69</variablelist>
[673b0d8]70
[1fe35e1]71</section>
[673b0d8]72
[1fe35e1]73</section>
Note: See TracBrowser for help on using the repository browser.