[lfs-book] r10386 - in trunk/BOOK: chapter01 chapter02 chapter05 chapter06

bdubbs at higgs.linuxfromscratch.org bdubbs at higgs.linuxfromscratch.org
Sat Dec 7 19:02:54 PST 2013


Author: bdubbs
Date: Sat Dec  7 19:02:53 2013
New Revision: 10386

Log:
Enable building sulogin in util-linux.
Supress installing sysvinit's sulogin.
Several text updates from Chris Staub.

Modified:
   trunk/BOOK/chapter01/changelog.xml
   trunk/BOOK/chapter02/creatingfilesystem.xml
   trunk/BOOK/chapter05/libstdc++.xml
   trunk/BOOK/chapter06/gcc.xml
   trunk/BOOK/chapter06/systemd.xml
   trunk/BOOK/chapter06/sysvinit.xml
   trunk/BOOK/chapter06/util-linux.xml

Modified: trunk/BOOK/chapter01/changelog.xml
==============================================================================
--- trunk/BOOK/chapter01/changelog.xml	Sat Dec  7 17:19:31 2013	(r10385)
+++ trunk/BOOK/chapter01/changelog.xml	Sat Dec  7 19:02:53 2013	(r10386)
@@ -39,6 +39,12 @@
       <para>2013-12-07</para>
       <itemizedlist>
         <listitem>
+          <para>[bdubbs] - Enable building sulogin in util-linux.
+          Supress installing sysvinit's sulogin.
+          Fixes
+          <ulink url="&lfs-ticket-root;3435">#3435</ulink>.</para>
+        </listitem>
+        <listitem>
           <para>[bdubbs] - Supress installing sysvinit's mesg and last 
           that overwrite the versions installed by util-linux. 
           Thanks to Chris Staub.  Fixes

Modified: trunk/BOOK/chapter02/creatingfilesystem.xml
==============================================================================
--- trunk/BOOK/chapter02/creatingfilesystem.xml	Sat Dec  7 17:19:31 2013	(r10385)
+++ trunk/BOOK/chapter02/creatingfilesystem.xml	Sat Dec  7 19:02:53 2013	(r10386)
@@ -34,7 +34,7 @@
     <varlistentry>
       <term>ext4</term>
       <listitem><para>is the latest version of the ext file system family of
-      partition types.  It provides several new capabilties including
+      partition types.  It provides several new capabilities including
       nano-second timestamps, creation and use of very large files (16 TB), and
       speed improvements.</para>
       </listitem>

Modified: trunk/BOOK/chapter05/libstdc++.xml
==============================================================================
--- trunk/BOOK/chapter05/libstdc++.xml	Sat Dec  7 17:19:31 2013	(r10385)
+++ trunk/BOOK/chapter05/libstdc++.xml	Sat Dec  7 19:02:53 2013	(r10386)
@@ -99,7 +99,7 @@
           searched by the C++ compiler. In a normal build, this information
           is automatically passed to the Libstdc++ <command>configure</command>
           options from the toplevel directory. In our case, this information
-          must be explicitely given.</para>
+          must be explicitly given.</para>
         </listitem>
       </varlistentry>
 

Modified: trunk/BOOK/chapter06/gcc.xml
==============================================================================
--- trunk/BOOK/chapter06/gcc.xml	Sat Dec  7 17:19:31 2013	(r10385)
+++ trunk/BOOK/chapter06/gcc.xml	Sat Dec  7 19:02:53 2013	(r10386)
@@ -430,6 +430,16 @@
         </listitem>
       </varlistentry>
 
+      <varlistentry id="libasan">
+        <term><command>libasan</command></term>
+        <listitem>
+          <para>The Address Sanitizer runtime library</para>
+          <indexterm zone="ch-system-gcc libasan">
+            <primary sortas="b-libasan">libasan</primary>
+          </indexterm>
+        </listitem>
+      </varlistentry>
+
       <varlistentry id="libgcc">
         <term><filename class="libraryfile">libgcc</filename></term>
         <listitem>

Modified: trunk/BOOK/chapter06/systemd.xml
==============================================================================
--- trunk/BOOK/chapter06/systemd.xml	Sat Dec  7 17:19:31 2013	(r10385)
+++ trunk/BOOK/chapter06/systemd.xml	Sat Dec  7 19:02:53 2013	(r10386)
@@ -65,7 +65,7 @@
     <application>systemd</application> source code that have explicit directory
     paths embedded.  For instance, the binary version of the hardware
     database's path and file name used at run time,
-    <filename>/etc/udev/hwdb.bin</filename>, cannot be changed without explict
+    <filename>/etc/udev/hwdb.bin</filename>, cannot be changed without explicit
     changes to the source code.</para></caution>
 
     <para>Now initialize the hardware database:</para>

Modified: trunk/BOOK/chapter06/sysvinit.xml
==============================================================================
--- trunk/BOOK/chapter06/sysvinit.xml	Sat Dec  7 17:19:31 2013	(r10385)
+++ trunk/BOOK/chapter06/sysvinit.xml	Sat Dec  7 19:02:53 2013	(r10386)
@@ -56,13 +56,15 @@
 
     <para>Maintained versions of the <command>wall</command>,
     <command>mountpoint</command>, <command>last</command>,
