From 95058604071cd2d13166101b8eb1e1bc30c47d15 Mon Sep 17 00:00:00 2001 From: Jeremy Huntwork Date: Wed, 23 Apr 2008 16:32:52 +0000 Subject: Fixed behavior in kbd where man pages for optional programs that aren't built are installed. Thanks Greg Schafer for spotting this. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8537 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter01/changelog.xml | 6 ++++++ chapter06/kbd.xml | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 6c2c58080..aea7cd4b3 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -39,6 +39,12 @@ 2008-04-23 + + [jhuntwork] - Fixed behavior in kbd where man pages + for optional programs that aren't built are installed. + Thanks Greg Schafer for spotting this. + + [jhuntwork] - Fixed kbd to install getkeycodes, setkeycodes and resizecons. Also moved loadkeys to /bin from diff --git a/chapter06/kbd.xml b/chapter06/kbd.xml index 235ad4990..af999a6eb 100644 --- a/chapter06/kbd.xml +++ b/chapter06/kbd.xml @@ -60,6 +60,14 @@ sed -i -e '1i KEYCODES_PROGS = @KEYCODES_PROGS@' \ -e '1i RESIZECONS_PROGS = @RESIZECONS_PROGS@' src/Makefile.in + This version of Kbd will also install man pages for optional programs + even if we don't use the --enable-optional-progs + option to build them. Fix this behavior: + +var=OPTIONAL_PROGS +sed -i "s/ifdef $var/ifeq (\$($var),yes)/" man/Makefile.in +unset var + Prepare Kbd for compilation: ./configure --prefix=/usr --datadir=/lib/kbd -- cgit v1.2.3-54-g00ecf