mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-20 14:07:39 +00:00
98ced7fdd1
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2539 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
52 lines
1.9 KiB
XML
52 lines
1.9 KiB
XML
<sect2><title> </title><para> </para></sect2>
|
|
|
|
<sect2>
|
|
<title>Installation of Gawk</title>
|
|
|
|
<para>Before installing the Gawk package you have to apply a patch,
|
|
which fixes the following issues:</para>
|
|
|
|
<itemizedlist>
|
|
<listitem><para>Gawk's default location for libexecdir is <filename
|
|
class="directory">$prefix/libexecdir/awk</filename>. This location doesn't
|
|
comply with FHS (which never mentions a directory called
|
|
libexecdir).</para></listitem>
|
|
|
|
<listitem><para>The patch allows us to pass
|
|
<emphasis>--libexecdir</emphasis> to the configure script (without gawk
|
|
tacking on /awk to the end), so that we can use a more appropriate location
|
|
for gawk's libexecdir (<filename class="directory">/usr/bin</filename> in
|
|
the book).</para></listitem>
|
|
|
|
<listitem><para>The default data directory for gawk is <filename
|
|
class="directory">$prefix/share/awk</filename>. A package specific
|
|
directory should be named using the package and version (like gawk-3.1.1
|
|
instead of awk) because there may be more than one awk interpreter on a
|
|
system (and more than one version of gawk). The patch changes this to
|
|
<filename class="directory">$prefix/share/gawk-3.1.1</filename> to be more
|
|
correct.</para></listitem>
|
|
|
|
<listitem><para>The patch ensures that this directory (<filename
|
|
class="directory">$prefix/share/gawk-3.1.1</filename>) is removed along
|
|
with its contents on a make uninstall.</para></listitem>
|
|
</itemizedlist>
|
|
|
|
<para><screen><userinput>patch -Np1 -i ../gawk-&gawk-patch-version;.patch</userinput></screen></para>
|
|
|
|
<para>Prepare Gawk to be compiled:</para>
|
|
|
|
<para><screen><userinput>./configure --prefix=/usr --libexecdir=/usr/bin</userinput></screen></para>
|
|
|
|
<para>Continue with compiling the package:</para>
|
|
|
|
<para><screen><userinput>make</userinput></screen></para>
|
|
|
|
<para>Finish installing the package:</para>
|
|
|
|
<para><screen><userinput>make install</userinput></screen></para>
|
|
|
|
<para><screen><userinput>rm /bin/awk</userinput></screen></para>
|
|
|
|
</sect2>
|
|
|