Просмотр исходного кода

Change kmod instructions to allow installation of man pages.
Numerous whitespace fixes.


git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10480 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

Bruce Dubbs 11 лет назад
Родитель
Сommit
3dc9543a1e

+ 11 - 0
chapter01/changelog.xml

@@ -35,6 +35,17 @@
       </itemizedlist>
       </itemizedlist>
     </listitem>
     </listitem>
 -->
 -->
+    <listitem>
+      <para>2014-02-18</para>
+      <itemizedlist>
+        <listitem>
+          <para>[bdubbs] - Change kmod instructions to allow
+          installation of man pages.  Fixes
+          <ulink url="&lfs-ticket-root;3502">#3502</ulink>.</para>
+        </listitem>
+      </itemizedlist>
+    </listitem>
+
     <listitem>
     <listitem>
       <para>2014-02-16</para>
       <para>2014-02-16</para>
       <itemizedlist>
       <itemizedlist>

+ 1 - 1
chapter05/binutils-pass1.xml

@@ -72,7 +72,7 @@ cd ../binutils-build</userinput></screen>
 
 
     <para>Now prepare Binutils for compilation:</para>
     <para>Now prepare Binutils for compilation:</para>
 
 
-<screen><userinput remap="configure">../binutils-&binutils-version;/configure   \
+<screen><userinput remap="configure">../binutils-&binutils-version;/configure     \
     --prefix=/tools            \
     --prefix=/tools            \
     --with-sysroot=$LFS        \
     --with-sysroot=$LFS        \
     --with-lib-path=/tools/lib \
     --with-lib-path=/tools/lib \

+ 1 - 1
chapter05/binutils-pass2.xml

@@ -53,7 +53,7 @@ cd ../binutils-build</userinput></screen>
 <screen><userinput remap="configure">CC=$LFS_TGT-gcc                \
 <screen><userinput remap="configure">CC=$LFS_TGT-gcc                \
 AR=$LFS_TGT-ar                 \
 AR=$LFS_TGT-ar                 \
 RANLIB=$LFS_TGT-ranlib         \
 RANLIB=$LFS_TGT-ranlib         \
-../binutils-&binutils-version;/configure   \
+../binutils-&binutils-version;/configure     \
     --prefix=/tools            \
     --prefix=/tools            \
     --disable-nls              \
     --disable-nls              \
     --with-lib-path=/tools/lib \
     --with-lib-path=/tools/lib \

+ 3 - 2
chapter05/expect.xml

@@ -51,8 +51,9 @@ sed 's:/usr/local/bin:/bin:' configure.orig &gt; configure</userinput></screen>
 
 
     <para>Now prepare Expect for compilation:</para>
     <para>Now prepare Expect for compilation:</para>
 
 
-<screen><userinput remap="configure">./configure --prefix=/tools --with-tcl=/tools/lib \
-  --with-tclinclude=/tools/include</userinput></screen>
+<screen><userinput remap="configure">./configure --prefix=/tools       \
+            --with-tcl=/tools/lib \
+            --with-tclinclude=/tools/include</userinput></screen>
 
 
     <variablelist>
     <variablelist>
       <title>The meaning of the configure options:</title>
       <title>The meaning of the configure options:</title>

+ 1 - 1
chapter05/gcc-pass2.xml

@@ -77,7 +77,7 @@ esac</userinput></screen>
 do
 do
   cp -uv $file{,.orig}
   cp -uv $file{,.orig}
   sed -e 's@/lib\(64\)\?\(32\)\?/ld@/tools&amp;@g' \
   sed -e 's@/lib\(64\)\?\(32\)\?/ld@/tools&amp;@g' \
-  -e 's@/usr@/tools@g' $file.orig &gt; $file
+      -e 's@/usr@/tools@g' $file.orig &gt; $file
   echo '
   echo '
 #undef STANDARD_STARTFILE_PREFIX_1
 #undef STANDARD_STARTFILE_PREFIX_1
 #undef STANDARD_STARTFILE_PREFIX_2
 #undef STANDARD_STARTFILE_PREFIX_2

+ 7 - 7
chapter05/libstdc++.xml

@@ -56,13 +56,13 @@ cd ../gcc-build</userinput></screen>
     <para>Prepare Libstdc++ for compilation:</para>
     <para>Prepare Libstdc++ for compilation:</para>
 
 
 <screen><userinput remap="configure">../gcc-&gcc-version;/libstdc++-v3/configure \
 <screen><userinput remap="configure">../gcc-&gcc-version;/libstdc++-v3/configure \
