Author: ken
Date: 2012-06-05 12:49:38 -0600 (Tue, 05 Jun 2012)
New Revision: 9879

Modified:
   trunk/BOOK/chapter01/changelog.xml
   trunk/BOOK/chapter06/kbd.xml
Log:
Really remove resizecons.

Modified: trunk/BOOK/chapter01/changelog.xml
===================================================================
--- trunk/BOOK/chapter01/changelog.xml  2012-06-05 11:25:04 UTC (rev 9878)
+++ trunk/BOOK/chapter01/changelog.xml  2012-06-05 18:49:38 UTC (rev 9879)
@@ -48,6 +48,10 @@
            <para>[matthew] - Upgrade to Linux-3.4.1.  Fixes
            <ulink url="&lfs-ticket-root;3110">#3110</ulink>.</para>
          </listitem>
+         <listitem>
+           <para>[ken] - Really remove the redundant program resizecons from 
kbd,
+           by changing configure.ac instead of configure.  Thanks to 
xinglp.</para>
+         </listitem>
       </itemizedlist>
     </listitem>
 

Modified: trunk/BOOK/chapter06/kbd.xml
===================================================================
--- trunk/BOOK/chapter06/kbd.xml        2012-06-05 11:25:04 UTC (rev 9878)
+++ trunk/BOOK/chapter06/kbd.xml        2012-06-05 18:49:38 UTC (rev 9879)
@@ -66,11 +66,20 @@
     <para>Remove the redundant <command>resizecons</command> program (32-bit 
x86
     only, needs the defunct svgalib, which predates linux-2.6 and is 
incompatible
     with modern KMS, to provide the video mode files - for normal use
-    <command>setfont</command> sizes the console appropriately) and its 
manpage:</para>
+    <command>setfont</command> sizes the console appropriately) and its 
manpage.</para>
 
-<screen><userinput remap="pre">sed -i 's/\(RESIZECONS_PROGS=\)yes/\1no/' 
configure &amp;&amp;
-sed -i 's/resizecons.8 //' man/man8/Makefile.in</userinput></screen>
+    <para>Because we change <filename>Makefile.in</filename>, with modern 
autotools
+    various commands will be rerun by <command>make</command> after
+    <command>configure</command> has run.  In this case, 
<filename>configure</filename>
+    will be regenerated, so we need to change 
<filename>configure.ac</filename>.
+    Running <command>autoreconf</command> ensures this all happens before
+    <command>configure</command> is run, instead of during 
<command>make</command>.
+    </para>
 
+<screen><userinput remap="pre">sed -i 's/\(RESIZECONS_PROGS=\)yes/\1no/' 
configure.ac &amp;&amp;
+sed -i 's/resizecons.8 //' man/man8/Makefile.in &amp;&amp;
+autoreconf</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