Tagging 1.99.1
[linux_from_scratch.git] / BOOK / chapter06 / patch.xml
blob57bb23a7a6519295bee3c74128aba096e7b4b504
1 <sect1 id="ch-system-patch" xreflabel="Patch">
2 <title>Installing Patch-&patch-version;</title>
3 <?dbhtml filename="patch.html" dir="chapter06"?>
5 <para>The Patch package contains a program for modifying files.</para>
7 <screen>&buildtime; &patch-time;
8 &diskspace; &patch-compsize;</screen>
10 &aa-patch-down;
11 &aa-patch-dep;
13 <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
15 <sect2>
16 <title>Installation of Patch</title>
18 <para>Prepare Patch for compilation:</para>
20 <screen><userinput>CPPFLAGS=-D_GNU_SOURCE ./configure --prefix=/usr</userinput></screen>
22 <para>Again, the preprocessor flag <emphasis>-D_GNU_SOURCE</emphasis> is only
23 needed on the PowerPC platform. On other architectures you can leave it out.</para>
25 <para>Compile the package:</para>
27 <screen><userinput>make</userinput></screen>
29 <para>And install it:</para>
31 <screen><userinput>make install</userinput></screen>
33 </sect2>
35 &aa-patch-shortdesc;
36 &aa-patch-desc;
38 </sect1>