-    <command>mesg</command>, and <command>utmpdump</command> programs were
-    installed earlier by Util-linux. Suppress the installation of Sysvinit's
-    versions of these programs and their man pages:</para>
-
-<screen><userinput remap="make">sed -i -e '/utmpdump/d'   \
-       -e '/mountpoint/d' \
-       -e '/mesg/d' src/Makefile</userinput></screen>
+    <command>mesg</command>, <command>sulogin</command>, and
+    <command>utmpdump</command> programs were installed earlier by Util-linux.
+    Suppress the installation of Sysvinit's versions of these programs and
+    their man pages:</para>
+
+<screen><userinput remap="make">sed -ri -e '/utmpdump/d'   \
+        -e '/mountpoint/d' \
+        -e '/mesg/d'       \
+        -e 's/= sulogin(\.8)?/=/' src/Makefile</userinput></screen>
 
     <para>Compile the package:</para>
 
@@ -83,10 +85,9 @@
       <segtitle>Installed programs</segtitle>
 
       <seglistitem>
-        <seg>bootlogd, fstab-decode, halt, init, killall5,
-        lastb (link to last), pidof (link to killall5),
-        poweroff (link to halt), reboot (link to halt), runlevel, shutdown,
-        sulogin, and telinit (link to init)</seg>
+        <seg>bootlogd, fstab-decode, halt, init, killall5, pidof (link to
+        killall5), poweroff (link to halt), reboot (link to halt), runlevel,
+        shutdown, and telinit (link to init)</seg>
       </seglistitem>
     </segmentedlist>
 
@@ -153,17 +154,6 @@
         </listitem>
       </varlistentry>
 
-      <varlistentry id="lastb">
-        <term><command>lastb</command></term>
-        <listitem>
-          <para>Shows the failed login attempts, as logged in
-          <filename>/var/log/btmp</filename></para>
-          <indexterm zone="ch-system-sysvinit lastb">
-            <primary sortas="b-lastb">lastb</primary>
-          </indexterm>
-        </listitem>
-      </varlistentry>
-
       <varlistentry id="pidof">
         <term><command>pidof</command></term>
         <listitem>
@@ -217,18 +207,6 @@
           </indexterm>
         </listitem>
       </varlistentry>
-
-      <varlistentry id="sulogin">
-        <term><command>sulogin</command></term>
-        <listitem>
-          <para>Allows <systemitem class="username">root</systemitem> to log in;
-          it is normally invoked by <command>init</command> when the system goes
-          into single user mode</para>
-          <indexterm zone="ch-system-sysvinit sulogin">
-            <primary sortas="b-sulogin">sulogin</primary>
-          </indexterm>
-        </listitem>
-      </varlistentry>
 
       <varlistentry id="telinit">
         <term><command>telinit</command></term>

Modified: trunk/BOOK/chapter06/util-linux.xml
==============================================================================
--- trunk/BOOK/chapter06/util-linux.xml	Sat Dec  7 17:19:31 2013	(r10385)
+++ trunk/BOOK/chapter06/util-linux.xml	Sat Dec  7 19:02:53 2013	(r10386)
@@ -59,23 +59,9 @@
   <sect2 role="installation">
     <title>Installation of Util-linux</title>
 
-<screen><userinput remap="configure">./configure --disable-su --disable-sulogin --disable-login</userinput></screen>
+    <para>Prepare Util-linux for compilation:</para>
 
-    <variablelist>
-      <title>The meaning of the configure option:</title>
-
-      <varlistentry>
-        <term><parameter>--disable-*</parameter></term>
-        <listitem>
-          <para>These switches disable building su, sulogin, and login.  They
-          duplicate the same programs provided by <xref
-          linkend='ch-system-shadow'/> and <xref linkend='ch-system-sysvinit'/>.
-          They also require
-          <ulink url="&blfs-root;/view/svn/postlfs/linux-pam.html">Linux-PAM</ulink>
-          which is not available in LFS.</para>
-        </listitem>
-      </varlistentry>
-    </variablelist>
+<screen><userinput remap="configure">./configure</userinput></screen>
 
     <para>Compile the package:</para>
 
@@ -84,12 +70,11 @@
     <para>If desired, run the test suite as a non-root user:</para>
 
     <warning><para>Running the test suite as the root user can be harmful to
-    your system.  To run it, the kernel CONFIG_SCSI_DEBUG option for the kernel
-    must be available in the currently running system.  The CONFIG_SCSI_DEBUG
-    option must be built as a module.  Building it into the kernel will prevent
-    booting.  For complete coverage, other BLFS packages must be installed.  If
-    desired, this test can be run after rebooting into the completed LFS system
-    and running:</para>
+    your system.  To run it, the CONFIG_SCSI_DEBUG option for the kernel must
+    be available in the currently running system, and must be built as a
+    module.  Building it into the kernel will prevent booting.  For complete
+    coverage, other BLFS packages must be installed.  If desired, this test can
+    be run after rebooting into the completed LFS system and running:</para>
 
     <screen role="nodump"><userinput>bash tests/run.sh --srcdir=$PWD --builddir=$PWD</userinput></screen> 
     </warning>
