Author: jhuntwork
Date: 2008-04-23 10:32:52 -0600 (Wed, 23 Apr 2008)
New Revision: 8537

Modified:
   trunk/BOOK/chapter01/changelog.xml
   trunk/BOOK/chapter06/kbd.xml
Log:
Fixed behavior in kbd where man pages for optional programs that aren't built
are installed. Thanks Greg Schafer for spotting this.



Modified: trunk/BOOK/chapter01/changelog.xml
===================================================================
--- trunk/BOOK/chapter01/changelog.xml  2008-04-23 12:46:41 UTC (rev 8536)
+++ trunk/BOOK/chapter01/changelog.xml  2008-04-23 16:32:52 UTC (rev 8537)
@@ -39,6 +39,12 @@
     <listitem>
       <para>2008-04-23</para>
       <itemizedlist>
+       <listitem>
+         <para>[jhuntwork] - Fixed behavior in kbd where man pages
+          for optional programs that aren't built are installed.
+         Thanks Greg Schafer for spotting this.
+         </para>
+       </listitem>
         <listitem>
           <para>[jhuntwork] - Fixed kbd to install getkeycodes,
          setkeycodes and resizecons. Also moved loadkeys to /bin from

Modified: trunk/BOOK/chapter06/kbd.xml
===================================================================
--- trunk/BOOK/chapter06/kbd.xml        2008-04-23 12:46:41 UTC (rev 8536)
+++ trunk/BOOK/chapter06/kbd.xml        2008-04-23 16:32:52 UTC (rev 8537)
@@ -60,6 +60,14 @@
 <screen><userinput remap="pre">sed -i -e '1i KEYCODES_PROGS = 
@KEYCODES_PROGS@' \
     -e '1i RESIZECONS_PROGS = @RESIZECONS_PROGS@' 
src/Makefile.in</userinput></screen>
 
+    <para>This version of Kbd will also install man pages for optional programs
+    even if we don't use the <parameter>--enable-optional-progs</parameter>
+    option to build them. Fix this behavior:</para>
+
+<screen><userinput remap="pre">var=OPTIONAL_PROGS
+sed -i "s/ifdef $var/ifeq (\$($var),yes)/" man/Makefile.in
+unset var</userinput></screen>
+
     <para>Prepare Kbd for compilation:</para>
 
 <screen><userinput remap="configure">./configure --prefix=/usr 
--datadir=/lib/kbd</userinput></screen>

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to