瀏覽代碼

Really remove resizecons.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9879 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Ken Moffat 13 年之前
父節點
當前提交
1857e34d21
共有 2 個文件被更改,包括 17 次插入4 次删除
  1. 4 0
      chapter01/changelog.xml
  2. 13 4
      chapter06/kbd.xml

+ 4 - 0
chapter01/changelog.xml

@@ -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>
 

+ 13 - 4
chapter06/kbd.xml

@@ -66,10 +66,19 @@ so the sed will need attention if that change is not removed before the next rel
     <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>
-
-<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>
+    <command>setfont</command> sizes the console appropriately) and its manpage.</para>
+
+    <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>