Bugfixes to LFS

Zack Winkles winkie at linuxfromscratch.org
Sat May 10 18:09:32 PDT 2003


Attached are 6 patches, which fix 6 bugs in LFS. The list of bugs fixed
with a short description follows:

  424: Removed 'install-info' command.
  259: Made /etc/localtime a file.
  459: Removed modification to make binary.
  492: Don't bother with creating /etc/mtab. Mounting /proc does it.
  495: Removed vim patch.
  523: Run 'make' during Automake installation.

They should be applied in the order that I've provided due to Changelog
entries. BTW, there are a ton of open bugs that are no longer valid.

-------------- next part --------------
diff -Naur book.orig/chapter01/changelog.xml book/chapter01/changelog.xml
--- book.orig/chapter01/changelog.xml	2003-05-10 19:48:25.000000000 -0400
+++ book/chapter01/changelog.xml	2003-05-10 20:34:08.481372784 -0400
@@ -63,6 +63,10 @@
 </itemizedlist>
 </para></listitem>
 
+<listitem><para>May 10th, 2003 [winkie]: Chapter 06 - Installing E2fsprogs:
+Removed install-info commands for e2fsprogs. The "make install" target
+handles this for us.</para></listitem>
+
 <listitem><para>May 10th, 2003 [gerard]: Removed all CFLAGS and LDFLAGS
 variables where they are not essential (so, not including static binutils,
 gcc and compiling zlib with -fPIC).</para></listitem>
diff -Naur book.orig/chapter06/e2fsprogs-inst.xml book/chapter06/e2fsprogs-inst.xml
--- book.orig/chapter06/e2fsprogs-inst.xml	2003-02-03 18:24:24.000000000 -0500
+++ book/chapter06/e2fsprogs-inst.xml	2003-05-10 20:32:58.989937088 -0400
@@ -46,11 +46,6 @@
 
 <para><screen><userinput>make install-libs</userinput></screen></para>
 
-<para>Update the <filename>/usr/share/info/dir</filename> file to
-include E2fsprogs' info pages in the index:</para>
-
-<para><screen><userinput>install-info /usr/share/info/libext2fs.info /usr/share/info/dir</userinput></screen></para>
-
 </sect2>
 
 
-------------- next part --------------
diff -Naur book.orig/chapter01/changelog.xml book/chapter01/changelog.xml
--- book.orig/chapter01/changelog.xml	2003-05-10 20:36:42.323985152 -0400
+++ book/chapter01/changelog.xml	2003-05-10 20:36:33.340350872 -0400
@@ -63,6 +63,10 @@
 </itemizedlist>
 </para></listitem>
 
+<listitem><para>May 10th, 2003 [winkie]: Chapter 06 - Installing Glibc:
+Made /etc/localtime a file instead of a symlink. The symlink method breaks
+on systems where /usr is a separate partition.</para></listitem>
+
 <listitem><para>May 10th, 2003 [winkie]: Chapter 06 - Installing E2fsprogs:
 Removed install-info commands for e2fsprogs. The "make install" target
 handles this for us.</para></listitem>
diff -Naur book.orig/chapter06/config-glibc.xml book/chapter06/config-glibc.xml
--- book.orig/chapter06/config-glibc.xml	2003-02-20 08:59:14.000000000 -0500
+++ book/chapter06/config-glibc.xml	2003-05-10 20:34:25.370805200 -0400
@@ -39,9 +39,9 @@
 <para>When you've answered a few questions about your location, the script will
 output the name of your timezone, something like <emphasis>EST5EDT</emphasis>
 or <emphasis>Canada/Eastern</emphasis>. Then create the
-<filename>/etc/localtime</filename> symlink by running:</para>
+<filename>/etc/localtime</filename> file by running:</para>
 
-<para><screen><userinput>ln -sf ../usr/share/zoneinfo/Canada/Eastern /etc/localtime </userinput></screen></para>
+<para><screen><userinput>cp ../usr/share/zoneinfo/Canada/Eastern /etc/localtime </userinput></screen></para>
 
 <para>Of course, instead of <emphasis>Canada/Eastern</emphasis>, fill in
 the name of the timezone that the <userinput>tzselect</userinput> script
-------------- next part --------------
diff -Naur book.orig/chapter01/changelog.xml book/chapter01/changelog.xml
--- book.orig/chapter01/changelog.xml	2003-05-10 20:38:57.517432624 -0400
+++ book/chapter01/changelog.xml	2003-05-10 20:40:39.058995960 -0400
@@ -63,6 +63,10 @@
 </itemizedlist>
 </para></listitem>
 
+<listitem><para>May 10th, 2003 [winkie]: Chapter 06 - Installing Make:
+Removed modification of /usr/bin/make file. It is no longer mistakenly
+installed with strange ownership or permissions.</para></listitem>
+
 <listitem><para>May 10th, 2003 [winkie]: Chapter 06 - Installing Glibc:
 Made /etc/localtime a file instead of a symlink. The symlink method breaks
 on systems where /usr is a separate partition.</para></listitem>
