Installing Gawk-&gawk-version;
Estimated build time: &gawk-time;
Estimated required disk space: &gawk-compsize;
&aa-gawk-shortdesc;
&aa-gawk-desc;
Installation of Gawk
First apply a patch to fix the following issues:
Gawk's default location for some of its executables is
$prefix/libexec/awk. This location doesn't comply
with the FHS, which never even mentions a directory called
libexec. The patch makes it possible to pass a
--libexecdir switch to the configure script, so that we
can use a more appropriate location for the grcat and
pwcat binaries:
/usr/lib/gawk.
Gawk's default data directory is
$prefix/share/awk. But package-specific
directories should be named using the package name and version number
(for example: gawk-7.7.2.) and not simply the package
name, as there may be different versions of a package installed on the system.
The patch changes the name of the data directory to the correct
$prefix/share/gawk-&gawk-version;.
The patch also ensures that this data directory, including its
contents, is removed on a make uninstall.
patch -Np1 -i ../&gawk-patch;
Now prepare Gawk for compilation:
./configure --prefix=/usr --libexecdir=/usr/lib/gawk
Compile the package:
make
This package has a test suite available which can perform a number of
checks to ensure it built correctly. Should you choose to run it, the
following command will do so:
make check
And install the package:
make install