gawk.xml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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. %general-entities;
  5. ]>
  6. <sect1 id="ch-system-gawk" role="wrap">
  7. <title>Gawk-&gawk-version;</title>
  8. <?dbhtml filename="gawk.html"?>
  9. <indexterm zone="ch-system-gawk"><primary sortas="a-Gawk">Gawk</primary></indexterm>
  10. <sect2 role="package"><title/>
  11. <para>The Gawk package contains programs for manipulating text files.</para>
  12. <segmentedlist>
  13. <segtitle>&buildtime;</segtitle>
  14. <segtitle>&diskspace;</segtitle>
  15. <seglistitem><seg>0.2 SBU</seg><seg>16.4 MB</seg></seglistitem>
  16. </segmentedlist>
  17. <segmentedlist>
  18. <segtitle>&dependencies;</segtitle>
  19. <seglistitem><seg>Bash, Binutils, Coreutils,
  20. Diffutils, GCC, Gettext, Glibc, Grep, Make, and Sed</seg></seglistitem>
  21. </segmentedlist>
  22. </sect2>
  23. <sect2 role="installation">
  24. <title>Installation of Gawk</title>
  25. <para>Under some circumstances, Gawk-&gawk-version; attempts to free a chunk
  26. of memory that was not allocated. This bug is fixed by the following patch:</para>
  27. <screen><userinput>patch -Np1 -i ../&gawk-segfault-patch;</userinput></screen>
  28. <para>Prepare Gawk for compilation:</para>
  29. <screen><userinput>./configure --prefix=/usr --libexecdir=/usr/lib</userinput></screen>
  30. <para>Due to a bug in the <command>./configure</command> script, Gawk fails
  31. to detect certain aspects of locale support in glibc. This
  32. bug leads to, e.g., Gettext testsuite failures. Work around this issue
  33. by appending the missing macro definitions to <filename>config.h</filename>:</para>
  34. <screen><userinput>cat &gt;&gt;config.h &lt;&lt;"EOF"
  35. <literal>#define HAVE_LANGINFO_CODESET 1
  36. #define HAVE_LC_MESSAGES 1</literal>
  37. EOF</userinput></screen>
  38. <para>Compile the package:</para>
  39. <screen><userinput>make</userinput></screen>
  40. <para>To test the results, issue:
  41. <userinput>make check</userinput>.</para>
  42. <para>Install the package:</para>
  43. <screen><userinput>make install</userinput></screen>
  44. </sect2>
  45. <sect2 id="contents-gawk" role="content"><title>Contents of Gawk</title>
  46. <segmentedlist>
  47. <segtitle>Installed programs</segtitle>
  48. <seglistitem><seg>awk (link to gawk), gawk, gawk-&gawk-version;, grcat, igawk,
  49. pgawk, pgawk-&gawk-version;, and pwcat</seg></seglistitem>
  50. </segmentedlist>
  51. <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
  52. <?dbfo list-presentation="list"?>
  53. <?dbhtml list-presentation="table"?>
  54. <varlistentry id="awk">
  55. <term><command>awk</command></term>
  56. <listitem>
  57. <para>A link to <command>gawk</command></para>
  58. <indexterm zone="ch-system-gawk awk"><primary sortas="b-awk">awk</primary></indexterm>
  59. </listitem>
  60. </varlistentry>
  61. <varlistentry id="gawk">
  62. <term><command>gawk</command></term>
  63. <listitem>
  64. <para>A program for manipulating text files; it is the GNU
  65. implementation of <command>awk</command></para>
  66. <indexterm zone="ch-system-gawk gawk"><primary sortas="b-gawk">gawk</primary></indexterm>
  67. </listitem>
  68. </varlistentry>
  69. <varlistentry id="gawk-version">
  70. <term><command>gawk-&gawk-version;</command></term>
  71. <listitem>
  72. <para>A hard link to <command>gawk</command></para>
  73. <indexterm zone="ch-system-gawk gawk-version"><primary sortas="b-gawk-&gawk-version;">gawk-&gawk-version;</primary></indexterm>
  74. </listitem>
  75. </varlistentry>
  76. <varlistentry id="grcat">
  77. <term><command>grcat</command></term>
  78. <listitem>
  79. <para>Dumps the group database <filename>/etc/group</filename></para>
  80. <indexterm zone="ch-system-gawk grcat"><primary sortas="b-grcat">grcat</primary></indexterm>
  81. </listitem>
  82. </varlistentry>
  83. <varlistentry id="igawk">
  84. <term><command>igawk</command></term>
  85. <listitem>
  86. <para>Gives <command>gawk</command> the ability to include files</para>
  87. <indexterm zone="ch-system-gawk igawk"><primary sortas="b-igawk">igawk</primary></indexterm>
  88. </listitem>
  89. </varlistentry>
  90. <varlistentry id="pgawk">
  91. <term><command>pgawk</command></term>
  92. <listitem>
  93. <para>The profiling version of <command>gawk</command></para>
  94. <indexterm zone="ch-system-gawk pgawk"><primary sortas="b-pgawk">pgawk</primary></indexterm>
  95. </listitem>
  96. </varlistentry>
  97. <varlistentry id="pgawk-version">
  98. <term><command>pgawk-&gawk-version;</command></term>
  99. <listitem>
  100. <para>Hard link to <command>pgawk</command></para>
  101. <indexterm zone="ch-system-gawk pgawk-version"><primary sortas="b-pgawk-&gawk-version;">pgawk-&gawk-version;</primary></indexterm>
  102. </listitem>
  103. </varlistentry>
  104. <varlistentry id="pwcat">
  105. <term><command>pwcat</command></term>
  106. <listitem>
  107. <para>Dumps the password database <filename>/etc/passwd</filename></para>
  108. <indexterm zone="ch-system-gawk pwcat"><primary sortas="b-pwcat">pwcat</primary></indexterm>
  109. </listitem>
  110. </varlistentry>
  111. </variablelist>
  112. </sect2>
  113. </sect1>