From b7daa52a5caca192864e6f35c4acff9de6d76046 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Thu, 17 Feb 2022 18:32:33 +0800 Subject: [PATCH 1/6] glibc: update desc for content Add libc_malloc_check.so (it's like libmcheck.a, but should be used with LD_PRELOAD). Add description for libmvec. "libnss" -> "libnss_*", and reword the description. --- chapter08/glibc.xml | 33 ++++++++++++++++++++++++++++----- 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/chapter08/glibc.xml b/chapter08/glibc.xml index 76dcb6ed1..fdb9cf544 100644 --- a/chapter08/glibc.xml +++ b/chapter08/glibc.xml @@ -487,7 +487,7 @@ mkdir -pv /etc/ld.so.conf.d zdump, and zic ld-linux-x86-64.so.2, ld-linux.so.2, libBrokenLocale.{a,so}, libanl.{a,so}, - libc.{a,so}, libc_nonshared.a, + libc.{a,so}, libc_nonshared.a, libc_malloc_debug.so, libcrypt.{a,so}, libdl.{a,so.2}, libg.a, libm.{a,so}, libmcheck.a, libmemusage.so, libmvec.{a,so}, libnsl.so.1, libnss_compat.so, libnss_dns.so, libnss_files.so, libnss_hesiod.so, @@ -782,6 +782,16 @@ mkdir -pv /etc/ld.so.conf.d + + libc_malloc_debug + + Turns on memory allocation checking when preloaded + + libc_malloc_debug + + + + libcrypt @@ -825,6 +835,17 @@ mkdir -pv /etc/ld.so.conf.d + + libmvec + + The vector math library, linked in as needed + when libm is used + + libmvec + + + + libmcheck @@ -857,13 +878,15 @@ mkdir -pv /etc/ld.so.conf.d - libnss + libnss_* - The Name Service Switch libraries, containing functions for + The Name Service Switch modules, containing functions for resolving host names, user names, group names, aliases, services, - protocols, etc. + protocols, etc. Loaded by + libc according to the + configuration in /etc/nsswitch.conf - libnss + libnss_* From 85d9756bbeb5f0aa8efba51e6a6710b540f692c8 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Thu, 17 Feb 2022 18:42:32 +0800 Subject: [PATCH 2/6] expect: fix library name in description, and remove unused expect-lib-version --- chapter08/expect.xml | 6 +++--- packages.ent | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/chapter08/expect.xml b/chapter08/expect.xml index 6503372c6..6286d9033 100644 --- a/chapter08/expect.xml +++ b/chapter08/expect.xml @@ -102,7 +102,7 @@ ln -svf expect&expect-version;/libexpect&expect-version;.so /usr/lib expect - libexpect-&expect-lib-version;.so + libexpect&expect-version;.so @@ -123,12 +123,12 @@ ln -svf expect&expect-version;/libexpect&expect-version;.so /usr/lib - libexpect-&expect-lib-version;.so + libexpect-&expect-version;.so Contains functions that allow Expect to be used as a Tcl extension or to be used directly from C or C++ (without Tcl) - libexpect-&expect-lib-version; + libexpect-&expect-version; diff --git a/packages.ent b/packages.ent index d8d7d1632..93382acd6 100644 --- a/packages.ent +++ b/packages.ent @@ -172,7 +172,6 @@ - From 24fe054b4e727b5f6ffcf0f4a07ee58672ab4116 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Thu, 17 Feb 2022 18:49:10 +0800 Subject: [PATCH 3/6] dejagnu: add description for "dejagnu" command --- chapter08/dejagnu.xml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/chapter08/dejagnu.xml b/chapter08/dejagnu.xml index 23c1734b8..4dc422f3a 100644 --- a/chapter08/dejagnu.xml +++ b/chapter08/dejagnu.xml @@ -74,7 +74,7 @@ install -v -m644 doc/dejagnu.{html,txt} /usr/share/doc/dejagnu-&dejagnu-versio Installed program - runtest + dejagnu and runtest @@ -83,6 +83,16 @@ install -v -m644 doc/dejagnu.{html,txt} /usr/share/doc/dejagnu-&dejagnu-versio + + dejagnu + + DejaGNU auxiliary command launcher + + dejagnu + + + + runtest From e5b4b3fff6b3eddaa1bc2d920c11fb964d0e3668 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Thu, 17 Feb 2022 19:07:23 +0800 Subject: [PATCH 4/6] gcc: update contents and descriptions Add lto-dump and libitm, and reword description for liblto_plugin because it's actually used by libbfd (from binutils). --- chapter08/gcc.xml | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/chapter08/gcc.xml b/chapter08/gcc.xml index e3db3bf1f..cd3a9b9fe 100644 --- a/chapter08/gcc.xml +++ b/chapter08/gcc.xml @@ -345,7 +345,8 @@ mv -v /usr/lib/*gdb.py /usr/share/gdb/auto-load/usr/lib c++, cc (link to gcc), cpp, g++, gcc, - gcc-ar, gcc-nm, gcc-ranlib, gcov, gcov-dump, and gcov-tool + gcc-ar, gcc-nm, gcc-ranlib, gcov, gcov-dump, gcov-tool, + and lto-dump libasan.{a,so}, libatomic.{a,so}, libcc1.so, libgcc.a, libgcc_eh.a, libgcc_s.so, libgcov.a, libgomp.{a,so}, libitm.{a,so}, @@ -485,6 +486,17 @@ mv -v /usr/lib/*gdb.py /usr/share/gdb/auto-load/usr/lib + + lto-dump + + Tool for dumping object files produced by GCC with LTO + enabled + + lto-dump + + + + libasan @@ -547,6 +559,16 @@ mv -v /usr/lib/*gdb.py /usr/share/gdb/auto-load/usr/lib + + libitm + + The GNU transactional memory library + + libitm + + + + liblsan @@ -560,8 +582,8 @@ mv -v /usr/lib/*gdb.py /usr/share/gdb/auto-load/usr/lib liblto_plugin - GCC's Link Time Optimization (LTO) plugin allows GCC to perform - optimizations across compilation units + GCC's LTO plugin allows binutils to process object files + produced by GCC with LTO enabled liblto_plugin From 662f6497ff161ce70a2aa8f5a0b40355dc386433 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Thu, 17 Feb 2022 19:25:22 +0800 Subject: [PATCH 5/6] systemd: remove systemd-cryptenroll and bootctl bootctl is not built because LFS doesn't have gnu-efi. systemd-cryptenroll is disabled if cryptsetup is not installed (should be added into BLFS). --- chapter08/systemd.xml | 25 +++++++------------------ 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/chapter08/systemd.xml b/chapter08/systemd.xml index 9d43b65ad..68d6cb264 100644 --- a/chapter08/systemd.xml +++ b/chapter08/systemd.xml @@ -222,14 +222,14 @@ meson --prefix=/usr \ Installed directories - bootctl, busctl, coredumpctl, halt (symlink to systemctl), + busctl, coredumpctl, halt (symlink to systemctl), hostnamectl, init, journalctl, kernel-install, localectl, loginctl, machinectl, networkctl, oomctl, portablectl, poweroff (symlink to systemctl), reboot (symlink to systemctl), resolvconf (symlink to resolvectl), resolvectl, runlevel (symlink to systemctl), shutdown (symlink to systemctl), systemctl, systemd-analyze, systemd-ask-password, systemd-cat, systemd-cgls, systemd-cgtop, - systemd-cryptenroll, systemd-delta, systemd-detect-virt, + systemd-creds, systemd-delta, systemd-detect-virt, systemd-dissect, systemd-escape, systemd-hwdb, systemd-id128, systemd-inhibit, systemd-machine-id-setup, systemd-mount, systemd-notify, systemd-nspawn, systemd-path, @@ -258,16 +258,6 @@ meson --prefix=/usr \ - - bootctl - - Is used to query the firmware and boot manager settings - - bootctl - - - - busctl @@ -546,13 +536,12 @@ meson --prefix=/usr \ - - systemd-cryptenroll + + systemd-creds - Is used to enroll or remove a system from full disk encryption, - as well as set and query private keys and recovery keys - - systemd-cryptenroll + Displays and processes credentials. + + systemd-creds From b5e4ab72f196d765ce4ad7b8281f5c2fd1d6ada5 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Thu, 17 Feb 2022 19:37:23 +0800 Subject: [PATCH 6/6] shadow: add description for libsubid --- chapter08/shadow.xml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/chapter08/shadow.xml b/chapter08/shadow.xml index 8494c9736..db6cbafd3 100644 --- a/chapter08/shadow.xml +++ b/chapter08/shadow.xml @@ -244,6 +244,7 @@ useradd -D --gid 999 Installed programs Installed directory + Installed libraries chage, chfn, chgpasswd, chpasswd, chsh, expiry, faillog, @@ -253,6 +254,9 @@ useradd -D --gid 999 sg (link to newgrp), su, useradd, userdel, usermod, vigr (link to vipw), and vipw /etc/default + + libsubid.{a,so} @@ -634,6 +638,16 @@ useradd -D --gid 999 + + libsubid + + library for process subordinate id ranges for users + + libsubid + + + +