diff -Naur book.orig/chapter06/make-inst.xml book/chapter06/make-inst.xml
--- book.orig/chapter06/make-inst.xml	2003-01-19 10:36:47.000000000 -0500
+++ book/chapter06/make-inst.xml	2003-05-10 20:39:06.150120256 -0400
@@ -15,15 +15,5 @@
 
 <para><screen><userinput>make install</userinput></screen></para>
 
-<para>By default, <filename>/usr/bin/make</filename> is installed setgid
-kmem. This is needed on some systems so it can check the load average by
-using <filename>/dev/kmem</filename>. However, on Linux systems, setgid
-kmem is not needed, so we remove this from our <filename>make</filename>
-binary. This also fixes problems with <filename>make</filename>
-ignoring certain variables like <emphasis>LD_LIBRARY_PATH</emphasis>.</para>
-
-<para><screen><userinput>chgrp root /usr/bin/make &&
-chmod 755 /usr/bin/make</userinput></screen></para>
-
 </sect2>
 
-------------- next part --------------
diff -Naur lfs-book.orig/chapter01/changelog.xml lfs-book/chapter01/changelog.xml
--- lfs-book.orig/chapter01/changelog.xml	2003-05-10 20:45:09.000000000 -0400
+++ lfs-book/chapter01/changelog.xml	2003-05-10 20:46:00.271164288 -0400
@@ -63,6 +63,10 @@
 </itemizedlist>
 </para></listitem>
 
+<listitem><para>May 10th, 2003 [winkie]: Chapter 06 - Creating the mtab
+file: Removed. Mounting /proc has the side effect of creating /etc/mtab
+for us.</para></listitem>
+
 <listitem><para>May 10th, 2003 [winkie]: Chapter 06 - Installing Make:
 Removed modification of /usr/bin/make file. It is no longer mistakenly
 installed with strange ownership or permissions.</para></listitem>
diff -Naur lfs-book.orig/chapter06/chapter06.xml lfs-book/chapter06/chapter06.xml
--- lfs-book.orig/chapter06/chapter06.xml	2003-05-07 19:41:42.000000000 -0400
+++ lfs-book/chapter06/chapter06.xml	2003-05-10 20:45:26.044367552 -0400
@@ -8,7 +8,6 @@
 &c6-changingowner;
 &c6-creatingdirs;
 &c6-mountproc;
-&c6-mtablink;
 &c6-createfiles;
 &c6-pwdgroup;
 &c6-makedev;
diff -Naur lfs-book.orig/chapter06/mtablink.xml lfs-book/chapter06/mtablink.xml
--- lfs-book.orig/chapter06/mtablink.xml	2003-02-06 01:03:44.000000000 -0500
+++ lfs-book/chapter06/mtablink.xml	1969-12-31 19:00:00.000000000 -0500
@@ -1,14 +0,0 @@
-<sect1 id="ch06-mtablink">
-<title>Creating the mtab file</title>
-<?dbhtml filename="mtablink.html" dir="chapter06"?>
-
-<para>The next thing to do is to create the <filename>/etc/mtab</filename> file.
-This is done using the following command:</para>
-
-<para><screen><userinput>touch /etc/mtab</userinput></screen></para>
-
-<para>As of LFS-Bootscripts 1.11 this file is handled correctly
-so there are no errors even when booting after a crash.</para>
-
-</sect1>
-
diff -Naur lfs-book.orig/entities/chapter06.ent lfs-book/entities/chapter06.ent
--- lfs-book.orig/entities/chapter06.ent	2003-01-10 10:18:54.000000000 -0500
+++ lfs-book/entities/chapter06.ent	2003-05-10 20:45:26.045367400 -0400
@@ -6,7 +6,6 @@
 <!ENTITY c6-changingowner SYSTEM "../chapter06/changingowner.xml">
 <!ENTITY c6-creatingdirs SYSTEM "../chapter06/creatingdirs.xml">
 <!ENTITY c6-pwdgroup SYSTEM "../chapter06/pwdgroup.xml">
-<!ENTITY c6-mtablink SYSTEM "../chapter06/mtablink.xml">
 <!ENTITY c6-mountproc SYSTEM "../chapter06/mountproc.xml">
 <!ENTITY c6-createfiles SYSTEM "../chapter06/createfiles.xml">
 <!ENTITY c6-revisedchroot SYSTEM "../chapter06/revisedchroot.xml">
-------------- next part --------------
diff -Naur lfs-book.orig/chapter01/changelog.xml lfs-book/chapter01/changelog.xml
--- lfs-book.orig/chapter01/changelog.xml	2003-05-10 20:51:13.212589960 -0400
+++ lfs-book/chapter01/changelog.xml	2003-05-10 20:53:04.507670536 -0400
@@ -63,6 +63,9 @@
 </itemizedlist>
 </para></listitem>
 
