From 26954aad8d430e7be853ba568c743315b8cb4fbe Mon Sep 17 00:00:00 2001 From: David Bryant Date: Thu, 15 Dec 2022 11:07:56 -0600 Subject: Correct inconsistency in list of installed programs (awk --> gawk). --- chapter08/gawk.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chapter08') diff --git a/chapter08/gawk.xml b/chapter08/gawk.xml index 45a7444bf..b0e7cc43c 100644 --- a/chapter08/gawk.xml +++ b/chapter08/gawk.xml @@ -88,7 +88,7 @@ cp -v doc/{awkforai.txt,*.{eps,pdf,jpg}} /usr/share/doc/gawk-&gawk-version;Installed directories - awk (link to gawk), gawk, and awk-&gawk-version; + awk (link to gawk), gawk, and gawk-&gawk-version; filefuncs.so, fnmatch.so, fork.so, inplace.so, intdiv.so, ordchr.so, readdir.so, readfile.so, revoutput.so, revtwoway.so, rwarray.so, and time.so (all in /usr/lib/gawk) -- cgit v1.2.3-54-g00ecf From 59109ad71417440e65f13e659756eaa5281a83e9 Mon Sep 17 00:00:00 2001 From: David Bryant Date: Thu, 15 Dec 2022 12:24:46 -0600 Subject: Reordered a clumsy sentence. --- chapter08/man-db.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chapter08') diff --git a/chapter08/man-db.xml b/chapter08/man-db.xml index 523962c9a..55559b1fa 100644 --- a/chapter08/man-db.xml +++ b/chapter08/man-db.xml @@ -77,7 +77,7 @@ --enable-cache-owner=bin - This makes the system-wide cache files be owned by user + This changes ownership of the system-wide cache files to user bin. -- cgit v1.2.3-54-g00ecf From baf93f520fa8378454cfc313dd6e256c6167c875 Mon Sep 17 00:00:00 2001 From: David Bryant Date: Thu, 15 Dec 2022 12:44:44 -0600 Subject: Capitalized the name of the package. Removed "pwait" from the Short Descriptions list; it has already beeen dropped from the Installed Programs list. --- chapter08/procps.xml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'chapter08') diff --git a/chapter08/procps.xml b/chapter08/procps.xml index dbc78213c..e17d199ca 100644 --- a/chapter08/procps.xml +++ b/chapter08/procps.xml @@ -40,7 +40,7 @@ Installation of Procps-ng - Prepare procps-ng for compilation: + Prepare Procps-ng for compilation: ./configure --prefix=/usr \ --docdir=/usr/share/doc/procps-ng-&procps-ng-version; \ @@ -60,7 +60,7 @@ --disable-kill This switch disables building the kill - command that will be installed by the Util-linux package. + command; it will be installed from the Util-linux package. @@ -181,7 +181,7 @@ make check - + pwdx -- cgit v1.2.3-54-g00ecf From c8e374b510336132931a766bc07dc535cd9e775a Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Fri, 16 Dec 2022 15:51:50 +0800 Subject: gawk: LN='ln -f' is an overridden make variable, not environment variable `LN='ln -f' make install` won't work. The terminlogy "override" is from section 9.5 of "info make". --- chapter08/gawk.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chapter08') diff --git a/chapter08/gawk.xml b/chapter08/gawk.xml index b0e7cc43c..192cc9f32 100644 --- a/chapter08/gawk.xml +++ b/chapter08/gawk.xml @@ -61,7 +61,7 @@ make LN='ln -f' install - The meaning of the make environment variable: + The meaning of the overridden make variable: LN='ln -f' -- cgit v1.2.3-54-g00ecf From 9bb4939772b0f0f7acd7475bcd9d6c3d1166ac75 Mon Sep 17 00:00:00 2001 From: David Bryant Date: Fri, 16 Dec 2022 16:24:32 -0600 Subject: Patched clumsy verbiage. Added two items (hardlink, lsfd) to the list of installed programs. Added (link to setarch) to the five items that link to setarch. Corrected erroneous description of swapoff. Clarified some of the "short descriptions". Changed the imperative mood to the indicative mood, and added an "s" to a couple of possessive nouns. --- chapter08/util-linux.xml | 81 +++++++++++++++++++++++++++++++----------------- 1 file changed, 52 insertions(+), 29 deletions(-) (limited to 'chapter08') diff --git a/chapter08/util-linux.xml b/chapter08/util-linux.xml index 7648d2a7f..221743d3d 100644 --- a/chapter08/util-linux.xml +++ b/chapter08/util-linux.xml @@ -77,7 +77,7 @@ --docdir=/usr/share/doc/util-linux-&util-linux-version; The --disable and --without options prevent warnings about - building components that require packages not in LFS or are + building components that either require packages not in LFS, or are inconsistent with programs installed by other packages. Compile the package: @@ -92,7 +92,7 @@ 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: + be run by booting into the completed LFS system and running: bash tests/run.sh --srcdir=$PWD --builddir=$PWD @@ -125,16 +125,17 @@ su tester -c "make -k check" addpart, agetty, blkdiscard, blkid, blkzone, blockdev, cal, cfdisk, chcpu, chmem, choom, chrt, col, colcrt, colrm, column, ctrlaltdel, delpart, dmesg, eject, fallocate, fdisk, fincore, findfs, findmnt, flock, fsck, - fsck.cramfs, fsck.minix, fsfreeze, fstrim, getopt, hexdump, hwclock, - i386, ionice, ipcmk, ipcrm, ipcs, irqtop, isosize, kill, last, lastb (link to - last), ldattach, linux32, linux64, logger, look, losetup, lsblk, lscpu, - lsipc, lsirq, lslocks, lslogins, lsmem, lsns, mcookie, mesg, mkfs, mkfs.bfs, mkfs.cramfs, mkfs.minix, mkswap, + fsck.cramfs, fsck.minix, fsfreeze, fstrim, getopt, hardlink, hexdump, hwclock, + i386 (link to setarch), ionice, ipcmk, ipcrm, ipcs, irqtop, isosize, kill, last, + lastb (link to last), ldattach, linux32 (link to setarch), linux64 (link to setarch), + logger, look, losetup, lsblk, lscpu, lsipc, lsirq, lsfd, lslocks, lslogins, + lsmem, lsns, mcookie, mesg, mkfs, mkfs.bfs, mkfs.cramfs, mkfs.minix, mkswap, more, mount, mountpoint, namei, nsenter, partx, pivot_root, prlimit, readprofile, rename, renice, resizepart, rev, rfkill, rtcwake, script, scriptlive, scriptreplay, setarch, setsid, setterm, sfdisk, sulogin, swaplabel, - swapoff (link to swapon), swapon, switch_root, taskset, uclampset, ul, - umount, uname26, unshare, utmpdump, uuidd, uuidgen, uuidparse, wall, wdctl, whereis, - wipefs, x86_64, and zramctl + swapoff, swapon, switch_root, taskset, uclampset, ul, + umount, uname26 (link to setarch), unshare, utmpdump, uuidd, uuidgen, uuidparse, + wall, wdctl, whereis, wipefs, x86_64 (link to setarch), and zramctl libblkid.so, libfdisk.so, libmount.so, libsmartcols.so, and libuuid.so /usr/include/blkid, @@ -197,7 +198,7 @@ su tester -c "make -k check" blkzone - Runs zone command on the given block device + Is used to manage zoned storage block devices blkzone @@ -258,7 +259,8 @@ su tester -c "make -k check" choom - Displays and adjusts OOM-killer score + Displays and adjusts OOM-killer scores, used to determine + which process to kill first when Linux is Out Of Memory choom @@ -390,7 +392,7 @@ su tester -c "make -k check" findfs - Finds a file system by label or Universally Unique Identifier + Finds a file system, either by label or Universally Unique Identifier (UUID) findfs @@ -402,7 +404,7 @@ su tester -c "make -k check" findmnt Is a command line interface to the libmount library - for work with mountinfo, fstab and mtab files + for working with mountinfo, fstab and mtab files findmnt @@ -482,12 +484,22 @@ su tester -c "make -k check" + + + hardlink + + Consolidates duplicate files by creating hard links + + hardlink + + + hexdump - Dumps the given file in hexadecimal or in another given - format + Dumps the given file in hexadecimal, decimal, octal, + or ascii hexdump @@ -690,6 +702,16 @@ su tester -c "make -k check" + + + lsfd + + Displays information about open files; replaces lsof + + lsfd + + + lsipc @@ -861,7 +883,7 @@ su tester -c "make -k check" namei - Shows the symbolic links in the given pathnames + Shows the symbolic links in the given paths namei @@ -903,7 +925,7 @@ su tester -c "make -k check" prlimit - Get and set a process' resource limits + Gets and sets a process's resource limits prlimit @@ -974,7 +996,7 @@ su tester -c "make -k check" rtcwake - Used to enter a system sleep state until specified wakeup + Used to enter a system sleep state until the specified wakeup time rtcwake @@ -995,7 +1017,7 @@ su tester -c "make -k check" scriptlive - Re-run session typescripts using timing information + Re-runs session typescripts using timing information scriptlive @@ -1015,7 +1037,7 @@ su tester -c "make -k check" setarch - Changes reported architecture in a new program environment and + Changes reported architecture in a new program environment, and sets personality flags setarch @@ -1068,7 +1090,7 @@ su tester -c "make -k check" swaplabel - Allows to change swaparea UUID and label + Makes changes to the swap area's UUID and label swaplabel @@ -1088,7 +1110,7 @@ su tester -c "make -k check" swapon - Enables devices and files for paging and swapping and + Enables devices and files for paging and swapping, and lists the devices and files currently in use swapon @@ -1109,7 +1131,7 @@ su tester -c "make -k check" taskset - Retrieves or sets a process' CPU affinity + Retrieves or sets a process's CPU affinity taskset @@ -1119,7 +1141,7 @@ su tester -c "make -k check" uclampset - Manipulate the utilization clamping attributes of the + Manipulates the utilization clamping attributes of the system or a process uclampset @@ -1171,7 +1193,7 @@ su tester -c "make -k check" utmpdump - Displays the content of the given login file in a more + Displays the content of the given login file in a user-friendly format utmpdump @@ -1193,9 +1215,10 @@ su tester -c "make -k check" uuidgen - Creates new UUIDs. Each new UUID can reasonably be considered + Creates new UUIDs. Each new UUID is a random number likely to be unique among all UUIDs created, on the local system and on other - systems, in the past and in the future + systems, in the past and in the future, with extremely high + probability (~340 trillion trillion trillion unique UUIDs are possible) uuidgen @@ -1205,7 +1228,7 @@ su tester -c "make -k check" uuidparse - An utility to parse unique identifiers + A utility to parse unique identifiers uuidparse @@ -1237,7 +1260,7 @@ su tester -c "make -k check" whereis Reports the location of the binary, source, and man page - for the given command + files for the given command whereis -- cgit v1.2.3-54-g00ecf From 8cde1045985f5a4ddf73dba34deac0f103f09a37 Mon Sep 17 00:00:00 2001 From: David Bryant Date: Sat, 17 Dec 2022 14:17:55 -0600 Subject: Capitalize the name of the package. Standardize references to "ext{234}" file systems. Clean up English idiom here and there. Standardize the spelling of "file system"; unless it's part of a command or something like that, it should be written as two words. --- chapter08/e2fsprogs.xml | 73 +++++++++++++++++++++++++------------------------ 1 file changed, 37 insertions(+), 36 deletions(-) (limited to 'chapter08') diff --git a/chapter08/e2fsprogs.xml b/chapter08/e2fsprogs.xml index 79fdc5f1f..bccf33227 100644 --- a/chapter08/e2fsprogs.xml +++ b/chapter08/e2fsprogs.xml @@ -23,7 +23,7 @@ - <para>The e2fsprogs package contains the utilities for handling the + <para>The E2fsprogs package contains the utilities for handling the <systemitem class="filesystem">ext2</systemitem> file system. It also supports the <systemitem class="filesystem">ext3</systemitem> and <systemitem class="filesystem">ext4</systemitem> journaling @@ -44,13 +44,13 @@ <sect2 role="installation"> <title>Installation of E2fsprogs - The e2fsprogs documentation recommends that the package be built in + The E2fsprogs documentation recommends that the package be built in a subdirectory of the source tree: mkdir -v build cd build - Prepare e2fsprogs for compilation: + Prepare E2fsprogs for compilation: ../configure --prefix=/usr \ --sysconfdir=/etc \ @@ -74,11 +74,11 @@ cd build --disable-* - This prevents e2fsprogs from building and installing the + These prevent building and installing the libuuid and libblkid libraries, the uuidd daemon, and the - fsck wrapper, as util-linux installs more + fsck wrapper; util-linux installs more recent versions. @@ -175,11 +175,8 @@ install-info --dir-file=/usr/share/info/dir /usr/share/info/com_err.info chattr - Changes the attributes of files on an ext2 file system; it also - changes ext3 - file systems, the journaling version of ext2 file systems + Changes the attributes of files on ext{234} file systems chattr @@ -202,8 +199,8 @@ install-info --dir-file=/usr/share/info/dir /usr/share/info/com_err.infodebugfs A file system debugger; it can be used to examine and change - the state of an ext2 - file system + the state of ext{234} + file systems debugfs @@ -234,9 +231,8 @@ install-info --dir-file=/usr/share/info/dir /usr/share/info/com_err.info e2fsck - Is used to check, and optionally repair ext2 file systems and ext3 file systems + Is used to check and optionally repair ext{234} file systems e2fsck @@ -247,7 +243,7 @@ install-info --dir-file=/usr/share/info/dir /usr/share/info/com_err.infoe2image Is used to save critical ext2 file system data to a file + class="filesystem">ext{234} file system data to a file e2image @@ -258,7 +254,7 @@ install-info --dir-file=/usr/share/info/dir /usr/share/info/com_err.infoe2label Displays or changes the file system label on the ext2 file system present on a given + class="filesystem">ext{234} file system on a given device e2label @@ -269,7 +265,8 @@ install-info --dir-file=/usr/share/info/dir /usr/share/info/com_err.info e2mmpstatus - Checks MMP status of an ext4 filesystem + Checks MMP (Multiple Mount Protection) status of an ext4 file system e2mmpstatus @@ -279,7 +276,8 @@ install-info --dir-file=/usr/share/info/dir /usr/share/info/com_err.info e2scrub - Checks the contents of a mounted ext[234] filesystem + Checks the contents of a mounted ext{234} file system e2scrub @@ -289,7 +287,8 @@ install-info --dir-file=/usr/share/info/dir /usr/share/info/com_err.info e2scrub_all - Checks all mounted ext[234] filesystems for errors + Checks all mounted ext{234} + file systems for errors e2scrub_all @@ -299,9 +298,10 @@ install-info --dir-file=/usr/share/info/dir /usr/share/info/com_err.info e2undo - Replays the undo log undo_log for an ext2/ext3/ext4 filesystem - found on a device [This can be used to undo a failed operation by an - e2fsprogs program.] + Replays the undo log for an ext{234} file system + found on a device. [This can be used to undo a failed operation by an + E2fsprogs program.] e2undo @@ -311,7 +311,8 @@ install-info --dir-file=/usr/share/info/dir /usr/share/info/com_err.info e4crypt - Ext4 filesystem encryption utility + Ext4 + file system encryption utility e4crypt @@ -321,7 +322,8 @@ install-info --dir-file=/usr/share/info/dir /usr/share/info/com_err.info e4defrag - Online defragmenter for ext4 filesystems + Online defragmenter for ext4 file systems e4defrag @@ -407,9 +409,8 @@ install-info --dir-file=/usr/share/info/dir /usr/share/info/com_err.info mke2fs - Creates an ext2 - or ext3 file system on - the given device + Creates an ext{234} + file system on the given device mke2fs @@ -452,8 +453,8 @@ install-info --dir-file=/usr/share/info/dir /usr/share/info/com_err.info mklost+found - Used to create a lost+found - directory on an ext2 file + Creates a lost+found + directory on an ext{234} file system; it pre-allocates disk blocks to this directory to lighten the task of e2fsck @@ -465,8 +466,8 @@ install-info --dir-file=/usr/share/info/dir /usr/share/info/com_err.info resize2fs - Can be used to enlarge or shrink an ext2 file system + Can be used to enlarge or shrink ext{234} file systems resize2fs @@ -476,8 +477,8 @@ install-info --dir-file=/usr/share/info/dir /usr/share/info/com_err.info tune2fs - Adjusts tunable file system parameters on an ext2 file system + Adjusts tunable file system parameters on ext{234} file systems tune2fs @@ -508,8 +509,8 @@ install-info --dir-file=/usr/share/info/dir /usr/share/info/com_err.info libext2fs - Contains routines to enable user-level programs to manipulate an - ext2 file system + Contains routines to enable user-level programs to manipulate + ext{234} file systems libext2fs -- cgit v1.2.3-54-g00ecf From d15c80e1b48c272ccd5b4510c2c139bda30896bc Mon Sep 17 00:00:00 2001 From: David Bryant Date: Mon, 19 Dec 2022 13:44:36 -0600 Subject: Capitalize package names. Patch up a clumsy sentence. Change an instance of the imperative mood to the indicative. Improve the description of the "halt" and "init" programs. --- chapter08/sysklogd.xml | 8 ++++---- chapter08/sysvinit.xml | 16 ++++++++-------- 2 files changed, 12 insertions(+), 12 deletions(-) (limited to 'chapter08') diff --git a/chapter08/sysklogd.xml b/chapter08/sysklogd.xml index 9aec7ba9b..89fc314ed 100644 --- a/chapter08/sysklogd.xml +++ b/chapter08/sysklogd.xml @@ -23,8 +23,8 @@ - <para>The sysklogd package contains programs for logging system messages, - such as those given by the kernel when unusual things happen.</para> + <para>The Sysklogd package contains programs for logging system messages, + such as those emitted by the kernel when unusual things happen.</para> <segmentedlist> <segtitle>&buildtime;</segtitle> @@ -41,8 +41,8 @@ <sect2 role="installation"> <title>Installation of Sysklogd - First, fix problems that causes a segmentation fault under - some conditions in klogd and fix an obsolete program construct: + First, fix a problem that causes a segmentation fault in klogd + under some conditions, and fix an obsolete program construct: sed -i '/Error loading kernel symbols/{n;n;d}' ksym_mod.c sed -i 's/union wait/int/' syslogd.c diff --git a/chapter08/sysvinit.xml b/chapter08/sysvinit.xml index 0d6914a45..7b31ec007 100644 --- a/chapter08/sysvinit.xml +++ b/chapter08/sysvinit.xml @@ -115,7 +115,7 @@ fstab-decode - Run a command with fstab-encoded arguments + Runs a command with fstab-encoded arguments fstab-decode @@ -126,10 +126,10 @@ halt Normally invokes shutdown with the - -h option, except when already in run-level 0, - then it tells the kernel to halt the system; it notes in the - file /var/log/wtmp that the system is being - brought down + -h option, but when already in run-level 0, + it tells the kernel to halt the system; it notes in the + file /var/log/wtmp that the system is + going down halt @@ -140,8 +140,8 @@ init The first process to be started when the kernel has initialized - the hardware which takes over the boot process and starts all the - proceses specified in its configuration file + the hardware; it takes over the boot process and starts all the + processes specified in its configuration file init @@ -152,7 +152,7 @@ killall5 Sends a signal to all processes, except the processes in its own - session so it will not kill its parent shell + session; it will not kill its parent shell killall5 -- cgit v1.2.3-54-g00ecf From a613960c4be169277fa1192f2aa1d4a6c107e796 Mon Sep 17 00:00:00 2001 From: David Bryant Date: Tue, 20 Dec 2022 09:26:41 -0600 Subject: Removed redundant verbiage. Rewrote a very clumsy sentence. To speak of a difference (implying subtraction) and a factor (multiplication) as equivalent is confusing at best. --- chapter08/aboutdebug.xml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'chapter08') diff --git a/chapter08/aboutdebug.xml b/chapter08/aboutdebug.xml index d646b797e..e9b90d64b 100644 --- a/chapter08/aboutdebug.xml +++ b/chapter08/aboutdebug.xml @@ -17,8 +17,8 @@ the debugger can provide not only memory addresses, but also the names of the routines and variables. - However, the inclusion of these debugging symbols enlarges a - program or library significantly. The following is an example of the + The inclusion of these debugging symbols enlarges a + program or library significantly. Here are two examples of the amount of space these symbols occupy: @@ -28,7 +28,7 @@ A bash binary without debugging symbols: - 480 KB + 480 KB (60% smaller) Glibc and GCC files (/lib @@ -36,15 +36,14 @@ symbols: 87 MB - Glibc and GCC files without debugging symbols: 16 MB + Glibc and GCC files without debugging symbols: 16 MB (82% smaller) - Sizes may vary depending on which compiler and C library were used, - but when comparing programs with and without debugging symbols, the - difference will usually be a factor between two and five. - - Because most users will never use a debugger on their system software, + Sizes will vary depending on which compiler and C library were used, + but a program that has been stripped of debugging symbols is usually some + 50% to 80% smaller than its unstripped counterpart. + Because most users will never use a debugger on their system software, a lot of disk space can be regained by removing these symbols. The next section shows how to strip all debugging symbols from the programs and libraries. -- cgit v1.2.3-54-g00ecf From 0785a5e6ddee48b499d6a19e9e17ca0eeea8c393 Mon Sep 17 00:00:00 2001 From: David Bryant Date: Tue, 20 Dec 2022 09:48:03 -0600 Subject: Remove redundant verbiage; improve English idiom. --- chapter08/cleanup.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'chapter08') diff --git a/chapter08/cleanup.xml b/chapter08/cleanup.xml index c55b7af2f..daa38f597 100644 --- a/chapter08/cleanup.xml +++ b/chapter08/cleanup.xml @@ -10,16 +10,16 @@ Cleaning Up - Finally, clean up some extra files left around from running tests: + Finally, clean up some extra files left over from running tests: rm -rf /tmp/* - There are also several files installed in the /usr/lib and /usr/libexec + There are also several files in the /usr/lib and /usr/libexec directories with a file name extension of .la. These are "libtool archive" - files. As already said, on a modern Linux system the libtool .la files are + files. On a modern Linux system the libtool .la files are only useful for libltdl. No libraries in LFS are expected to be loaded - by libltdl, and it's known that some .la files can cause BLFS packages - fail to build. Remove those files now: + by libltdl, and it's known that some .la files can break BLFS package + builds. Remove those files now: find /usr/lib /usr/libexec -name \*.la -delete -- cgit v1.2.3-54-g00ecf From 9c753b58f1db4267ee47a990b118782773dedd96 Mon Sep 17 00:00:00 2001 From: David Bryant Date: Tue, 20 Dec 2022 13:57:22 -0600 Subject: Improve English idiom and make additional changes, for clarity. Rephrased a clumsy sentence. Broke a run-on sentence in two. Used adverbs, and the possessive case, where necessary. --- chapter08/stripping.xml | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'chapter08') diff --git a/chapter08/stripping.xml b/chapter08/stripping.xml index d82b72ac1..eaabab5b7 100644 --- a/chapter08/stripping.xml +++ b/chapter08/stripping.xml @@ -12,39 +12,39 @@ This section is optional. If the intended user is not a programmer and does not plan to do - any debugging on the system software, the system size can be decreased - by about 2 GB by removing the debugging symbols and unneeded symbol table - entries from binaries and libraries. This causes no inconvenience other - than not being able to debug the software fully anymore. + any debugging of the system software, the system's size can be decreased + by some 2 GB by removing the debugging symbols, and some unnecessary symbol table + entries, from binaries and libraries. This causes no real inconvenience for + a typical Linux user. Most people who use the commands mentioned below do not - experience any difficulties. However, it is easy to make a typo and - render the new system unusable, so before running the + experience any difficulties. However, it is easy to make a mistake and + render the new system unusable. So before running the strip commands, it is a good idea to make a backup of the LFS system in its current state. - A strip command with + A strip command with the --strip-unneeded option removes all debug symbols - from a binary or library. And, it removes all symbol table entries not + from a binary or library. It also removes all symbol table entries not needed by the linker (for static libraries) or dynamic linker (for - dynamic-linked binaries and shared libraries). + dynamically linked binaries and shared libraries). - The debugging symbols for selected libraries are placed - in separate files. This debugging information is needed if running - regression tests that use The debugging symbols from selected libraries are preserved + in separate files. That debugging information is needed to run + regression tests with valgrind or gdb later in BLFS. + url='&blfs-book;/general/gdb.html'>gdb later, in BLFS. Note that strip will overwrite the binary or library file it is processing. This can crash the processes using code or data from - the file. If the process running strip itself is - affected, the binary or library being stripped can be destroyed and can - make the system completely unusable. To avoid it, we'll copy some libraries + the file. If the process running strip is + affected, the binary or library being stripped can be destroyed; this can + make the system completely unusable. To avoid this problem we copy some libraries and binaries into /tmp, strip them - there, and install them back with the install command. - Read the related entry in for the - rationale to use the install command here. + there, then reinstall them with the install command. + (The related entry in gives the + rationale for using the install command here.) The ELF loader's name is ld-linux-x86-64.so.2 on 64-bit systems and ld-linux.so.2 on 32-bit systems. The construct below selects the @@ -111,8 +111,8 @@ done unset BIN LIB save_usrlib online_usrbin online_usrlib - A large number of files will be reported as having their file - format not recognized. These warnings can be safely ignored. They - indicate that those files are scripts instead of binaries. + A large number of files will be flagged as errors because their file + format is not recognized. These warnings can be safely ignored. They + indicate that those files are scripts, not binaries. -- cgit v1.2.3-54-g00ecf From 7ae2811988d440448f8f993d6e9b2df4652f3833 Mon Sep 17 00:00:00 2001 From: David Bryant Date: Sat, 24 Dec 2022 10:00:23 -0600 Subject: Standardize spelling of "userspace". --- chapter07/kernfs.xml | 2 +- chapter08/libcap.xml | 2 +- chapter08/pkgmgt.xml | 2 +- prologue/why.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'chapter08') diff --git a/chapter07/kernfs.xml b/chapter07/kernfs.xml index 1f72fecf2..b5b0762bb 100644 --- a/chapter07/kernfs.xml +++ b/chapter07/kernfs.xml @@ -14,7 +14,7 @@ /dev/* - Applications running in user space utilize various file + Applications running in userspace utilize various file systems created by the kernel to communicate with the kernel itself. These file systems are virtual: no disk space is used for them. The content of these file systems resides in diff --git a/chapter08/libcap.xml b/chapter08/libcap.xml index 89348db88..367e05c3f 100644 --- a/chapter08/libcap.xml +++ b/chapter08/libcap.xml @@ -23,7 +23,7 @@ - <para>The Libcap package implements the user-space interface to the POSIX + <para>The Libcap package implements the userspace interface to the POSIX 1003.1e capabilities available in Linux kernels. These capabilities partition the all-powerful root privilege into a set of distinct privileges.</para> diff --git a/chapter08/pkgmgt.xml b/chapter08/pkgmgt.xml index d4b616bc7..8bf8dfdaa 100644 --- a/chapter08/pkgmgt.xml +++ b/chapter08/pkgmgt.xml @@ -55,7 +55,7 @@ <para>If the Linux kernel needs to be upgraded (for example, from 5.10.17 to 5.10.18 or 5.11.1), nothing else needs to be rebuilt. The system will keep working fine thanks to the well-defined interface - between the kernel and user space. Specifically, Linux API headers + between the kernel and userspace. Specifically, Linux API headers need not be (and should not be, see the next item) upgraded along with the kernel. You will merely need to reboot your system to use the upgraded kernel.</para> diff --git a/prologue/why.xml b/prologue/why.xml index fac1e1559..ea22b04df 100644 --- a/prologue/why.xml +++ b/prologue/why.xml @@ -328,7 +328,7 @@ <listitem> <para>Libcap</para> - <para>This package implements the user-space interfaces to + <para>This package implements the userspace interfaces to the POSIX 1003.1e capabilities available in Linux kernels. </para> </listitem> -- cgit v1.2.3-54-g00ecf From e193e35799dc8e247c9efecf8440a835462a77ed Mon Sep 17 00:00:00 2001 From: "Douglas R. Reno" <renodr@linuxfromscratch.org> Date: Wed, 28 Dec 2022 09:52:50 -0600 Subject: Patch systemd against CVE-2022-4415 --- chapter01/changelog.xml | 10 ++++++++++ chapter01/whatsnew.xml | 4 ++++ chapter03/patches.xml | 4 ++-- chapter08/systemd.xml | 6 +++--- patches.ent | 10 +++++----- 5 files changed, 24 insertions(+), 10 deletions(-) (limited to 'chapter08') diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index d15590c1f..7baf7c058 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -39,6 +39,16 @@ <listitem revision="sysv"> or <listitem revision="systemd"> as appropriate for the entry or if needed the entire day's listitem. --> + <listitem revision="systemd"> + <para>2022-12-28</para> + <itemizedlist> + <listitem> + <para>[renodr] - Patch systemd against CVE-2022-4415. Fixes + <ulink url="&lfs-ticket-root;5187">#5187</ulink>.</para> + </listitem> + </itemizedlist> + </listitem> + <listitem> <para>2022-12-15</para> <itemizedlist> diff --git a/chapter01/whatsnew.xml b/chapter01/whatsnew.xml index 207240036..86992592b 100644 --- a/chapter01/whatsnew.xml +++ b/chapter01/whatsnew.xml @@ -299,6 +299,10 @@ <listitem> <para>&readline-fixes-patch;</para> </listitem> + + <listitem revision="systemd"> + <para>&systemd-upstream-patch;</para> + </listitem> </itemizedlist> <itemizedlist> diff --git a/chapter03/patches.xml b/chapter03/patches.xml index 033ccd00c..05b49d319 100644 --- a/chapter03/patches.xml +++ b/chapter03/patches.xml @@ -135,7 +135,7 @@ </listitem> </varlistentry> -<!-- + <varlistentry revision="systemd"> <term>Systemd Upstream Patch - <token>&systemd-upstream-patch-size;</token>:</term> <listitem> @@ -143,7 +143,7 @@ <para>MD5 sum: <literal>&systemd-upstream-patch-md5;</literal></para> </listitem> </varlistentry> ---> + <!-- <varlistentry> <term>Xz Upstream Fix Patch - <token>&xz-upstream-fix-patch-size;</token>:</term> diff --git a/chapter08/systemd.xml b/chapter08/systemd.xml index 4548056ea..2c5c0e11b 100644 --- a/chapter08/systemd.xml +++ b/chapter08/systemd.xml @@ -40,11 +40,11 @@ <sect2 role="installation"> <title>Installation of systemd - + Remove two unneeded groups, render and diff --git a/patches.ent b/patches.ent index 53536069e..91cd3b719 100644 --- a/patches.ent +++ b/patches.ent @@ -91,11 +91,11 @@ - + + + + +