From 4783efe5de8eccca80fa9c7c7b9d6323fd045c9f Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Sun, 8 Dec 2013 03:02:53 +0000 Subject: Enable building sulogin in util-linux. Supress installing sysvinit's sulogin. Several text updates from Chris Staub. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10386 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter01/changelog.xml | 6 +++ chapter02/creatingfilesystem.xml | 2 +- chapter05/libstdc++.xml | 2 +- chapter06/gcc.xml | 10 ++++ chapter06/systemd.xml | 2 +- chapter06/sysvinit.xml | 44 +++++------------- chapter06/util-linux.xml | 98 ++++++++++++++++++++++++++-------------- 7 files changed, 95 insertions(+), 69 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 34b3b8abb..abdd758cf 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -38,6 +38,12 @@ 2013-12-07 + + [bdubbs] - Enable building sulogin in util-linux. + Supress installing sysvinit's sulogin. + Fixes + #3435. + [bdubbs] - Supress installing sysvinit's mesg and last that overwrite the versions installed by util-linux. diff --git a/chapter02/creatingfilesystem.xml b/chapter02/creatingfilesystem.xml index a5b9df3d9..75c81b227 100644 --- a/chapter02/creatingfilesystem.xml +++ b/chapter02/creatingfilesystem.xml @@ -34,7 +34,7 @@ ext4 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. diff --git a/chapter05/libstdc++.xml b/chapter05/libstdc++.xml index 02c4a05db..9a6ad2415 100644 --- a/chapter05/libstdc++.xml +++ b/chapter05/libstdc++.xml @@ -99,7 +99,7 @@ cd ../gcc-build searched by the C++ compiler. In a normal build, this information is automatically passed to the Libstdc++ configure options from the toplevel directory. In our case, this information - must be explicitely given. + must be explicitly given. diff --git a/chapter06/gcc.xml b/chapter06/gcc.xml index e9e0dbe04..34cff2785 100644 --- a/chapter06/gcc.xml +++ b/chapter06/gcc.xml @@ -430,6 +430,16 @@ mv -v /usr/lib/*gdb.py /usr/share/gdb/auto-load/usr/lib + + libasan + + The Address Sanitizer runtime library + + libasan + + + + libgcc diff --git a/chapter06/systemd.xml b/chapter06/systemd.xml index a312bd05c..ca1fa4b43 100644 --- a/chapter06/systemd.xml +++ b/chapter06/systemd.xml @@ -65,7 +65,7 @@ systemd 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, - /etc/udev/hwdb.bin, cannot be changed without explict + /etc/udev/hwdb.bin, cannot be changed without explicit changes to the source code. Now initialize the hardware database: diff --git a/chapter06/sysvinit.xml b/chapter06/sysvinit.xml index 98851f709..548616b84 100644 --- a/chapter06/sysvinit.xml +++ b/chapter06/sysvinit.xml @@ -56,13 +56,15 @@ Maintained versions of the wall, mountpoint, last, - mesg, and utmpdump programs were - installed earlier by Util-linux. Suppress the installation of Sysvinit's - versions of these programs and their man pages: + mesg, sulogin, and + utmpdump programs were installed earlier by Util-linux. + Suppress the installation of Sysvinit's versions of these programs and + their man pages: -sed -i -e '/utmpdump/d' \ - -e '/mountpoint/d' \ - -e '/mesg/d' src/Makefile +sed -ri -e '/utmpdump/d' \ + -e '/mountpoint/d' \ + -e '/mesg/d' \ + -e 's/= sulogin(\.8)?/=/' src/Makefile Compile the package: @@ -83,10 +85,9 @@ Installed programs - 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) + 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) @@ -153,17 +154,6 @@ - - lastb - - Shows the failed login attempts, as logged in - /var/log/btmp - - lastb - - - - pidof @@ -218,18 +208,6 @@ - - sulogin - - Allows root to log in; - it is normally invoked by init when the system goes - into single user mode - - sulogin - - - - telinit diff --git a/chapter06/util-linux.xml b/chapter06/util-linux.xml index 96949d86f..063082be0 100644 --- a/chapter06/util-linux.xml +++ b/chapter06/util-linux.xml @@ -59,23 +59,9 @@ mkdir -pv /var/lib/hwclock Installation of Util-linux -./configure --disable-su --disable-sulogin --disable-login + Prepare Util-linux for compilation: - - The meaning of the configure option: - - - --disable-* - - These switches disable building su, sulogin, and login. They - duplicate the same programs provided by and . - They also require - Linux-PAM - which is not available in LFS. - - - +./configure Compile the package: @@ -84,12 +70,11 @@ mkdir -pv /var/lib/hwclock If desired, run the test suite as a non-root user: 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: + 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: bash tests/run.sh --srcdir=$PWD --builddir=$PWD @@ -117,17 +102,18 @@ su nobody -s /bin/bash -c "PATH=$PATH make -k check" 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 + 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 libblkid.{a,so}, libmount.{a,so}, libuuid.{a,so} @@ -546,6 +532,29 @@ su nobody -s /bin/bash -c "PATH=$PATH make -k check" + + last + + Shows which users last logged in (and out), searching back + through the /var/log/wtmp file; it also shows + system boots, shutdowns, and run-level changes + + last + + + + + + lastb + + Shows the failed login attempts, as logged in + /var/log/btmp + + lastb + + + + ldattach @@ -648,6 +657,17 @@ su nobody -s /bin/bash -c "PATH=$PATH make -k check" + + mesg + + Controls whether other users can send messages to the current + user's terminal + + mesg + + + + mkfs @@ -926,6 +946,18 @@ su nobody -s /bin/bash -c "PATH=$PATH make -k check" + + sulogin + + Allows root to log in; + it is normally invoked by init when the system goes + into single user mode + + sulogin + + + + swaplabel -- cgit v1.2.3-54-g00ecf