@@ -117,17 +102,18 @@
 
       <seglistitem>
         <seg>addpart, agetty, blkdiscard, blkid, blockdev, cal, cfdisk, chcpu,
-        chrt, col, colcrt, colrm, column, ctrlaltdel, cytune, delpart,
-        dmesg, eject, fallocate, fdformat, fdisk, findfs, findmnt, flock, fsck,
-        fsck.cramfs, fsck.minix, fsfreeze, fstrim, getopt, hexdump, hwclock, i386,
-        ionice, ipcmk, ipcrm, ipcs, isosize, kill, ldattach, linux32, linux64,
-        logger, look, losetup, lsblk, lscpu, lslocks, mcookie, mkfs, mkfs.bfs,
-        mkfs.cramfs, mkfs.minix, mkswap, more, mount, mountpoint, namei, partx,
-        pg, pivot_root, prlimit, raw, readprofile, rename, renice, resizepart,
-        rev, rtcwake, script, scriptreplay, setarch, setsid, setterm, sfdisk,
-        swaplabel, swapoff (link to swapon), swapon, switch_root, tailf,
-        taskset, ul, umount, unshare, utmpdump, uuidd, uuidgen, wall,
-        wdctl, whereis, wipefs, and x86_64</seg>
+        chrt, col, colcrt, colrm, column, ctrlaltdel, cytune, delpart, dmesg,
+        eject, fallocate, fdformat, fdisk, findfs, findmnt, flock, fsck,
+        fsck.cramfs, fsck.minix, fsfreeze, fstrim, getopt, hexdump, hwclock,
+        i386, ionice, ipcmk, ipcrm, ipcs, isosize, kill, last, lastb (link to
+        last), ldattach, linux32, linux64, logger, look, losetup, lsblk, lscpu,
+        lslocks, mcookie, mkfs, mkfs.bfs, mkfs.cramfs, mkfs.minix, mkswap,
+        more, mount, mountpoint, namei, partx, pg, pivot_root, prlimit, raw,
+        readprofile, rename, renice, resizepart, rev, rtcwake, script,
+        scriptreplay, setarch, setsid, setterm, sfdisk, sulogin, swaplabel,
+        swapoff (link to swapon), swapon, switch_root, tailf, taskset, ul,
+        umount, unshare, utmpdump, uuidd, uuidgen, wall, wdctl, whereis,
+        wipefs, and x86_64</seg>
 
         <seg>libblkid.{a,so}, libmount.{a,so}, libuuid.{a,so}</seg>
 
@@ -546,6 +532,29 @@
         </listitem>
       </varlistentry>
 
+      <varlistentry id="last">
+        <term><command>last</command></term>
+        <listitem>
+          <para>Shows which users last logged in (and out), searching back 
+          through the <filename>/var/log/wtmp</filename> file; it also shows 
+          system boots, shutdowns, and run-level changes</para>
+          <indexterm zone="ch-system-util-linux last">
+            <primary sortas="b-last">last</primary>
+          </indexterm>
+        </listitem>
+      </varlistentry>
+
+      <varlistentry id="lastb">
+        <term><command>lastb</command></term>
+        <listitem>
+          <para>Shows the failed login attempts, as logged in 
+          <filename>/var/log/btmp</filename></para>
+          <indexterm zone="ch-system-util-linux lastb">
+            <primary sortas="b-lastb">lastb</primary>
+          </indexterm>
+        </listitem>
+      </varlistentry>
+
       <varlistentry id="ldattach">
         <term><command>ldattach</command></term>
         <listitem>
@@ -648,6 +657,17 @@
         </listitem>
       </varlistentry>
 
+      <varlistentry id="mesg">
+        <term><command>mesg</command></term>
+        <listitem>
+          <para>Controls whether other users can send messages to the current 
+          user's terminal</para>
+          <indexterm zone="ch-system-util-linux mesg">
+            <primary sortas="b-mesg">mesg</primary>
+          </indexterm>
+        </listitem>
+      </varlistentry>
+
       <varlistentry id="mkfs">
         <term><command>mkfs</command></term>
         <listitem>
@@ -925,6 +945,18 @@
           </indexterm>
         </listitem>
       </varlistentry>
+
+      <varlistentry id="sulogin">
+        <term><command>sulogin</command></term>
+        <listitem>
+          <para>Allows <systemitem class="username">root</systemitem> to log in;
+          it is normally invoked by <command>init</command> when the system goes
+          into single user mode</para>
+          <indexterm zone="ch-system-util-linux sulogin">
+            <primary sortas="b-sulogin">sulogin</primary>
+          </indexterm>
+        </listitem>
+      </varlistentry>
 
       <varlistentry id="swaplabel">
         <term><command>swaplabel</command></term>



More information about the lfs-book mailing list