%general-entities; ]> Grep-&grep-version; Grep tools <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/grep.xml" xpointer="xpointer(/sect1/sect2[1]/para[1])"/> <segmentedlist> <segtitle>&buildtime;</segtitle> <segtitle>&diskspace;</segtitle> <seglistitem><seg>0.1 SBU</seg><seg>5.8 MB</seg></seglistitem> </segmentedlist> <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/grep.xml" xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/> </sect2> <sect2 role="installation"> <title>Installation of Grep This patch updates config.guess and config.sub for RaQ2 servers. patch -Np1 -i ../grep-&grep-version;-raq2_config_update-1.patch Prepare Grep for compilation: ./configure --prefix=/tools \ --disable-perl-regexp --with-included-regex The meaning of the configure options: --disable-perl-regexp This makes sure that the grep program does not get linked against a Perl Compatible Regular Expression (PCRE) library that may be present on the host and would not be available once we enter the chroot environment. --with-included-regex This ensures that Grep uses its internal regular expression code. Without this switch, Grep will use the code from Glibc, which is known to be buggy. Compile the package: make To test the results, issue: make check. Install the package: make install <para>Details on this package are located in <xref linkend="contents-grep" role="."/></para> </sect2> </sect1>