[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[73c180db] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[673b0d8] | 4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
[73c180db] | 7 |
|
---|
[81fd230] | 8 | <sect1 id="ch-system-gawk" role="wrap">
|
---|
[73c180db] | 9 | <?dbhtml filename="gawk.html"?>
|
---|
| 10 |
|
---|
| 11 | <title>Gawk-&gawk-version;</title>
|
---|
| 12 |
|
---|
| 13 | <indexterm zone="ch-system-gawk">
|
---|
| 14 | <primary sortas="a-Gawk">Gawk</primary>
|
---|
| 15 | </indexterm>
|
---|
| 16 |
|
---|
| 17 | <sect2 role="package">
|
---|
| 18 | <title/>
|
---|
[673b0d8] | 19 |
|
---|
[73c180db] | 20 | <para>The Gawk package contains programs for manipulating text files.</para>
|
---|
[9602db22] | 21 |
|
---|
[73c180db] | 22 | <segmentedlist>
|
---|
| 23 | <segtitle>&buildtime;</segtitle>
|
---|
| 24 | <segtitle>&diskspace;</segtitle>
|
---|
[5888299] | 25 |
|
---|
[73c180db] | 26 | <seglistitem>
|
---|
| 27 | <seg>0.2 SBU</seg>
|
---|
| 28 | <seg>16.4 MB</seg>
|
---|
| 29 | </seglistitem>
|
---|
| 30 | </segmentedlist>
|
---|
[a001133] | 31 |
|
---|
[73c180db] | 32 | <segmentedlist>
|
---|
| 33 | <segtitle>&dependencies;</segtitle>
|
---|
[73aedd1d] | 34 |
|
---|
[73c180db] | 35 | <seglistitem>
|
---|
| 36 | <seg>Bash, Binutils, Coreutils, Diffutils, GCC, Gettext, Glibc,
|
---|
| 37 | Grep, Make, Patch, and Sed</seg>
|
---|
| 38 | </seglistitem>
|
---|
| 39 | </segmentedlist>
|
---|
[73aedd1d] | 40 |
|
---|
[73c180db] | 41 | </sect2>
|
---|
| 42 |
|
---|
| 43 | <sect2 role="installation">
|
---|
| 44 | <title>Installation of Gawk</title>
|
---|
| 45 |
|
---|
| 46 | <para>Under some circumstances, Gawk-&gawk-version; attempts to free a
|
---|
| 47 | chunk of memory that was not allocated. This bug is fixed by the following
|
---|
| 48 | patch:</para>
|
---|
[ed393ba] | 49 |
|
---|
| 50 | <screen><userinput>patch -Np1 -i ../&gawk-segfault-patch;</userinput></screen>
|
---|
| 51 |
|
---|
[73c180db] | 52 | <para>Prepare Gawk for compilation:</para>
|
---|
[c1b2c648] | 53 |
|
---|
| 54 | <screen><userinput>./configure --prefix=/usr --libexecdir=/usr/lib</userinput></screen>
|
---|
[73aedd1d] | 55 |
|
---|
[73c180db] | 56 | <para>Due to a bug in the <command>configure</command> script, Gawk fails
|
---|
| 57 | to detect certain aspects of locale support in Glibc. This bug leads to,
|
---|
| 58 | e.g., Gettext testsuite failures. Work around this issue by appending the
|
---|
| 59 | missing macro definitions to <filename>config.h</filename>:</para>
|
---|
[ed393ba] | 60 |
|
---|
[46a2e9c] | 61 | <screen><userinput>cat >>config.h <<"EOF"
|
---|
| 62 | <literal>#define HAVE_LANGINFO_CODESET 1
|
---|
| 63 | #define HAVE_LC_MESSAGES 1</literal>
|
---|
| 64 | EOF</userinput></screen>
|
---|
[ed393ba] | 65 |
|
---|
[73c180db] | 66 | <para>Compile the package:</para>
|
---|
[73aedd1d] | 67 |
|
---|
| 68 | <screen><userinput>make</userinput></screen>
|
---|
| 69 |
|
---|
[73c180db] | 70 | <para>To test the results, issue:
|
---|
| 71 | <userinput>make check</userinput>.</para>
|
---|
[73aedd1d] | 72 |
|
---|
[73c180db] | 73 | <para>Install the package:</para>
|
---|
[73aedd1d] | 74 |
|
---|
| 75 | <screen><userinput>make install</userinput></screen>
|
---|
| 76 |
|
---|
[73c180db] | 77 | </sect2>
|
---|
| 78 |
|
---|
| 79 | <sect2 id="contents-gawk" role="content">
|
---|
| 80 | <title>Contents of Gawk</title>
|
---|
| 81 |
|
---|
| 82 | <segmentedlist>
|
---|
| 83 | <segtitle>Installed programs</segtitle>
|
---|
| 84 |
|
---|
| 85 | <seglistitem>
|
---|
| 86 | <seg>awk (link to gawk), gawk, gawk-&gawk-version;, grcat, igawk, pgawk,
|
---|
| 87 | pgawk-&gawk-version;, and pwcat</seg>
|
---|
| 88 | </seglistitem>
|
---|
| 89 | </segmentedlist>
|
---|
| 90 |
|
---|
| 91 | <variablelist>
|
---|
| 92 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 93 | <?dbfo list-presentation="list"?>
|
---|
| 94 | <?dbhtml list-presentation="table"?>
|
---|
| 95 |
|
---|
| 96 | <varlistentry id="awk">
|
---|
| 97 | <term><command>awk</command></term>
|
---|
| 98 | <listitem>
|
---|
| 99 | <para>A link to <command>gawk</command></para>
|
---|
| 100 | <indexterm zone="ch-system-gawk awk">
|
---|
| 101 | <primary sortas="b-awk">awk</primary>
|
---|
| 102 | </indexterm>
|
---|
| 103 | </listitem>
|
---|
| 104 | </varlistentry>
|
---|
| 105 |
|
---|
| 106 | <varlistentry id="gawk">
|
---|
| 107 | <term><command>gawk</command></term>
|
---|
| 108 | <listitem>
|
---|
| 109 | <para>A program for manipulating text files; it is the GNU
|
---|
| 110 | implementation of <command>awk</command></para>
|
---|
| 111 | <indexterm zone="ch-system-gawk gawk">
|
---|
| 112 | <primary sortas="b-gawk">gawk</primary>
|
---|
| 113 | </indexterm>
|
---|
| 114 | </listitem>
|
---|
| 115 | </varlistentry>
|
---|
| 116 |
|
---|
| 117 | <varlistentry id="gawk-version">
|
---|
| 118 | <term><command>gawk-&gawk-version;</command></term>
|
---|
| 119 | <listitem>
|
---|
| 120 | <para>A hard link to <command>gawk</command></para>
|
---|
| 121 | <indexterm zone="ch-system-gawk gawk-version">
|
---|
| 122 | <primary sortas="b-gawk-&gawk-version;">gawk-&gawk-version;</primary>
|
---|
| 123 | </indexterm>
|
---|
| 124 | </listitem>
|
---|
| 125 | </varlistentry>
|
---|
| 126 |
|
---|
| 127 | <varlistentry id="grcat">
|
---|
| 128 | <term><command>grcat</command></term>
|
---|
| 129 | <listitem>
|
---|
| 130 | <para>Dumps the group database <filename>/etc/group</filename></para>
|
---|
| 131 | <indexterm zone="ch-system-gawk grcat">
|
---|
| 132 | <primary sortas="b-grcat">grcat</primary>
|
---|
| 133 | </indexterm>
|
---|
| 134 | </listitem>
|
---|
| 135 | </varlistentry>
|
---|
| 136 |
|
---|
| 137 | <varlistentry id="igawk">
|
---|
| 138 | <term><command>igawk</command></term>
|
---|
| 139 | <listitem>
|
---|
| 140 | <para>Gives <command>gawk</command> the ability to include files</para>
|
---|
| 141 | <indexterm zone="ch-system-gawk igawk">
|
---|
| 142 | <primary sortas="b-igawk">igawk</primary>
|
---|
| 143 | </indexterm>
|
---|
| 144 | </listitem>
|
---|
| 145 | </varlistentry>
|
---|
| 146 |
|
---|
| 147 | <varlistentry id="pgawk">
|
---|
| 148 | <term><command>pgawk</command></term>
|
---|
| 149 | <listitem>
|
---|
| 150 | <para>The profiling version of <command>gawk</command></para>
|
---|
| 151 | <indexterm zone="ch-system-gawk pgawk">
|
---|
| 152 | <primary sortas="b-pgawk">pgawk</primary>
|
---|
| 153 | </indexterm>
|
---|
| 154 | </listitem>
|
---|
| 155 | </varlistentry>
|
---|
| 156 |
|
---|
| 157 | <varlistentry id="pgawk-version">
|
---|
| 158 | <term><command>pgawk-&gawk-version;</command></term>
|
---|
| 159 | <listitem>
|
---|
| 160 | <para>Hard link to <command>pgawk</command></para>
|
---|
| 161 | <indexterm zone="ch-system-gawk pgawk-version">
|
---|
| 162 | <primary sortas="b-pgawk-&gawk-version;">pgawk-&gawk-version;</primary>
|
---|
| 163 | </indexterm>
|
---|
| 164 | </listitem>
|
---|
| 165 | </varlistentry>
|
---|
| 166 |
|
---|
| 167 | <varlistentry id="pwcat">
|
---|
| 168 | <term><command>pwcat</command></term>
|
---|
| 169 | <listitem>
|
---|
| 170 | <para>Dumps the password database <filename>/etc/passwd</filename></para>
|
---|
| 171 | <indexterm zone="ch-system-gawk pwcat">
|
---|
| 172 | <primary sortas="b-pwcat">pwcat</primary>
|
---|
| 173 | </indexterm>
|
---|
| 174 | </listitem>
|
---|
| 175 | </varlistentry>
|
---|
| 176 |
|
---|
| 177 | </variablelist>
|
---|
| 178 |
|
---|
| 179 | </sect2>
|
---|
[673b0d8] | 180 |
|
---|
| 181 | </sect1>
|
---|