source: chapter05/grep.xml@ b0d9ac6

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

Upgraded to DocBook 4.4 DTD

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

  • Property mode set to 100644
File size: 2.4 KB
RevLine 
[673b0d8]1<?xml version="1.0" encoding="ISO-8859-1"?>
[c2133bc]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
[673b0d8]3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
[9652249]6<sect1 id="ch-tools-grep" role="wrap">
[673b0d8]7<title>Grep-&grep-version;</title>
8<?dbhtml filename="grep.html"?>
[6370fa6]9
[673b0d8]10<indexterm zone="ch-tools-grep">
11<primary sortas="a-Grep">Grep</primary>
12<secondary>tools</secondary></indexterm>
[3554fa3a]13
[9652249]14<sect2 role="package"><title/>
15<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/grep.xml" xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
[673b0d8]16
[9652249]17<segmentedlist>
18<segtitle>&buildtime;</segtitle>
19<segtitle>&diskspace;</segtitle>
20<seglistitem><seg>0.1 SBU</seg><seg>5.8 MB</seg></seglistitem>
21</segmentedlist>
[673b0d8]22
[9652249]23<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/grep.xml" xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/>
[73aedd1d]24
[9652249]25</sect2>
[73aedd1d]26
[9652249]27<sect2 role="installation">
[73aedd1d]28<title>Installation of Grep</title>
29
[2b6c440]30<para arch="raq2">This patch updates config.guess and config.sub for RaQ2 servers.</para>
31
32<screen arch="raq2"><userinput>patch -Np1 -i ../grep-&grep-version;-raq2_config_update-1.patch</userinput></screen>
33
[d27a27b]34<para>Prepare Grep for compilation:</para>
[73aedd1d]35
36<screen><userinput>./configure --prefix=/tools \
[673b0d8]37 --disable-perl-regexp --with-included-regex</userinput></screen>
[73aedd1d]38
39<para>The meaning of the configure options:</para>
40
[9652249]41<variablelist>
42<varlistentry>
[574b0ea]43<term><parameter>--disable-perl-regexp</parameter></term>
[6e41459]44<listitem><para>This makes sure that the <command>grep</command>
45program does not get linked against a Perl Compatible Regular
46Expression (PCRE) library that may be present on the host and would
47not be available once we enter the chroot
48environment.</para></listitem>
[9652249]49</varlistentry>
50
51<varlistentry>
[574b0ea]52<term><parameter>--with-included-regex</parameter></term>
[6e41459]53<listitem><para>This ensures that Grep uses its internal regular
54expression code. Without this switch, Grep will use the code from
55Glibc, which is known to be buggy.</para></listitem>
[9652249]56</varlistentry>
57</variablelist>
[73aedd1d]58
[2256873]59<para>Compile the package:</para>
[73aedd1d]60
[b3adaba]61<screen><userinput>make</userinput></screen>
[73aedd1d]62
[6e41459]63<para>To test the results, issue: <userinput>make
64check</userinput>.</para>
[73aedd1d]65
[6e41459]66<para>Install the package:</para>
[73aedd1d]67
68<screen><userinput>make install</userinput></screen>
69
70</sect2>
[6370fa6]71
[9652249]72<sect2 role="content"><title/>
[c17fc85]73<para>Details on this package are located in <xref
74linkend="contents-grep" role="."/></para>
[0868461]75</sect2>
[5888299]76
[6370fa6]77</sect1>
[6e41459]78
Note: See TracBrowser for help on using the repository browser.