+<listitem><para>May 10th, 2003 [winkie]: Chapter 06 - Installing Vim:
+Removed the patch. It hasn't been required since GCC 3.2.1.</para></listitem>
+
 <listitem><para>May 10th, 2003 [winkie]: Chapter 06 - Creating the mtab
 file: Removed. Mounting /proc has the side effect of creating /etc/mtab
 for us.</para></listitem>
diff -Naur lfs-book.orig/chapter04/packages.xml lfs-book/chapter04/packages.xml
--- lfs-book.orig/chapter04/packages.xml	2003-05-02 16:36:04.000000000 -0400
+++ lfs-book/chapter04/packages.xml	2003-05-10 20:54:02.988780056 -0400
@@ -69,7 +69,6 @@
 &c4-texinfo;
 &c4-utillinux;
 &c4-vim;
-&c4-vim-patch;
 &c4-zlib;
 
 Total size of all packages: &all-size-kb; (&all-size-mb;)
diff -Naur lfs-book.orig/chapter04/vim-patch.xml lfs-book/chapter04/vim-patch.xml
--- lfs-book.orig/chapter04/vim-patch.xml	2002-10-20 12:17:59.000000000 -0400
+++ lfs-book/chapter04/vim-patch.xml	1969-12-31 19:00:00.000000000 -0500
@@ -1,3 +0,0 @@
-Vim Patch (&vim-patch-version;) - &vim-patch-size;:
-<ulink url="&ftp;/vim-&vim-patch-version;.patch"/>
-<ulink url="&http;/vim-&vim-patch-version;.patch"/>
diff -Naur lfs-book.orig/chapter06/vim-inst.xml lfs-book/chapter06/vim-inst.xml
--- lfs-book.orig/chapter06/vim-inst.xml	2003-02-17 21:02:09.000000000 -0500
+++ lfs-book/chapter06/vim-inst.xml	2003-05-10 20:51:42.960067656 -0400
@@ -3,11 +3,6 @@
 <sect2>
 <title>Installation of Vim</title>
 
-<para>This package requires its patch to be applied before you can
-install it. This patch fixes a compile problem with GCC-3.2:</para>
-
-<para><screen><userinput>patch -Np1 -i ../vim-&vim-patch-version;.patch</userinput></screen></para>
-
 <para>Prepare Vim to be compiled:</para>
 
 <para><screen><userinput>./configure --prefix=/usr</userinput></screen></para>
diff -Naur lfs-book.orig/entities/vim.ent lfs-book/entities/vim.ent
--- lfs-book.orig/entities/vim.ent	2003-01-19 09:00:41.000000000 -0500
+++ lfs-book/entities/vim.ent	2003-05-10 20:54:09.718756944 -0400
@@ -1,5 +1,4 @@
 <!ENTITY c4-vim SYSTEM "../chapter04/vim.xml">
-<!ENTITY c4-vim-patch SYSTEM "../chapter04/vim-patch.xml">
 
 <!ENTITY c6-vim SYSTEM "../chapter06/vim.xml">
 <!ENTITY c6-vim-inst SYSTEM "../chapter06/vim-inst.xml">
@@ -16,8 +15,6 @@
 <!ENTITY vim-depversion "6.0">
 <!ENTITY vim-contversion "6.1">
 <!ENTITY vim-size "2,822 KB">
-<!ENTITY vim-patch-size "1 KB">
-<!ENTITY vim-patch-version "6.1">
 <!ENTITY vim-dir "vim&vim-version;">
 <!ENTITY vim-package "vim-&vim-version;.tar.bz2">
 
-------------- next part --------------
diff -Naur lfs-book.orig/chapter01/changelog.xml lfs-book/chapter01/changelog.xml
--- lfs-book.orig/chapter01/changelog.xml	2003-05-10 20:54:45.125374320 -0400
+++ lfs-book/chapter01/changelog.xml	2003-05-10 21:04:14.529811688 -0400
@@ -63,6 +63,10 @@
 </itemizedlist>
 </para></listitem>
 
+<listitem><para>May 10th, 2003 [winkie]: Chapter 06 - Installing Automake:
+Run "make" before installing. This is needed now with the newer releases
+of Automake.</para></listitem>
+
 <listitem><para>May 10th, 2003 [winkie]: Chapter 06 - Installing Vim:
 Removed the patch. It hasn't been required since GCC 3.2.1.</para></listitem>
 
diff -Naur lfs-book.orig/chapter06/automake-inst.xml lfs-book/chapter06/automake-inst.xml
--- lfs-book.orig/chapter06/automake-inst.xml	2003-01-19 10:36:47.000000000 -0500
+++ lfs-book/chapter06/automake-inst.xml	2003-05-10 21:03:11.815345736 -0400
@@ -7,7 +7,11 @@
 
 <para><screen><userinput>./configure --prefix=/usr</userinput></screen></para>
 
-<para>Continue with compiling and installing the package:</para>
+<para>Continue with compiling the package:</para>
+
+<para><screen><userinput>make</userinput></screen></para>
+
+<para>And finish off installing the package:</para>
 
 <para><screen><userinput>make install</userinput></screen></para>
 


More information about the lfs-book mailing list