source: chapter06/patch.xml@ a52c8c2

Last change on this file since a52c8c2 was a52c8c2, checked in by Manuel Canales Esparcia <manuel@…>, 19 years ago

Small PPC fixes.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multi-arch/BOOK@4453 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.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:</para>
32
33<!-- This is temporally until can test if there is other ways to do it -->
34
35<screen arch="x86"><userinput>./configure --prefix=/tools</userinput></screen>
36
37<screen arch="raq2"><userinput>./configure --prefix=/tools</userinput></screen>
38
39<screen arch="ppc"><userinput>CPPFLAGS=-D_GNU_SOURCE ./configure --prefix=/tools</userinput></screen>
40
41<para>Compile the package:</para>
42
43<screen><userinput>make</userinput></screen>
44
45<para>This package does not come with a test suite.</para>
46
47<para>Install the package:</para>
48
49<screen><userinput>make install</userinput></screen>
50
51</sect2>
52
53
54<sect2 id="contents-patch" role="content"><title>Contents of Patch</title>
55
56<segmentedlist>
57<segtitle>Installed program</segtitle>
58<seglistitem><seg>patch</seg></seglistitem>
59</segmentedlist>
60
61<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
62<?dbfo list-presentation="list"?>
63
64<varlistentry id="patch">
65<term><command>patch</command></term>
66<listitem>
67<para>Modifies files according to a patch file. A patch file is normally
68a difference listing created with the <command>diff</command> program. By applying
69these differences to the original files, <command>patch</command> creates the patched
70versions.</para>
71<indexterm zone="ch-system-patch patch"><primary sortas="b-patch">patch</primary></indexterm>
72</listitem>
73</varlistentry>
74</variablelist>
75
76</sect2>
77
78</sect1>
79
Note: See TracBrowser for help on using the repository browser.