-    --host=$LFS_TGT                      \
-    --prefix=/tools                      \
-    --disable-multilib                   \
-    --disable-shared                     \
-    --disable-nls                        \
-    --disable-libstdcxx-threads          \
-    --disable-libstdcxx-pch              \
+    --host=$LFS_TGT                 \
+    --prefix=/tools                 \
+    --disable-multilib              \
+    --disable-shared                \
+    --disable-nls                   \
+    --disable-libstdcxx-threads     \
+    --disable-libstdcxx-pch         \
     --with-gxx-include-dir=/tools/$LFS_TGT/include/c++/&gcc-version;</userinput></screen>
     --with-gxx-include-dir=/tools/$LFS_TGT/include/c++/&gcc-version;</userinput></screen>
 
 
     <variablelist>
     <variablelist>

+ 3 - 2
chapter05/stripping.xml

@@ -16,10 +16,11 @@
   debugging symbols. Remove those symbols with:</para>
   debugging symbols. Remove those symbols with:</para>
 
 
 <screen><userinput>strip --strip-debug /tools/lib/*
 <screen><userinput>strip --strip-debug /tools/lib/*
-strip --strip-unneeded /tools/{,s}bin/*</userinput></screen>
+/usr/bin/strip --strip-unneeded /tools/{,s}bin/*</userinput></screen>
 
 
   <para>These commands will skip a number of files, reporting that it does not
   <para>These commands will skip a number of files, reporting that it does not
-  recognize their file format. Most of these are scripts instead of binaries.</para>
+  recognize their file format. Most of these are scripts instead of binaries.
+  Also use the system strip command to include the strip binary in /tools.</para>
 
 
   <para>Take care <emphasis>not</emphasis> to use
   <para>Take care <emphasis>not</emphasis> to use
   <parameter>--strip-unneeded</parameter> on the libraries. The static
   <parameter>--strip-unneeded</parameter> on the libraries. The static

+ 5 - 1
chapter06/creatingdirs.xml

@@ -22,9 +22,13 @@ mkdir -pv /usr/{,local/}share/{color,dict,doc,info,locale,man}
 mkdir -v  /usr/{,local/}share/{misc,terminfo,zoneinfo}
 mkdir -v  /usr/{,local/}share/{misc,terminfo,zoneinfo}
 mkdir -v  /usr/libexec
 mkdir -v  /usr/libexec
 mkdir -pv /usr/{,local/}share/man/man{1..8}
 mkdir -pv /usr/{,local/}share/man/man{1..8}
+
 case $(uname -m) in
 case $(uname -m) in
- x86_64) ln -sv lib /lib64 &amp;&amp; ln -sv lib /usr/lib64 &amp;&amp; ln -sv lib /usr/local/lib64 ;;
+ x86_64) ln -sv lib /lib64     &amp;&amp; 
+         ln -sv lib /usr/lib64 &amp;&amp; 
+         ln -sv lib /usr/local/lib64 ;;
 esac
 esac
+
 mkdir -v /var/{log,mail,spool}
 mkdir -v /var/{log,mail,spool}
 ln -sv /run /var/run
 ln -sv /run /var/run
 ln -sv /run/lock /var/lock
 ln -sv /run/lock /var/lock

+ 2 - 2
chapter06/db.xml

@@ -273,7 +273,7 @@
 
 
 
 
       <varlistentry id="libdb">
       <varlistentry id="libdb">
-        <term><filename class="libraryfile">libdb.{so,a}</filename></term>
+        <term><filename class="libraryfile">libdb.{a,so}</filename></term>
         <listitem>
         <listitem>
           <para>Contains functions to manipulate database files from C
           <para>Contains functions to manipulate database files from C
           programs</para>
           programs</para>
@@ -284,7 +284,7 @@
       </varlistentry>
       </varlistentry>
 
 
       <varlistentry id="libdb_cxx">
       <varlistentry id="libdb_cxx">
-        <term><filename class="libraryfile">libdb_cxx.{so,a}</filename></term>
+        <term><filename class="libraryfile">libdb_cxx.{a,so}</filename></term>
         <listitem>
         <listitem>
           <para>Contains functions to manipulate database files from C++
           <para>Contains functions to manipulate database files from C++
           programs</para>
           programs</para>

+ 1 - 2
chapter06/findutils.xml

@@ -45,8 +45,7 @@
 
 
     <para>Prepare Findutils for compilation:</para>
     <para>Prepare Findutils for compilation:</para>
 
 
-<screen><userinput remap="configure">./configure --prefix=/usr                   \
-            --localstatedir=/var/lib/locate</userinput></screen>
+<screen><userinput remap="configure">./configure --prefix=/usr --localstatedir=/var/lib/locate</userinput></screen>
 
 
     <variablelist>
     <variablelist>
       <title>The meaning of the configure options:</title>
       <title>The meaning of the configure options:</title>

+ 2 - 3
chapter06/flex.xml

@@ -47,8 +47,7 @@
 
 
     <para>Prepare Flex for compilation:</para>
     <para>Prepare Flex for compilation:</para>
 
 
-<screen><userinput remap="configure">./configure --prefix=/usr \
-            --docdir=/usr/share/doc/flex-&flex-version;</userinput></screen>
+<screen><userinput remap="configure">./configure --prefix=/usr --docdir=/usr/share/doc/flex-&flex-version;</userinput></screen>
 
 
     <para>Compile the package:</para>
     <para>Compile the package:</para>
 
 
@@ -97,7 +96,7 @@ chmod -v 755 /usr/bin/lex</userinput></screen>
 
 
       <seglistitem>
       <seglistitem>
         <seg>flex, flex++ (link to flex), and lex</seg>
         <seg>flex, flex++ (link to flex), and lex</seg>
-        <seg>libfl.{so,a} and libfl_pic.{so.a}</seg>
+        <seg>libfl.{a,so} and libfl_pic.{a,so}</seg>
         <seg>/usr/share/doc/flex-&flex-version;</seg>
         <seg>/usr/share/doc/flex-&flex-version;</seg>
       </seglistitem>
       </seglistitem>
     </segmentedlist>
     </segmentedlist>

+ 11 - 10
chapter06/gcc.xml

@@ -70,16 +70,17 @@ cd ../gcc-build</userinput></screen>
 
 
     <para>Prepare GCC for compilation:</para>
     <para>Prepare GCC for compilation:</para>
 
 
-<screen><userinput remap="configure">SED=sed                                            \
-../gcc-&gcc-version;/configure --prefix=/usr               \
-                       --enable-shared             \
-                       --enable-threads=posix      \
-                       --enable-__cxa_atexit       \
-                       --enable-clocale=gnu        \
-                       --enable-languages=c,c++    \
-                       --disable-multilib          \
-                       --disable-bootstrap         \
-                       --with-system-zlib</userinput></screen>
+<screen><userinput remap="configure">SED=sed                          \
+../gcc-&gcc-version;/configure           \
+     --prefix=/usr               \
+     --enable-shared             \
+     --enable-threads=posix      \
+     --enable-__cxa_atexit       \
+     --enable-clocale=gnu        \
+     --enable-languages=c,c++    \
+     --disable-multilib          \
+     --disable-bootstrap         \
+     --with-system-zlib</userinput></screen>
 
 
     <para>Note that for other languages, there are some prerequisites that
     <para>Note that for other languages, there are some prerequisites that
     are not available. See the BLFS Book for instructions on how to
     are not available. See the BLFS Book for instructions on how to

+ 1 - 1
chapter06/gdbm.xml

@@ -83,7 +83,7 @@
 
 
       <seglistitem>
       <seglistitem>
         <seg>testgdbm</seg>
         <seg>testgdbm</seg>
-        <seg>libgdbm.{so,a} and libgdbm_compat.{so,a}</seg>
+        <seg>libgdbm.{a,so} and libgdbm_compat.{a,so}</seg>
       </seglistitem>
       </seglistitem>
     </segmentedlist>
     </segmentedlist>
 
 

+ 1 - 2
chapter06/gettext.xml

@@ -45,8 +45,7 @@
 
 
     <para>Prepare Gettext for compilation:</para>
     <para>Prepare Gettext for compilation:</para>
 
 
-<screen><userinput remap="configure">./configure --prefix=/usr \
-            --docdir=/usr/share/doc/gettext-&gettext-version;</userinput></screen>
+<screen><userinput remap="configure">./configure --prefix=/usr --docdir=/usr/share/doc/gettext-&gettext-version;</userinput></screen>
 
 
     <para>Compile the package:</para>
     <para>Compile the package:</para>
 
 

+ 4 - 4
chapter06/glibc.xml

@@ -73,10 +73,10 @@ cd ../glibc-build</userinput></screen>
 
 
     <para>Prepare Glibc for compilation:</para>
     <para>Prepare Glibc for compilation:</para>
 
 
-<screen><userinput remap="configure">../glibc-&glibc-version;/configure          \
-    --prefix=/usr                \
-    --disable-profile            \
-    --enable-kernel=&min-kernel;       \
+<screen><userinput remap="configure">../glibc-&glibc-version;/configure    \
+    --prefix=/usr          \
+    --disable-profile      \
+    --enable-kernel=&min-kernel; \
     --enable-obsolete-rpc</userinput></screen>
     --enable-obsolete-rpc</userinput></screen>
 
 
     <variablelist>
     <variablelist>

+ 3 - 4
chapter06/kmod.xml

@@ -46,7 +46,6 @@
 <screen><userinput remap="configure">./configure --prefix=/usr          \
 <screen><userinput remap="configure">./configure --prefix=/usr          \
             --bindir=/bin          \
             --bindir=/bin          \
             --sysconfdir=/etc      \
             --sysconfdir=/etc      \
-            --disable-manpages     \
             --with-rootlibdir=/lib \
             --with-rootlibdir=/lib \
             --with-xz              \
             --with-xz              \
             --with-zlib</userinput></screen>
             --with-zlib</userinput></screen>
@@ -60,16 +59,16 @@
           <para>These options enable Kmod to handle compressed kernel modules.</para>
           <para>These options enable Kmod to handle compressed kernel modules.</para>
         </listitem>
         </listitem>
       </varlistentry>
       </varlistentry>
-
+<!--
       <varlistentry>
       <varlistentry>
-        <term><parameter>--disable-manpages</parameter></term>
+        <term><parameter>- -disable-manpages</parameter></term>
         <listitem>
         <listitem>
           <para>This option prevents the man pages from being built, as they
           <para>This option prevents the man pages from being built, as they
           rely on libxslt, which isn't available in the chroot
           rely on libxslt, which isn't available in the chroot
           environment.</para>
           environment.</para>
         </listitem>
         </listitem>
       </varlistentry>
       </varlistentry>
-
+-->
       <varlistentry>
       <varlistentry>
         <term><parameter>--with-rootlibdir=/lib</parameter></term>
         <term><parameter>--with-rootlibdir=/lib</parameter></term>
         <listitem>
         <listitem>

+ 1 - 1
chapter06/pcre.xml

@@ -106,7 +106,7 @@ ln -v -sf ../../lib/libpcre.so.0 /usr/lib/libpcre.so</userinput></screen>
 
 
       <seglistitem>
       <seglistitem>
         <seg>pcregrep, pcretest, and pcre-config</seg>
         <seg>pcregrep, pcretest, and pcre-config</seg>
-        <seg>libpcre.{so,a}, libpcrecpp.{so,a} and libpcreposix.{so,a}</seg>
+        <seg>libpcre.{a,so}, libpcrecpp.{a,so} and libpcreposix.{a,so}</seg>
         <seg>/usr/share/doc/pcre-&pcre-version;</seg>
         <seg>/usr/share/doc/pcre-&pcre-version;</seg>
       </seglistitem>
       </seglistitem>
     </segmentedlist>
     </segmentedlist>

+ 0 - 1
chapter06/procps.xml

@@ -70,7 +70,6 @@
     To run the test suite, run the following commands:</para>
     To run the test suite, run the following commands:</para>
 
 
 <screen><userinput remap="test">sed -i -r 's|(pmap_initname)\\\$|\1|' testsuite/pmap.test/pmap.exp
 <screen><userinput remap="test">sed -i -r 's|(pmap_initname)\\\$|\1|' testsuite/pmap.test/pmap.exp
-
 make check</userinput></screen>
 make check</userinput></screen>
 
 
     <para>Install the package:</para>
     <para>Install the package:</para>

+ 2 - 3
chapter06/readline.xml

@@ -90,9 +90,8 @@ ln -sfv ../../lib/$(readlink /usr/lib/libhistory.so ) /usr/lib/libhistory.so</us
 
 
     <para>If desired, install the documentation:</para>
     <para>If desired, install the documentation:</para>
 
 
-<screen><userinput remap="install">mkdir   -v       /usr/share/doc/readline-&readline-version;
-install -v -m644 doc/*.{ps,pdf,html,dvi} \
-                 /usr/share/doc/readline-&readline-version;</userinput></screen>
+<screen><userinput remap="install">mkdir   -v /usr/share/doc/readline-&readline-version;
+install -v -m644 doc/*.{ps,pdf,html,dvi} /usr/share/doc/readline-&readline-version;</userinput></screen>
 
 
   </sect2>
   </sect2>
 
 

+ 1 - 2
chapter06/shadow.xml

@@ -69,8 +69,7 @@ find man -name Makefile.in -exec sed -i 's/groups\.1 / /' {} \;</userinput></scr
     <note>
     <note>
       <para>If you chose to build Shadow with Cracklib support, run the following:</para>
       <para>If you chose to build Shadow with Cracklib support, run the following:</para>
 
 
-<screen role="nodump"><userinput>sed -i 's@DICTPATH.*@DICTPATH\t/lib/cracklib/pw_dict@' \
-    etc/login.defs</userinput></screen>
+<screen role="nodump"><userinput>sed -i 's@DICTPATH.*@DICTPATH\t/lib/cracklib/pw_dict@' etc/login.defs</userinput></screen>
     </note>
     </note>
 
 
     <para>Prepare Shadow for compilation:</para>
     <para>Prepare Shadow for compilation:</para>

+ 3 - 3
chapter06/strippingagain.xml

@@ -32,15 +32,15 @@
 
 
   <para>Then reenter it with:</para>
   <para>Then reenter it with:</para>
 
 
-<screen role="nodump"><userinput>chroot $LFS /tools/bin/env -i \
+<screen role="nodump"><userinput>chroot $LFS /tools/bin/env -i            \
     HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
     HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
-    PATH=/bin:/usr/bin:/sbin:/usr/sbin \
+    PATH=/bin:/usr/bin:/sbin:/usr/sbin   \
     /tools/bin/bash --login</userinput></screen>
     /tools/bin/bash --login</userinput></screen>
 
 
   <para>Now the binaries and libraries can be safely stripped:</para>
   <para>Now the binaries and libraries can be safely stripped:</para>
 
 
 <screen><userinput>/tools/bin/find /{,usr/}{bin,lib,sbin} -type f \
 <screen><userinput>/tools/bin/find /{,usr/}{bin,lib,sbin} -type f \
-  -exec /tools/bin/strip --strip-debug '{}' ';'</userinput></screen>
+    -exec /tools/bin/strip --strip-debug '{}' ';'</userinput></screen>
 
 
   <para>A large number of files will be reported as having their file
   <para>A large number of files will be reported as having their file
   format not recognized. These warnings can be safely ignored. These
   format not recognized. These warnings can be safely ignored. These

+ 1 - 1
chapter06/util-linux.xml

@@ -50,7 +50,7 @@
     following:</para>
     following:</para>
 
 
 <screen><userinput remap="pre">sed -i -e 's@etc/adjtime@var/lib/hwclock/adjtime@g' \
 <screen><userinput remap="pre">sed -i -e 's@etc/adjtime@var/lib/hwclock/adjtime@g' \
-     $(grep -rl '/etc/adjtime' .)
+          $(grep -rl '/etc/adjtime' .)
 
 
 mkdir -pv /var/lib/hwclock</userinput></screen>
 mkdir -pv /var/lib/hwclock</userinput></screen>
 
 

+ 1 - 2
chapter06/xz.xml

@@ -46,8 +46,7 @@
 
 
     <para>Prepare Xz for compilation with:</para>
     <para>Prepare Xz for compilation with:</para>
 
 
-<screen><userinput remap="configure">./configure --prefix=/usr \
-            --docdir=/usr/share/doc/xz-&xz-version;</userinput></screen>
+<screen><userinput remap="configure">./configure --prefix=/usr --docdir=/usr/share/doc/xz-&xz-version;</userinput></screen>
 
 
     <para>Compile the package:</para>
     <para>Compile the package:</para>
 
 

+ 2 - 2
general.ent

@@ -1,5 +1,5 @@
-<!ENTITY version         "SVN-20140216">
-<!ENTITY releasedate     "February 16, 2015">
+<!ENTITY version         "SVN-20140218">
+<!ENTITY releasedate     "February 18, 2015">
 <!ENTITY copyrightdate   "1999-2014"><!-- jhalfs needs a literal dash, not &ndash; -->
 <!ENTITY copyrightdate   "1999-2014"><!-- jhalfs needs a literal dash, not &ndash; -->
 <!ENTITY milestone       "7.5">
 <!ENTITY milestone       "7.5">
 <!ENTITY generic-version "development"> <!-- Use "development", "testing", or "x.y[-pre{x}]" -->
 <!ENTITY generic-version "development"> <!-- Use "development", "testing", or "x.y[-pre{x}]" -->