From a20bfb4974c368cc695108d03dbfbddd423b28d0 Mon Sep 17 00:00:00 2001 From: Gerard Beekmans Date: Tue, 4 Feb 2003 05:18:40 +0000 Subject: updated findutils + gawk patch explanations git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2423 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/gawk-inst.xml | 33 +++++++++++++++++++++++++++------ 1 file changed, 27 insertions(+), 6 deletions(-) (limited to 'chapter06/gawk-inst.xml') diff --git a/chapter06/gawk-inst.xml b/chapter06/gawk-inst.xml index d426e38a3..2c5d72266 100644 --- a/chapter06/gawk-inst.xml +++ b/chapter06/gawk-inst.xml @@ -3,15 +3,36 @@ Installation of Gawk -This package requires its patch to be applied before you can -install it: +Before installing the Gawk package you have to apply a patch to it +which fixes the following issues: + + +Gawk's default location for libexecdir is $prefix/libexecdir/awk. This location doesn't +comply with FHS (FHS never mentions a directory called +libexecdir). + +The patch allows us to pass +--libexecdir 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 (/usr/bin in +the book). + +The default data directory for gawk is $prefix/share/awk. A package specific +directory should be named after the package and the version (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 +$prefix/share/gawk-3.1.1 to be more +correct. + +The patch ensures that this directory ($prefix/share/gawk-3.1.1) is removed along +with its contents on a make uninstall. + patch -Np1 -i ../gawk-&gawk-patch-version;.patch -This patch alters the code that determines the location of the -libexec directory. The patch will allow us to override it by passing ---libexecdir to the configure script. - Prepare Gawk to be compiled: ./configure --prefix=/usr --libexecdir=/usr/bin -- cgit v1.2.3-54-g00ecf