source: chapter05/grep.xml@ 2b6c440

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

Merged stuff from RAQ2 in chapter05.

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

  • Property mode set to 100644
File size: 2.4 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-tools-grep" role="wrap">
7<title>Grep-&grep-version;</title>
8<?dbhtml filename="grep.html"?>
9
10<indexterm zone="ch-tools-grep">
11<primary sortas="a-Grep">Grep</primary>
12<secondary>tools</secondary></indexterm>
13
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])"/>
16
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>
22
23<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/grep.xml" xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/>
24
25</sect2>
26
27<sect2 role="installation">
28<title>Installation of Grep</title>
29
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
34<para>Prepare Grep for compilation:</para>
35
36<screen><userinput>./configure --prefix=/tools \
37 --disable-perl-regexp --with-included-regex</userinput></screen>
38
39<para>The meaning of the configure options:</para>
40
41<variablelist>
42<varlistentry>
43<term><parameter>--disable-perl-regexp</parameter></term>
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>
49</varlistentry>
50
51<varlistentry>
52<term><parameter>--with-included-regex</parameter></term>
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>
56</varlistentry>
57</variablelist>
58
59<para>Compile the package:</para>
60
61<screen><userinput>make</userinput></screen>
62
63<para>To test the results, issue: <userinput>make
64check</userinput>.</para>
65
66<para>Install the package:</para>
67
68<screen><userinput>make install</userinput></screen>
69
70</sect2>
71
72<sect2 role="content"><title/>
73<para>Details on this package are located in <xref
74linkend="contents-grep" role="."/></para>
75</sect2>
76
77</sect1>
78
Note: See TracBrowser for help on using the repository browser.