grep.xml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. <!ENTITY % patches-entities SYSTEM "../patches.ent">
  5. %general-entities;
  6. %patches-entities;
  7. ]>
  8. <sect1 id="ch-tools-grep" role="wrap">
  9. <title>Grep-&grep-version;</title>
  10. <?dbhtml filename="grep.html"?>
  11. <indexterm zone="ch-tools-grep">
  12. <primary sortas="a-Grep">Grep</primary>
  13. <secondary>tools</secondary></indexterm>
  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. <segmentedlist>
  17. <segtitle>&buildtime;</segtitle>
  18. <segtitle>&diskspace;</segtitle>
  19. <seglistitem><seg>0.1 SBU</seg><seg>4.5 MB</seg></seglistitem>
  20. </segmentedlist>
  21. <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/grep.xml" xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/>
  22. </sect2>
  23. <sect2 role="installation">
  24. <title>Installation of Grep</title>
  25. <para>Prepare Grep for compilation:</para>
  26. <screen><userinput>./configure --prefix=/tools \
  27. --disable-perl-regexp --with-included-regex</userinput></screen>
  28. <para>The meaning of the configure options:</para>
  29. <variablelist>
  30. <varlistentry>
  31. <term><parameter>--disable-perl-regexp</parameter></term>
  32. <listitem><para>This makes sure that the <command>grep</command>
  33. program does not get linked against a Perl Compatible Regular
  34. Expression (PCRE) library that may be present on the host and would
  35. not be available once we enter the chroot
  36. environment.</para></listitem>
  37. </varlistentry>
  38. <varlistentry>
  39. <term><parameter>--with-included-regex</parameter></term>
  40. <listitem><para>This ensures that Grep uses its internal regular
  41. expression code. Without this switch, Grep will use the code from
  42. Glibc, which is known to be buggy.</para></listitem>
  43. </varlistentry>
  44. </variablelist>
  45. <para>Compile the package:</para>
  46. <screen><userinput>make</userinput></screen>
  47. <para>To test the results, issue: <userinput>make
  48. check</userinput>.</para>
  49. <para>Install the package:</para>
  50. <screen><userinput>make install</userinput></screen>
  51. </sect2>
  52. <sect2 role="content"><title/>
  53. <para>Details on this package are located in <xref
  54. linkend="contents-grep" role="."/></para>
  55. </sect2>
  56. </sect1>