diff options
author | Alex Gronenwoud <alex@linuxfromscratch.org> | 2003-11-01 22:31:50 +0000 |
---|---|---|
committer | Alex Gronenwoud <alex@linuxfromscratch.org> | 2003-11-01 22:31:50 +0000 |
commit | 73aedd1d35747ff2fad4ddf514dca810721a612a (patch) | |
tree | d05f8b503f210d7248c2b2abea9e5528fc04d90a /chapter06/gawk.xml | |
parent | 0b400add2ba87352e955326bcb931e53864cc2ae (diff) |
Merging caption and installation sections for all packages in chapters 5 and 6.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3052 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/gawk.xml')
-rw-r--r-- | chapter06/gawk.xml | 52 |
1 files changed, 51 insertions, 1 deletions
diff --git a/chapter06/gawk.xml b/chapter06/gawk.xml index 15d58ccf9..e1989f21c 100644 --- a/chapter06/gawk.xml +++ b/chapter06/gawk.xml @@ -7,7 +7,57 @@ Estimated required disk space: &gawk-compsize;</screen> &aa-gawk-shortdesc; &aa-gawk-dep; -&c6-gawk-inst; + +<sect2><title> </title><para> </para></sect2> + +<sect2> +<title>Installation of Gawk</title> + +<para>First apply a patch to fix the following issues:</para> + +<itemizedlist> +<listitem><para>Gawk's default location for some of its executables is +<filename>$prefix/libexec/awk</filename>. This location doesn't comply +with the FHS, which never even mentions a directory called +<filename>libexec</filename>. The patch makes it possible to pass a +<emphasis>--libexecdir</emphasis> switch to the configure script, so that we +can use a more appropriate location for the <userinput>grcat</userinput> and +<userinput>pwcat</userinput> binaries: +<filename>/usr/bin</filename>.</para></listitem> + +<listitem><para>Gawk's default data directory is +<filename>$prefix/share/awk</filename>. But package-specific +directories should be named using the package name and version number +(for example: <filename>gawk-7.7.2.</filename>) 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 +<filename>$prefix/share/gawk-&gawk-version;</filename>.</para></listitem> + +<listitem><para>The patch also ensures that this data directory, including its +contents, is removed on a <emphasis>make uninstall</emphasis>.</para></listitem> +</itemizedlist> + +<screen><userinput>patch -Np1 -i ../&gawk-patch;</userinput></screen> + +<para>Now prepare Gawk for compilation:</para> + +<screen><userinput>./configure --prefix=/usr --libexecdir=/usr/bin</userinput></screen> + +<para>Compile the package:</para> + +<screen><userinput>make</userinput></screen> + +<para>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:</para> + +<screen><userinput>make check</userinput></screen> + +<para>And install the package:</para> + +<screen><userinput>make install</userinput></screen> + +</sect2> </sect1> |