From fcc027677da55c41dcaea045f5b9ff8b088e6495 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Sun, 7 Jun 2020 20:16:00 +0000 Subject: Initial commit of alternative cross LFS git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11897 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter08/libffi.xml | 133 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 133 insertions(+) create mode 100644 chapter08/libffi.xml (limited to 'chapter08/libffi.xml') diff --git a/chapter08/libffi.xml b/chapter08/libffi.xml new file mode 100644 index 000000000..6a6f8a458 --- /dev/null +++ b/chapter08/libffi.xml @@ -0,0 +1,133 @@ + + + %general-entities; +]> + + + + + + libffi + &libffi-version; +
&libffi-url;
+
+ + Libffi-&libffi-version; + + + libffi + + + + + + <para>The Libffi library provides a portable, high level programming + interface to various calling conventions. This allows a programmer to call + any function specified by a call interface description at run time.</para> + + <segmentedlist> + <segtitle>&buildtime;</segtitle> + <segtitle>&diskspace;</segtitle> + + <seglistitem> + <seg>&libffi-ch6-sbu;</seg> + <seg>&libffi-ch6-du;</seg> + </seglistitem> + </segmentedlist> + + </sect2> + + <sect2 role="installation"> + <title>Installation of Libffi + + + Similar to GMP, libffi builds with optimizations specific + to the proccesor in use. If building for another system, export + CFLAGS and CXXFLAGS to specify a generic build for your architecture. + If this is not done, all applications that link to libffi will trigger + Illegal Operation Errors. + + + Prepare libffi for compilation: + +./configure --prefix=/usr --disable-static --with-gcc-arch=native + + + The meaning of the configure option: + + + --with-gcc-arch=native + + Ensure gcc optimizes for the current system. If this + is not specified, the system is guessed and the code generated + may not be correct for some systems. If the generated code + will be copied from the native system to a less capable + system, use the less capable system as a parameter. For details + about alternative system types, see + the x86 options in the gcc manual. + + + + + + Compile the package: + +make + + To test the results, issue: + +make check + + Six tests, all related to test-callback.c, are known to fail. + + Install the package: + +make install + + + + + Contents of Libffi + + + Installed library + + + libffi.so + + + + + Short Descriptions + + + + + libffi + + contains the libffi API functions. + + libffi + + + + + + + +
+ -- cgit v1.2.3-54-g00ecf From fb386e05f17d44dc6322a1b3db172cc297ed5ce5 Mon Sep 17 00:00:00 2001 From: Thomas Trepl Date: Thu, 11 Jun 2020 12:55:28 +0000 Subject: Rename package entities to be independent of chapter numbering git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11921 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter05/binutils-pass1.xml | 4 +- chapter05/gcc-pass1.xml | 4 +- chapter05/glibc.xml | 4 +- chapter05/libstdc++.xml | 4 +- chapter05/linux-headers.xml | 4 +- chapter06/bash.xml | 4 +- chapter06/binutils-pass2.xml | 4 +- chapter06/coreutils.xml | 4 +- chapter06/diffutils.xml | 4 +- chapter06/file.xml | 4 +- chapter06/findutils.xml | 4 +- chapter06/gawk.xml | 4 +- chapter06/gcc-pass2.xml | 4 +- chapter06/grep.xml | 4 +- chapter06/gzip.xml | 4 +- chapter06/m4.xml | 4 +- chapter06/make.xml | 4 +- chapter06/ncurses.xml | 4 +- chapter06/patch.xml | 4 +- chapter06/sed.xml | 4 +- chapter06/tar.xml | 4 +- chapter06/xz.xml | 4 +- chapter07/bison.xml | 4 +- chapter07/dejagnu.xml | 4 +- chapter07/expect.xml | 4 +- chapter07/gettext.xml | 4 +- chapter07/libstdc++-pass2.xml | 4 +- chapter07/perl.xml | 4 +- chapter07/python.xml | 4 +- chapter07/stripping.xml | 2 +- chapter07/tcl.xml | 4 +- chapter07/texinfo.xml | 4 +- chapter07/util-linux.xml | 4 +- chapter08/acl.xml | 4 +- chapter08/attr.xml | 4 +- chapter08/autoconf.xml | 6 +- chapter08/automake.xml | 4 +- chapter08/bash.xml | 4 +- chapter08/bc.xml | 4 +- chapter08/binutils.xml | 4 +- chapter08/bison.xml | 4 +- chapter08/bzip2.xml | 4 +- chapter08/check.xml | 4 +- chapter08/coreutils.xml | 4 +- chapter08/dbus.xml | 4 +- chapter08/diffutils.xml | 4 +- chapter08/e2fsprogs.xml | 4 +- chapter08/eudev.xml | 4 +- chapter08/expat.xml | 4 +- chapter08/file.xml | 4 +- chapter08/findutils.xml | 4 +- chapter08/flex.xml | 4 +- chapter08/gawk.xml | 4 +- chapter08/gcc.xml | 4 +- chapter08/gdbm.xml | 4 +- chapter08/gettext.xml | 4 +- chapter08/glibc.xml | 4 +- chapter08/gmp.xml | 4 +- chapter08/gperf.xml | 4 +- chapter08/grep.xml | 4 +- chapter08/groff.xml | 4 +- chapter08/grub.xml | 4 +- chapter08/gzip.xml | 4 +- chapter08/iana-etc.xml | 4 +- chapter08/inetutils.xml | 4 +- chapter08/intltool.xml | 4 +- chapter08/iproute2.xml | 4 +- chapter08/kbd.xml | 4 +- chapter08/kmod.xml | 4 +- chapter08/less.xml | 4 +- chapter08/libcap.xml | 4 +- chapter08/libelf.xml | 4 +- chapter08/libffi.xml | 4 +- chapter08/libpipeline.xml | 4 +- chapter08/libtool.xml | 4 +- chapter08/m4.xml | 4 +- chapter08/make.xml | 4 +- chapter08/man-db.xml | 4 +- chapter08/man-pages.xml | 4 +- chapter08/meson.xml | 4 +- chapter08/mpc.xml | 4 +- chapter08/mpfr.xml | 4 +- chapter08/ncurses.xml | 4 +- chapter08/ninja.xml | 4 +- chapter08/openssl.xml | 4 +- chapter08/patch.xml | 4 +- chapter08/perl.xml | 4 +- chapter08/pkgconfig.xml | 4 +- chapter08/procps.xml | 4 +- chapter08/psmisc.xml | 4 +- chapter08/python.xml | 4 +- chapter08/readline.xml | 4 +- chapter08/sed.xml | 4 +- chapter08/shadow.xml | 4 +- chapter08/sysklogd.xml | 4 +- chapter08/systemd.xml | 4 +- chapter08/sysvinit.xml | 4 +- chapter08/tar.xml | 4 +- chapter08/texinfo.xml | 4 +- chapter08/util-linux.xml | 4 +- chapter08/vim.xml | 4 +- chapter08/xml-parser.xml | 4 +- chapter08/xz.xml | 4 +- chapter08/zlib.xml | 4 +- chapter08/zstd.xml | 4 +- chapter09/bootscripts.xml | 4 +- chapter10/kernel.xml | 4 +- packages.ent | 443 +++++++++++++++++++++--------------------- 108 files changed, 439 insertions(+), 432 deletions(-) (limited to 'chapter08/libffi.xml') diff --git a/chapter05/binutils-pass1.xml b/chapter05/binutils-pass1.xml index 00816c94a..914e119b8 100644 --- a/chapter05/binutils-pass1.xml +++ b/chapter05/binutils-pass1.xml @@ -33,8 +33,8 @@ &diskspace; - &binutils-ch5p1-sbu; - &binutils-ch5p1-du; + &binutils-tmpp1-sbu; + &binutils-tmpp1-du; diff --git a/chapter05/gcc-pass1.xml b/chapter05/gcc-pass1.xml index 2f8145713..e2a13a003 100644 --- a/chapter05/gcc-pass1.xml +++ b/chapter05/gcc-pass1.xml @@ -33,8 +33,8 @@ &diskspace; - &gcc-ch5p1-sbu; - &gcc-ch5p1-du; + &gcc-tmpp1-sbu; + &gcc-tmpp1-du; diff --git a/chapter05/glibc.xml b/chapter05/glibc.xml index 361dd0e58..80d1638f5 100644 --- a/chapter05/glibc.xml +++ b/chapter05/glibc.xml @@ -33,8 +33,8 @@ &diskspace; - &glibc-ch5-sbu; - &glibc-ch5-du; + &glibc-tmp-sbu; + &glibc-tmp-du; diff --git a/chapter05/libstdc++.xml b/chapter05/libstdc++.xml index 5058be9a5..0153766c4 100644 --- a/chapter05/libstdc++.xml +++ b/chapter05/libstdc++.xml @@ -37,8 +37,8 @@ &diskspace; - &libstdcpp-ch5-sbu; - &libstdcpp-ch5-du; + &libstdcpp-tmp-sbu; + &libstdcpp-tmp-du; diff --git a/chapter05/linux-headers.xml b/chapter05/linux-headers.xml index 6c1af3173..213fe7dc3 100644 --- a/chapter05/linux-headers.xml +++ b/chapter05/linux-headers.xml @@ -32,8 +32,8 @@ &diskspace; - &linux-headers-ch5-sbu; - &linux-headers-ch5-du; + &linux-headers-tmp-sbu; + &linux-headers-tmp-du; diff --git a/chapter06/bash.xml b/chapter06/bash.xml index bc0b211af..6cb1dc728 100644 --- a/chapter06/bash.xml +++ b/chapter06/bash.xml @@ -33,8 +33,8 @@ &diskspace; - &bash-ch5-sbu; - &bash-ch5-du; + &bash-tmp-sbu; + &bash-tmp-du; diff --git a/chapter06/binutils-pass2.xml b/chapter06/binutils-pass2.xml index d88bb84e2..5ccff98d8 100644 --- a/chapter06/binutils-pass2.xml +++ b/chapter06/binutils-pass2.xml @@ -33,8 +33,8 @@ &diskspace; - &binutils-ch5p2-sbu; - &binutils-ch5p2-du; + &binutils-tmpp2-sbu; + &binutils-tmpp2-du; diff --git a/chapter06/coreutils.xml b/chapter06/coreutils.xml index 3ae765e85..fe036755e 100644 --- a/chapter06/coreutils.xml +++ b/chapter06/coreutils.xml @@ -33,8 +33,8 @@ &diskspace; - &coreutils-ch5-sbu; - &coreutils-ch5-du; + &coreutils-tmp-sbu; + &coreutils-tmp-du; diff --git a/chapter06/diffutils.xml b/chapter06/diffutils.xml index 6594058be..af4d95429 100644 --- a/chapter06/diffutils.xml +++ b/chapter06/diffutils.xml @@ -33,8 +33,8 @@ &diskspace; - &diffutils-ch5-sbu; - &diffutils-ch5-du; + &diffutils-tmp-sbu; + &diffutils-tmp-du; diff --git a/chapter06/file.xml b/chapter06/file.xml index a13553b19..2506f4432 100644 --- a/chapter06/file.xml +++ b/chapter06/file.xml @@ -33,8 +33,8 @@ &diskspace; - &file-ch5-sbu; - &file-ch5-du; + &file-tmp-sbu; + &file-tmp-du; diff --git a/chapter06/findutils.xml b/chapter06/findutils.xml index bf9f9c62a..e6a19202b 100644 --- a/chapter06/findutils.xml +++ b/chapter06/findutils.xml @@ -33,8 +33,8 @@ &diskspace; - &findutils-ch5-sbu; - &findutils-ch5-du; + &findutils-tmp-sbu; + &findutils-tmp-du; diff --git a/chapter06/gawk.xml b/chapter06/gawk.xml index 105abdb8e..efe7b4380 100644 --- a/chapter06/gawk.xml +++ b/chapter06/gawk.xml @@ -33,8 +33,8 @@ &diskspace; - &gawk-ch5-sbu; - &gawk-ch5-du; + &gawk-tmp-sbu; + &gawk-tmp-du; diff --git a/chapter06/gcc-pass2.xml b/chapter06/gcc-pass2.xml index a5b7f1a26..532a8e8b4 100644 --- a/chapter06/gcc-pass2.xml +++ b/chapter06/gcc-pass2.xml @@ -33,8 +33,8 @@ &diskspace; - &gcc-ch5p2-sbu; - &gcc-ch5p2-du; + &gcc-tmpp2-sbu; + &gcc-tmpp2-du; diff --git a/chapter06/grep.xml b/chapter06/grep.xml index 6a8ada4b8..494b8616d 100644 --- a/chapter06/grep.xml +++ b/chapter06/grep.xml @@ -33,8 +33,8 @@ &diskspace; - &grep-ch5-sbu; - &grep-ch5-du; + &grep-tmp-sbu; + &grep-tmp-du; diff --git a/chapter06/gzip.xml b/chapter06/gzip.xml index e5b5d0a37..90d554b0d 100644 --- a/chapter06/gzip.xml +++ b/chapter06/gzip.xml @@ -33,8 +33,8 @@ &diskspace; - &gzip-ch5-sbu; - &gzip-ch5-du; + &gzip-tmp-sbu; + &gzip-tmp-du; diff --git a/chapter06/m4.xml b/chapter06/m4.xml index 79559f6da..7a28a08cc 100644 --- a/chapter06/m4.xml +++ b/chapter06/m4.xml @@ -33,8 +33,8 @@ &diskspace; - &m4-ch5-sbu; - &m4-ch5-du; + &m4-tmp-sbu; + &m4-tmp-du; diff --git a/chapter06/make.xml b/chapter06/make.xml index fef5555aa..cf0dbce18 100644 --- a/chapter06/make.xml +++ b/chapter06/make.xml @@ -32,8 +32,8 @@ &diskspace; - &make-ch5-sbu; - &make-ch5-du; + &make-tmp-sbu; + &make-tmp-du; diff --git a/chapter06/ncurses.xml b/chapter06/ncurses.xml index d96d7d0f3..83499f2eb 100644 --- a/chapter06/ncurses.xml +++ b/chapter06/ncurses.xml @@ -33,8 +33,8 @@ &diskspace; - &ncurses-ch5-sbu; - &ncurses-ch5-du; + &ncurses-tmp-sbu; + &ncurses-tmp-du; diff --git a/chapter06/patch.xml b/chapter06/patch.xml index ecd5b2c47..7032d6eea 100644 --- a/chapter06/patch.xml +++ b/chapter06/patch.xml @@ -33,8 +33,8 @@ &diskspace; - &patch-ch5-sbu; - &patch-ch5-du; + &patch-tmp-sbu; + &patch-tmp-du; diff --git a/chapter06/sed.xml b/chapter06/sed.xml index f146b5102..d079f836d 100644 --- a/chapter06/sed.xml +++ b/chapter06/sed.xml @@ -33,8 +33,8 @@ &diskspace; - &sed-ch5-sbu; - &sed-ch5-du; + &sed-tmp-sbu; + &sed-tmp-du; diff --git a/chapter06/tar.xml b/chapter06/tar.xml index e64379fc5..8a82cff5c 100644 --- a/chapter06/tar.xml +++ b/chapter06/tar.xml @@ -33,8 +33,8 @@ &diskspace; - &tar-ch5-sbu; - &tar-ch5-du; + &tar-tmp-sbu; + &tar-tmp-du; diff --git a/chapter06/xz.xml b/chapter06/xz.xml index 428053ed1..f8d397d1b 100644 --- a/chapter06/xz.xml +++ b/chapter06/xz.xml @@ -33,8 +33,8 @@ &diskspace; - &xz-ch5-sbu; - &xz-ch5-du; + &xz-tmp-sbu; + &xz-tmp-du; diff --git a/chapter07/bison.xml b/chapter07/bison.xml index 4e794eb44..a3718bf19 100644 --- a/chapter07/bison.xml +++ b/chapter07/bison.xml @@ -33,8 +33,8 @@ &diskspace; - &bison-ch5-sbu; - &bison-ch5-du; + &bison-tmp-sbu; + &bison-tmp-du; diff --git a/chapter07/dejagnu.xml b/chapter07/dejagnu.xml index 727173d0e..da6a44aa9 100644 --- a/chapter07/dejagnu.xml +++ b/chapter07/dejagnu.xml @@ -32,8 +32,8 @@ &diskspace; - &dejagnu-ch5-sbu; - &dejagnu-ch5-du; + &dejagnu-tmp-sbu; + &dejagnu-tmp-du; diff --git a/chapter07/expect.xml b/chapter07/expect.xml index 7e59bda8b..e73676857 100644 --- a/chapter07/expect.xml +++ b/chapter07/expect.xml @@ -38,8 +38,8 @@ &diskspace; - &expect-ch5-sbu; - &expect-ch5-du; + &expect-tmp-sbu; + &expect-tmp-du; diff --git a/chapter07/gettext.xml b/chapter07/gettext.xml index a8f5be287..12a8b5cfd 100644 --- a/chapter07/gettext.xml +++ b/chapter07/gettext.xml @@ -33,8 +33,8 @@ &diskspace; - &gettext-ch5-sbu; - &gettext-ch5-du; + &gettext-tmp-sbu; + &gettext-tmp-du; diff --git a/chapter07/libstdc++-pass2.xml b/chapter07/libstdc++-pass2.xml index a10309f4b..a98bfb282 100644 --- a/chapter07/libstdc++-pass2.xml +++ b/chapter07/libstdc++-pass2.xml @@ -35,8 +35,8 @@ &diskspace; - &libstdcpp-ch5-sbu; - &libstdcpp-ch5-du; + &libstdcpp-tmp-sbu; + &libstdcpp-tmp-du; diff --git a/chapter07/perl.xml b/chapter07/perl.xml index 62b7f4e12..d282fb4ba 100644 --- a/chapter07/perl.xml +++ b/chapter07/perl.xml @@ -33,8 +33,8 @@ &diskspace; - &perl-ch5-sbu; - &perl-ch5-du; + &perl-tmp-sbu; + &perl-tmp-du; diff --git a/chapter07/python.xml b/chapter07/python.xml index 17af90999..9354bb99e 100644 --- a/chapter07/python.xml +++ b/chapter07/python.xml @@ -33,8 +33,8 @@ &diskspace; - &python-ch5-sbu; - &python-ch5-du; + &python-tmp-sbu; + &python-tmp-du; diff --git a/chapter07/stripping.xml b/chapter07/stripping.xml index 88b44b883..2f62fd5f2 100644 --- a/chapter07/stripping.xml +++ b/chapter07/stripping.xml @@ -140,7 +140,7 @@ tar -cJpf $HOME/temp-tools.tar.xz . In case some mistakes have been made and you need to start over, you can - use this backup to restore the temporary tools and save some irecovery time. + use this backup to restore the temporary tools and save some recovery time. Since the sources are located under $LFS, they are included in the backup archive as well, so you need not to download them again. After diff --git a/chapter07/tcl.xml b/chapter07/tcl.xml index d64852d43..39219b06b 100644 --- a/chapter07/tcl.xml +++ b/chapter07/tcl.xml @@ -34,8 +34,8 @@ &diskspace; - &tcl-ch5-sbu; - &tcl-ch5-du; + &tcl-tmp-sbu; + &tcl-tmp-du; diff --git a/chapter07/texinfo.xml b/chapter07/texinfo.xml index b58c701e6..3ce3d08b9 100644 --- a/chapter07/texinfo.xml +++ b/chapter07/texinfo.xml @@ -33,8 +33,8 @@ &diskspace; - &texinfo-ch5-sbu; - &texinfo-ch5-du; + &texinfo-tmp-sbu; + &texinfo-tmp-du; diff --git a/chapter07/util-linux.xml b/chapter07/util-linux.xml index f9401c03a..05698ae66 100644 --- a/chapter07/util-linux.xml +++ b/chapter07/util-linux.xml @@ -31,8 +31,8 @@ &diskspace; - &util-linux-ch5-sbu; - &util-linux-ch5-du; + &util-linux-tmp-sbu; + &util-linux-tmp-du; diff --git a/chapter08/acl.xml b/chapter08/acl.xml index f9f2eddbe..03f057cb3 100644 --- a/chapter08/acl.xml +++ b/chapter08/acl.xml @@ -32,8 +32,8 @@ &diskspace; - &acl-ch6-sbu; - &acl-ch6-du; + &acl-fin-sbu; + &acl-fin-du; diff --git a/chapter08/attr.xml b/chapter08/attr.xml index 10c6eec53..0033ae58f 100644 --- a/chapter08/attr.xml +++ b/chapter08/attr.xml @@ -31,8 +31,8 @@ &diskspace; - &attr-ch6-sbu; - &attr-ch6-du; + &attr-fin-sbu; + &attr-fin-du; diff --git a/chapter08/autoconf.xml b/chapter08/autoconf.xml index 6652747fd..c490a3994 100644 --- a/chapter08/autoconf.xml +++ b/chapter08/autoconf.xml @@ -31,8 +31,8 @@ &diskspace; - &autoconf-ch6-sbu; - &autoconf-ch6-du; + &autoconf-fin-sbu; + &autoconf-fin-du; @@ -59,7 +59,7 @@ make check + Allowed deviation in disk usage : 2% + + Suffixes: + *-tmp-* Package info for Temporary Tools + *-fin-* Package info for Final System + *-cfg-* Package info for System Configuration + *-knl-* Package info for Kernel stuff +--> - - + + - - + + - - - + + + @@ -37,58 +44,58 @@ - - + + - - - - + + + + - - + + - - - - - - + + + + + + - - - - + + + + - - - - + + + + @@ -105,75 +112,75 @@ - - + + - - - - + + + + - - + + - - + + - - - - + + + + - - + + - - + + - - + + - - + + @@ -181,60 +188,60 @@ - - + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - - - + + + + + + @@ -243,36 +250,36 @@ - - + + - - + + - - - - + + + + - - - - + + + + @@ -280,148 +287,148 @@ - - + + - - + + - - - - + + + + - - + + - - + + - - - - + + + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + @@ -435,143 +442,143 @@ - - + + - - - - + + + + - - - - + + + + - - - - + + + + - - + + - - + + - - + + - - + + - - + + - - - - + + + + - - + + - - + + - - - - + + + + - - - - + + + + - - + + - - + + - - + + @@ -582,10 +589,10 @@ - - - - + + + + @@ -595,34 +602,34 @@ - - + + - - - - + + + + - - + + - - + + @@ -637,26 +644,26 @@ - - + + - - + + - - - - + + + + @@ -664,18 +671,18 @@ - - + + - - - - + + + + @@ -695,10 +702,10 @@ - - - - + + + + @@ -708,40 +715,40 @@ - - + + - - + + - - - - + + + + - - + + - - + + -- cgit v1.2.3-54-g00ecf From 6a156bab1b41dfcbebcf69325dff81b73a2afad7 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Fri, 12 Jun 2020 04:40:07 +0000 Subject: Mostly text updates in Chapter 8. There are a couple of minor command changes. git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11924 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter05/glibc.xml | 2 +- chapter08/aboutdebug.xml | 4 ++-- chapter08/adjusting.xml | 8 ++++---- chapter08/attr.xml | 6 ++---- chapter08/autoconf.xml | 2 +- chapter08/automake.xml | 2 +- chapter08/bash.xml | 11 ++-------- chapter08/coreutils.xml | 25 ++++++++++++++--------- chapter08/e2fsprogs.xml | 16 +++++++-------- chapter08/expat.xml | 2 +- chapter08/gcc.xml | 30 ++++++++++----------------- chapter08/gdbm.xml | 6 +++--- chapter08/gettext.xml | 32 ++++------------------------- chapter08/glibc.xml | 50 ++++++--------------------------------------- chapter08/gzip.xml | 3 --- chapter08/intltool.xml | 4 ++++ chapter08/introduction.xml | 18 ++++++++-------- chapter08/iproute2.xml | 4 ++-- chapter08/kbd.xml | 14 ++++++------- chapter08/kmod.xml | 7 +------ chapter08/libffi.xml | 15 +------------- chapter08/m4.xml | 6 +++--- chapter08/make.xml | 4 +--- chapter08/man-db.xml | 11 ---------- chapter08/meson.xml | 12 ++++------- chapter08/openssl.xml | 7 +------ chapter08/patch.xml | 4 ++-- chapter08/pkgconfig.xml | 6 +++--- chapter08/pkgmgt.xml | 37 +++++++++++++++------------------ chapter08/procps.xml | 2 +- chapter08/python.xml | 23 +++++---------------- chapter08/shadow.xml | 10 +++++---- chapter08/sysklogd.xml | 2 +- chapter08/tar.xml | 6 +++--- chapter08/texinfo.xml | 10 ++++----- chapter08/util-linux.xml | 2 +- chapter08/vim.xml | 34 +++++++++++------------------- stylesheets/lfs-xsl/lfs.css | 18 +++++++++++++++- 38 files changed, 167 insertions(+), 288 deletions(-) (limited to 'chapter08/libffi.xml') diff --git a/chapter05/glibc.xml b/chapter05/glibc.xml index 80d1638f5..6e14f0c7d 100644 --- a/chapter05/glibc.xml +++ b/chapter05/glibc.xml @@ -157,7 +157,7 @@ cd build Install the package: - If LFS is not proprly set, and despite the + If LFS is not properly set, and despite the recommendations, you are building as root, the next command will install the newly built glibc to your host system, which most likely will render it unusable. So double check that the environment is correctly set for user diff --git a/chapter08/aboutdebug.xml b/chapter08/aboutdebug.xml index f49618c83..d646b797e 100644 --- a/chapter08/aboutdebug.xml +++ b/chapter08/aboutdebug.xml @@ -13,8 +13,8 @@ Most programs and libraries are, by default, compiled with debugging symbols included (with gcc's -g option). This means that when debugging a - program or library that was compiled with debugging information - included, the debugger can provide not only memory addresses, but also + program or library that was compiled with debugging information, + 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 diff --git a/chapter08/adjusting.xml b/chapter08/adjusting.xml index 3e6b49e19..4bd8a85cc 100644 --- a/chapter08/adjusting.xml +++ b/chapter08/adjusting.xml @@ -50,7 +50,7 @@ readelf -l a.out | grep ': /lib' There should be no errors, and the output of the last command will be (allowing for - platform-specific differences in dynamic linker name): + platform-specific differences in the dynamic linker name): [Requesting program interpreter: /lib64/ld-linux-x86-64.so.2] @@ -104,7 +104,7 @@ SEARCH_DIR("/lib") attempt to open /lib/libc.so.6 succeeded - Lastly, make sure GCC is using the correct dynamic linker: + Make sure GCC is using the correct dynamic linker: grep found dummy.log @@ -115,8 +115,8 @@ SEARCH_DIR("/lib") If the output does not appear as shown above or is not received at all, then something is seriously wrong. Investigate and retrace the - steps to find out where the problem is and correct it. The most likely - reason is that something went wrong with the specs file adjustment. Any + steps to find out where the problem is and correct it. Any issues will need to be resolved before continuing with the process. Once everything is working correctly, clean up the test files: diff --git a/chapter08/attr.xml b/chapter08/attr.xml index 0033ae58f..526852b6d 100644 --- a/chapter08/attr.xml +++ b/chapter08/attr.xml @@ -43,15 +43,13 @@ Prepare Attr for compilation: - -./configure --prefix=/usr \ +./configure --prefix=/usr \ --bindir=/bin \ --disable-static \ --sysconfdir=/etc \ --docdir=/usr/share/doc/attr-&attr-version; - -./configure --prefix=/usr \ +./configure --prefix=/usr \ --disable-static \ --sysconfdir=/etc \ --docdir=/usr/share/doc/attr-&attr-version; diff --git a/chapter08/autoconf.xml b/chapter08/autoconf.xml index c490a3994..53d97070b 100644 --- a/chapter08/autoconf.xml +++ b/chapter08/autoconf.xml @@ -43,7 +43,7 @@ First, fix a bug generated by Perl 5.28. -sed '361 s/{/\\{/' -i bin/autoscan.in +sed -i '361 s/{/\\{/' bin/autoscan.in Prepare Autoconf for compilation: diff --git a/chapter08/automake.xml b/chapter08/automake.xml index 5587d577d..7c4143e91 100644 --- a/chapter08/automake.xml +++ b/chapter08/automake.xml @@ -43,7 +43,7 @@ Fix a failing test: -sed -i "s/''/etags/" t/tags-lisp-space.sh +sed -i "s/''/etags/" t/tags-lisp-space.sh Prepare Automake for compilation: diff --git a/chapter08/bash.xml b/chapter08/bash.xml index 60cb9b491..b8dd5fe40 100644 --- a/chapter08/bash.xml +++ b/chapter08/bash.xml @@ -83,14 +83,7 @@ su tester << EOF PATH=$PATH make tests < $(tty) EOF - + Install the package and move the main executable to /bin: @@ -104,7 +97,7 @@ mv -vf /usr/bin/bash /bin The parameters used make the bash - process an interactive login shell and continue to disable hashing so + process an interactive login shell and continues to disable hashing so that new programs are found as they become available. diff --git a/chapter08/coreutils.xml b/chapter08/coreutils.xml index d97b9558a..13aaaa2c4 100644 --- a/chapter08/coreutils.xml +++ b/chapter08/coreutils.xml @@ -111,9 +111,9 @@ FORCE_UNSAFE_CONFIGURE=1 ./configure \ make NON_ROOT_USERNAME=tester check-root We're going to run the remainder of the tests as the - tester user. Certain tests, - however, require that the user be a member of more than one group. So that - these tests are not skipped we'll add a temporary group and make the + tester user. Certain tests + require that the user be a member of more than one group. So that + these tests are not skipped, add a temporary group and make the user tester a part of it: echo "dummy:x:102:tester" >> /etc/group @@ -126,12 +126,6 @@ FORCE_UNSAFE_CONFIGURE=1 ./configure \ Now run the tests: su tester -c "PATH=$PATH make RUN_EXPENSIVE_TESTS=yes check" - Remove the temporary group: @@ -147,7 +141,7 @@ mv -v /usr/bin/{false,ln,ls,mkdir,mknod,mv,pwd,rm} /bin mv -v /usr/bin/{rmdir,stty,sync,true,uname} /bin mv -v /usr/bin/chroot /usr/sbin mv -v /usr/share/man/man1/chroot.1 /usr/share/man/man8/chroot.8 -sed -i s/\"1\"/\"8\"/1 /usr/share/man/man8/chroot.8 +sed -i 's/"1"/"8"' /usr/share/man/man8/chroot.8 Some of the scripts in the LFS-Bootscripts package depend on head, nice, @@ -190,6 +184,17 @@ sed -i s/\"1\"/\"8\"/1 /usr/share/man/man8/chroot.8 + + [ + + Is an actual command, /usr/bin/[, that is a synonym + for the test command. + + [ + + + + base32 diff --git a/chapter08/e2fsprogs.xml b/chapter08/e2fsprogs.xml index dbfc1e7e8..308c97709 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 \ --bindir=/bin \ @@ -62,7 +62,7 @@ cd build --disable-fsck - The meaning of the environment variable and configure options: + The meaning of the configure options: --with-root-prefix="" and @@ -74,7 +74,7 @@ cd build programs still need to be available. They belong in directories like /lib and /sbin. If this option is not passed - to E2fsprogs' configure, the programs are installed into the + to configure, the programs are installed into the /usr directory. @@ -90,11 +90,11 @@ cd build --disable-* - This prevents E2fsprogs from building and installing the + This prevents e2fsprogs from building and installing the libuuid and libblkid libraries, the uuidd daemon, and the - fsck wrapper, as Util-Linux installs more + fsck wrapper, as util-linux installs more recent versions. @@ -109,7 +109,7 @@ cd build make check - One of the E2fsprogs tests will attempt to allocate 256 MB of memory. + One of the e2fsprogs tests will attempt to allocate 256 MB of memory. If you do not have significantly more RAM than this, be sure to enable sufficient swap space for the test. See and First fix a problem with the regression tests in the LFS environment: -sed -i 's|usr/bin/env |bin/|' run.sh.in +sed -i 's:usr/bin/env :bin/:' run.sh.in Prepare Expat for compilation: diff --git a/chapter08/gcc.xml b/chapter08/gcc.xml index 6902211ca..f771c135d 100644 --- a/chapter08/gcc.xml +++ b/chapter08/gcc.xml @@ -65,9 +65,9 @@ cd build --disable-bootstrap \ --with-system-zlib - Note that for other languages, there are some prerequisites that + Note that for other programming languages there are some prerequisites that are not yet available. See the - BLFS Book + BLFS Book GCC page for instructions on how to build all of GCC's supported languages. @@ -77,7 +77,7 @@ cd build LD=ld This parameter makes the configure script use the ld installed - by the binutils installed earlier in this chapter, rather than + by the binutils built earlier in this chapter, rather than the cross-built version which would otherwise be used. @@ -86,7 +86,7 @@ cd build --with-system-zlib This switch tells GCC to link to the system installed copy of - the Zlib library, rather than its own internal copy. + the zlib library, rather than its own internal copy. @@ -100,8 +100,8 @@ cd build critical. Do not skip it under any circumstance. - One set of tests in the GCC test suite is known to exhaust the stack, - so increase the stack size prior to running the tests: + One set of tests in the GCC test suite is known to exhaust the default + stack, so increase the stack size prior to running the tests: ulimit -s 32768 @@ -175,7 +175,7 @@ ln -sfv ../../libexec/gcc/$(gcc -dumpmachine)/&gcc-version;/liblto_plugin.so \ Now that our final toolchain is in place, it is important to again ensure that compiling and linking will work as expected. We do this by performing - the same sanity checks as we did earlier in the chapter: + some sanity checks: - Depending on your machine architecture, the above may differ slightly, - the difference usually being the name of the directory + Depending on your machine architecture, the above may differ slightly. + The difference will be the name of the directory after /usr/lib/gcc. The important thing to look for here is that gcc has found all three crt*.o files under the @@ -228,16 +228,8 @@ ln -sfv ../../libexec/gcc/$(gcc -dumpmachine)/&gcc-version;/liblto_plugin.so \ /usr/lib/gcc/x86_64-pc-linux-gnu/&gcc-version;/include-fixed /usr/include - Again, note that the directory named after your target triplet may be - different than the above, depending on your architecture. - - + Again, the directory named after your target triplet may be + different than the above, depending on your system architecture. The GDBM package contains the GNU Database Manager. It is a library - of database functions that use extensible hashing and work similar to the + of database functions that use extensible hashing and works similar to the standard UNIX dbm. The library provides primitives for storing key/data pairs, searching and retrieving the data by its key and deleting a key along with its data. @@ -60,8 +60,8 @@ --enable-libgdbm-compat - This switch enables the libgdbm compatibility library to be - built, as some packages outside of LFS may require the older DBM + This switch enables building the libgdbm compatibility library. + Some packages outside of LFS may require the older DBM routines it provides. diff --git a/chapter08/gettext.xml b/chapter08/gettext.xml index dd5bebbe9..cafe26182 100644 --- a/chapter08/gettext.xml +++ b/chapter08/gettext.xml @@ -43,31 +43,6 @@ Installation of Gettext - - - - - - Prepare Gettext for compilation: ./configure --prefix=/usr \ @@ -76,8 +51,9 @@ sed -i 's/test-lock..EXEEXT.//' gettext-tools/gnulib-tests/Makefile.inCompile the package: -make BISON_LOCALEDIR=/usr/share/locale - + +make + To test the results (this takes a long time, around 3 SBUs), issue: diff --git a/chapter08/glibc.xml b/chapter08/glibc.xml index 7d993d509..05a0b880e 100644 --- a/chapter08/glibc.xml +++ b/chapter08/glibc.xml @@ -49,34 +49,7 @@ store their runtime data in the FHS-compliant locations: patch -Np1 -i ../&glibc-fhs-patch; - - The Glibc documentation recommends building Glibc in a dedicated build directory: @@ -94,7 +67,7 @@ cd build The meaning of the options and new configure parameters: - + --disable-werror @@ -176,7 +149,7 @@ esac misc/tst-ttyname is known to fail in the LFS chroot environment. - + The nss/tst-nss-files-hosts-multi test may fail for reasons that have not been determined. @@ -206,18 +179,7 @@ esac systems where the CPU is not a relatively new Intel or AMD processor. - Though it is a harmless message, the install stage of Glibc will @@ -382,7 +344,7 @@ unset ZONEINFO zic -L /dev/null ... - This creates posix time zones, without any leap seconds. It is + This creates posix time zones without any leap seconds. It is conventional to put these in both zoneinfo and zoneinfo/posix. It is @@ -390,7 +352,7 @@ unset ZONEINFO zoneinfo, otherwise various test-suites will report errors. On an embedded system, where space is tight and you do not intend to ever update the time zones, you could save - 1.9MB by not using the posix + 1.9 MB by not using the posix directory, but some applications or test-suites might produce some failures. diff --git a/chapter08/gzip.xml b/chapter08/gzip.xml index 3d7783316..5040f2e0b 100644 --- a/chapter08/gzip.xml +++ b/chapter08/gzip.xml @@ -53,9 +53,6 @@ make check - Two tests are known to fail in the LFS environment: - help-version and zmore. - Install the package: make install diff --git a/chapter08/intltool.xml b/chapter08/intltool.xml index f402fec67..bf2cc8b47 100644 --- a/chapter08/intltool.xml +++ b/chapter08/intltool.xml @@ -45,6 +45,10 @@ sed -i 's:\\\${:\\\$\\{:' intltool-update.in + The above regular expression looks unusual because of all the + baxkslashes. What it does is add a backslash before the right brace + character in the sequence '\${' resulting in '\$\{'. + Prepare Intltool for compilation: ./configure --prefix=/usr diff --git a/chapter08/introduction.xml b/chapter08/introduction.xml index a407cba1b..b63ce1c3e 100644 --- a/chapter08/introduction.xml +++ b/chapter08/introduction.xml @@ -10,9 +10,8 @@ Introduction - In this chapter, we enter the building site and start constructing the - LFS system in earnest. That is, we chroot into the temporary mini Linux system, - make a few final preparations, and then begin installing the packages. + In this chapter, we start constructing the LFS system in earnest. + The installation of this software is straightforward. Although in many cases the installation instructions could be made shorter and more generic, @@ -41,25 +40,26 @@ contains, approximately how long it will take to build, and how much disk space is required during this building process. Following the installation instructions, there is a list of programs and libraries (along with brief - descriptions of these) that the package installs. + descriptions) that the package installs. - The SBU values and required disk space includes - test suite data for all applicable packages in - . + The SBU values and required disk space includes test suite data + for all applicable packages in . SBU + values have been calculated using a single CPU core (-j1) for all + operations. About libraries In general, the LFS editors discourage building and installing static libraries. The original purpose for most static libraries has been made - obsolete in a modern Linux system. In addition linking a static library + obsolete in a modern Linux system. In addition, linking a static library into a program can be detrimental. If an update to the library is needed to remove a security problem, all programs that use the static library will need to be relinked to the new library. Since the use of static libraries is not always obvious, the relevant programs (and the procedures needed to do the linking) may not even be known. - In the procedures in Chapter 6, we remove or disable installation of + In the procedures in this chapter, we remove or disable installation of most static libraries. Usually this is done by passing a option to configure. In other cases, alternate means are needed. In a few cases, especially diff --git a/chapter08/iproute2.xml b/chapter08/iproute2.xml index 64682a918..9e609e3cf 100644 --- a/chapter08/iproute2.xml +++ b/chapter08/iproute2.xml @@ -47,14 +47,14 @@ be installed. Prevent this by running the commands below. If the arpd binary is needed, instructions for compiling Berkeley DB can be found in the BLFS Book at - . + . sed -i /ARPD/d Makefile rm -fv man/man8/arpd.8 It is also necessary to disable building two modules that - requires . + require . sed -i 's/.m_ipt.o//' tc/Makefile diff --git a/chapter08/kbd.xml b/chapter08/kbd.xml index 7d85e4db5..a219102eb 100644 --- a/chapter08/kbd.xml +++ b/chapter08/kbd.xml @@ -41,21 +41,21 @@ Installation of Kbd - The behaviour of the Backspace and Delete keys is not consistent + The behaviour of the backspace and delete keys is not consistent across the keymaps in the Kbd package. The following patch fixes this issue for i386 keymaps: patch -Np1 -i ../&kbd-backspace-patch; - After patching, the Backspace key generates the character with code 127, - and the Delete key generates a well-known escape sequence. + After patching, the backspace key generates the character with code 127, + and the delete key generates a well-known escape sequence. Remove the redundant resizecons program (it requires the defunct svgalib to provide the video mode files - for normal use setfont sizes the console appropriately) together with its manpage. -sed -i 's/\(RESIZECONS_PROGS=\)yes/\1no/g' configure +sed -i '/RESIZECONS_PROGS=/s/yes/no/' configure sed -i 's/resizecons.8 //' docs/man/man8/Makefile.in Prepare Kbd for compilation: @@ -63,12 +63,12 @@ sed -i 's/resizecons.8 //' docs/man/man8/Makefile.in ./configure --prefix=/usr --disable-vlock - The meaning of the configure options: + The meaning of the configure option: --disable-vlock - This option prevents the vlock utility from being built, as it + This option prevents the vlock utility from being built because it requires the PAM library, which isn't available in the chroot environment. @@ -97,7 +97,7 @@ sed -i 's/resizecons.8 //' docs/man/man8/Makefile.in If desired, install the documentation: -mkdir -v /usr/share/doc/kbd-&kbd-version; +mkdir -v /usr/share/doc/kbd-&kbd-version; cp -R -v docs/doc/* /usr/share/doc/kbd-&kbd-version; diff --git a/chapter08/kmod.xml b/chapter08/kmod.xml index b1fe24911..01eda165b 100644 --- a/chapter08/kmod.xml +++ b/chapter08/kmod.xml @@ -78,12 +78,7 @@ LFS chroot environment. At a minimum the git program is required and several tests will not run outside of a git repository. - - Install the package, and create symlinks for + Install the package and create symlinks for compatibility with Module-Init-Tools (the package that previously handled Linux kernel modules): diff --git a/chapter08/libffi.xml b/chapter08/libffi.xml index 825b09a57..3b5347992 100644 --- a/chapter08/libffi.xml +++ b/chapter08/libffi.xml @@ -49,18 +49,7 @@ If this is not done, all applications that link to libffi will trigger Illegal Operation Errors. - + Prepare libffi for compilation: ./configure --prefix=/usr --disable-static --with-gcc-arch=native @@ -92,8 +81,6 @@ sed -e '/^includedir/ s/=.*$/=@includedir@/' \ make check - Six tests, all related to test-callback.c, are known to fail. - Install the package: make install diff --git a/chapter08/m4.xml b/chapter08/m4.xml index a5911b576..54608bfeb 100644 --- a/chapter08/m4.xml +++ b/chapter08/m4.xml @@ -40,7 +40,7 @@ Installation of M4 - First, make some fixes required by glibc-2.28: + First, make some fixes required by glibc-2.28 and later: sed -i 's/IO_ftrylockfile/IO_EOF_SEEN/' lib/*.c echo "#define _IO_IN_BACKUP 0x100" >> lib/stdio-impl.h @@ -84,13 +84,13 @@ echo "#define _IO_IN_BACKUP 0x100" >> lib/stdio-impl.h m4 Copies the given files while expanding the macros that they - contain [These macros are either built-in or user-defined and can + contain. These macros are either built-in or user-defined and can take any number of arguments. Besides performing macro expansion, m4 has built-in functions for including named files, running Unix commands, performing integer arithmetic, manipulating text, recursion, etc. The m4 program can be used either as a front-end to a compiler or as a macro processor - in its own right.] + in its own right. m4 diff --git a/chapter08/make.xml b/chapter08/make.xml index 887950b4b..080ed3989 100644 --- a/chapter08/make.xml +++ b/chapter08/make.xml @@ -53,9 +53,7 @@ make - The test suite needs to know where supporting perl files are located. - We use an environment variable to accomplish this. To test the - results, issue: + To test the results, issue: make check diff --git a/chapter08/man-db.xml b/chapter08/man-db.xml index dd8b6f970..45b1f4fa2 100644 --- a/chapter08/man-db.xml +++ b/chapter08/man-db.xml @@ -126,21 +126,10 @@ make check - One test, man-missing-locales, is known to fail in the LFS chroot envirnment. - Install the package: make install - diff --git a/chapter08/meson.xml b/chapter08/meson.xml index 1060fa2d4..128eb3d5a 100644 --- a/chapter08/meson.xml +++ b/chapter08/meson.xml @@ -23,8 +23,8 @@ - <para>Meson is an open source build system meant to be both extremely fast, - and, even more importantly, as user friendly as possible.</para> + <para>Meson is an open source build system meant to be both extremely fast + and as user friendly as possible.</para> <segmentedlist> <segtitle>&buildtime;</segtitle> @@ -39,11 +39,7 @@ <sect2 role="installation"> <title>Installation of Meson - Compile Meson with the following command: python3 setup.py build @@ -64,8 +60,8 @@ cp -rv dest/* / By default python3 setup.py install installs various files (such as man pages) into Python Eggs. With a specified root location, setup.py installs - these files into a standard hierarchy. Then we can just copy - the hierarchy so the files will be in the standard location. + these files into a standard hierarchy. Then the hierarchy + can just be copied to the standard location. diff --git a/chapter08/openssl.xml b/chapter08/openssl.xml index c620ae629..0b22eab7f 100644 --- a/chapter08/openssl.xml +++ b/chapter08/openssl.xml @@ -25,7 +25,7 @@ The OpenSSL package contains management tools and libraries relating to cryptography. These are useful for providing cryptographic functions - to other packages, such as OpenSSH, email applications and web browsers + to other packages, such as OpenSSH, email applications, and web browsers (for accessing HTTPS sites). @@ -42,12 +42,7 @@ Installation of OpenSSL - Prepare OpenSSL for compilation: ./config --prefix=/usr \ diff --git a/chapter08/patch.xml b/chapter08/patch.xml index 174aa9192..870007b98 100644 --- a/chapter08/patch.xml +++ b/chapter08/patch.xml @@ -79,10 +79,10 @@ patch - Modifies files according to a patch file [A patch file is + Modifies files according to a patch file (A patch file is normally a difference listing created with the diff program. By applying these differences to the original files, - patch creates the patched versions.] + patch creates the patched versions.) patch diff --git a/chapter08/pkgconfig.xml b/chapter08/pkgconfig.xml index aa39b72e0..b987a7652 100644 --- a/chapter08/pkgconfig.xml +++ b/chapter08/pkgconfig.xml @@ -23,9 +23,9 @@ - <para> The pkg-config package contains a tool for passing the include path - and/or library paths to build tools during the configure and make file - execution.</para> + <para>The pkg-config package contains a tool for passing the include path + and/or library paths to build tools during the configure and make phases + of package installations.</para> <segmentedlist> <segtitle>&buildtime;</segtitle> diff --git a/chapter08/pkgmgt.xml b/chapter08/pkgmgt.xml index d28038467..14e94fdaf 100644 --- a/chapter08/pkgmgt.xml +++ b/chapter08/pkgmgt.xml @@ -45,36 +45,33 @@ <title>Upgrade Issues A Package Manager makes it easy to upgrade to newer versions when they - are released. Generally the instructions in the LFS and BLFS Book can be + are released. Generally the instructions in the LFS and BLFS books can be used to upgrade to the newer versions. Here are some points that you should be aware of when upgrading packages, especially on a running system. If Glibc needs to be upgraded to a newer version, (e.g. from - glibc-2.19 to glibc-2.20), it is safer to rebuild LFS. Though you + glibc-2.31 to glibc-2.32), it is safer to rebuild LFS. Though you may be able to rebuild all the packages in their dependency order, we do not recommend it. - - If a package containing a shared library is updated, and if the - name of the library changes, then all the packages dynamically linked - to the library need to be recompiled to link against the newer library. - (Note that there is no correlation between the package version and the - name of the library.) For example, consider a package foo-1.2.3 that - installs a shared library with name - libfoo.so.1. Say you upgrade - the package to a newer version foo-1.2.4 that installs a shared library - with name libfoo.so.2. In this - case, all packages that are dynamically linked to - libfoo.so.1 need to be - recompiled to link against - libfoo.so.2. Note that you - should not remove the previous libraries until the dependent packages - are recompiled. - - + If a package containing a shared library is updated, and + if the name of the library changes, then any the packages dynamically + linked to the library need to be recompiled in order to link against the + newer library. (Note that there is no correlation between the package + version and the name of the library.) For example, consider a package + foo-1.2.3 that installs a shared library with name libfoo.so.1. If you upgrade the package to + a newer version foo-1.2.4 that installs a shared library with name + libfoo.so.2. In this case, any + packages that are dynamically linked to libfoo.so.1 need to be recompiled to link + against libfoo.so.2 in order to + use the new library version. You should not remove the previous + libraries unless all the dependent packages are recompiled. + diff --git a/chapter08/procps.xml b/chapter08/procps.xml index a7080f247..b09f0f69d 100644 --- a/chapter08/procps.xml +++ b/chapter08/procps.xml @@ -58,7 +58,7 @@ --with-systemd - The meaning of the configure options: + The meaning of the configure option: --disable-kill diff --git a/chapter08/python.xml b/chapter08/python.xml index 54b0eeab3..81178ca1a 100644 --- a/chapter08/python.xml +++ b/chapter08/python.xml @@ -25,7 +25,7 @@ The Python 3 package contains the Python development environment. It is useful for object-oriented programming, writing scripts, prototyping - large programs or developing entire applications. + large programs, or developing entire applications. &buildtime; @@ -84,7 +84,7 @@ make To test the results, issue make test. - Some tests requiring network connection or additional packages are + Some tests requiring a network connection or additional packages are skipped. The test named test_normalization fails because network configuration is not completed yet. For more comprehensive results, the test can be rerun when Python 3 is reinstalled in BLFS. @@ -170,8 +170,8 @@ tar --strip-components=1 \ is a Python program that reads Python 2.x source code and applies a - series of fixes to transform it into valid - Python 3.x code. + series of fixes to transform it into + valid Python 3.x code. 2to3 @@ -231,20 +231,7 @@ tar --strip-components=1 \ - + diff --git a/chapter08/shadow.xml b/chapter08/shadow.xml index 49d2789dc..36a81d966 100644 --- a/chapter08/shadow.xml +++ b/chapter08/shadow.xml @@ -67,13 +67,15 @@ find man -name Makefile.in -exec sed -i 's/passwd\.5 / /' {} \;/var/mail location used currently: -sed -i -e 's@#ENCRYPT_METHOD DES@ENCRYPT_METHOD SHA512@' \ - -e 's@/var/spool/mail@/var/mail@' etc/login.defs + +sed -e 's:#ENCRYPT_METHOD DES:ENCRYPT_METHOD SHA512:' \ + -e 's:/var/spool/mail:/var/mail:' \ + -i etc/login.defs If you chose to build Shadow with Cracklib support, run the following: -sed -i 's@DICTPATH.*@DICTPATH\t/lib/cracklib/pw_dict@' etc/login.defs +sed -i 's:DICTPATH.*:DICTPATH\t/lib/cracklib/pw_dict:' etc/login.defs Make a minor change to make the first group number generated @@ -84,7 +86,7 @@ find man -name Makefile.in -exec sed -i 's/passwd\.5 / /' {} \;Prepare Shadow for compilation: touch /usr/bin/passwd -./configure --sysconfdir=/etc \ +./configure --sysconfdir=/etc \ --with-group-name-max-length=32 diff --git a/chapter08/sysklogd.xml b/chapter08/sysklogd.xml index 26f57020b..9aec7ba9b 100644 --- a/chapter08/sysklogd.xml +++ b/chapter08/sysklogd.xml @@ -23,7 +23,7 @@ - <para>The Sysklogd package contains programs for logging system messages, + <para>The sysklogd package contains programs for logging system messages, such as those given by the kernel when unusual things happen.</para> <segmentedlist> diff --git a/chapter08/tar.xml b/chapter08/tar.xml index 0af1216ee..50a49d80b 100644 --- a/chapter08/tar.xml +++ b/chapter08/tar.xml @@ -23,8 +23,8 @@ <sect2 role="package"> <title/> - <para>The Tar package provides the ability to create tar archives, as well - as various other kinds of manipulation. Tar can be used on + <para>The Tar package provides the ability to create tar archives as well + as perform various other kinds of archive manipulation. Tar can be used on previously created archives to extract files, to store additional files, or to update or list files which were already stored. </para> @@ -50,7 +50,7 @@ --bindir=/bin</userinput></screen> <variablelist> - <title>The meaning of the configure options: + The meaning of the configure option: FORCE_UNSAFE_CONFIGURE=1 diff --git a/chapter08/texinfo.xml b/chapter08/texinfo.xml index 2f428bf47..7257ae5b5 100644 --- a/chapter08/texinfo.xml +++ b/chapter08/texinfo.xml @@ -46,7 +46,7 @@ ./configure --prefix=/usr --disable-static - The meaning of the configure options: + The meaning of the configure option: --disable-static @@ -101,10 +101,10 @@ recreated, the following optional commands will accomplish the task: pushd /usr/share/info -rm -v dir -for f in * - do install-info $f dir 2>/dev/null -done + rm -v dir + for f in * + do install-info $f dir 2>/dev/null + done popd diff --git a/chapter08/util-linux.xml b/chapter08/util-linux.xml index b2b6f2c0e..8f3df8366 100644 --- a/chapter08/util-linux.xml +++ b/chapter08/util-linux.xml @@ -90,7 +90,7 @@ Running the test suite as the root user can be harmful to 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 + 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: diff --git a/chapter08/vim.xml b/chapter08/vim.xml index 4ec0d1a3b..4d06d5a08 100644 --- a/chapter08/vim.xml +++ b/chapter08/vim.xml @@ -54,11 +54,7 @@ echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h - - Prepare Vim for compilation: + Prepare vim for compilation: ./configure --prefix=/usr @@ -66,19 +62,17 @@ make - To prepare the tests, ensure that the - tester user can write - to the sources tree: + To prepare the tests, ensure that user + tester can write + to the source tree: chown -Rv tester . - Now run the tests as the tester user: + Now run the tests as user tester: su tester -c "LANG=en_US.UTF-8 make -j1 test" &> vim-test.log - - The test suite outputs a lot of binary data to the screen. This can cause issues with the settings of the current terminal. The problem can be avoided by redirecting the output to a log file as shown above. A @@ -100,7 +94,7 @@ for L in /usr/share/man/{,*/}man1/vim.1; do ln -sv vim.1 $(dirname $L)/vi.1 done - By default, Vim's documentation is installed in By default, vim's documentation is installed in /usr/share/vim. The following symlink allows the documentation to be accessed via /usr/share/doc/vim-&vim-version;, making @@ -109,10 +103,10 @@ done ln -sv ../&vim-docdir;/doc /usr/share/doc/vim-&vim-version; If an X Window System is going to be installed on the LFS - system, it may be necessary to recompile Vim after installing X. Vim + system, it may be necessary to recompile vim after installing X. Vim comes with a GUI version of the editor that requires X and some additional libraries to be installed. For more information on this - process, refer to the Vim documentation and the Vim installation page + process, refer to the vim documentation and the vim installation page in the BLFS book at . @@ -157,7 +151,7 @@ EOF vi-compatible manner. Remove the no to keep the old vi behavior. The set backspace=2 setting allows backspacing over line breaks, autoindents, and the start of - insert. The syntax on parameter enables vim's syntax + an insert. The syntax on parameter enables vim's syntax highlighting. The set mouse= setting enables proper pasting of text with the mouse when working in chroot or over a remote connection. Finally, the if statement with the @@ -165,18 +159,14 @@ EOF vim's guess about the background color of some terminal emulators. This gives the highlighting a better color scheme for use on the black background of these programs. - + Documentation for other available options can be obtained by running the following command: vim -c ':options' - By default, Vim only installs spell files for the English language. + By default, vim only installs spell files for the English language. To install spell files for your preferred language, download the *.spl and optionally, the *.sug files for your language and character encoding from Date: Sat, 13 Jun 2020 08:55:55 +0000 Subject: - fix some gcc->GCC - remove commented text in glibc (chap 5), and fix a directory location git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11934 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter05/gcc-pass1.xml | 2 +- chapter05/glibc.xml | 25 ++++--------------------- chapter05/toolchaintechnotes.xml | 2 +- chapter06/gcc-pass2.xml | 2 +- chapter08/libffi.xml | 4 ++-- chapter08/strippingagain.xml | 2 +- 6 files changed, 10 insertions(+), 27 deletions(-) (limited to 'chapter08/libffi.xml') diff --git a/chapter05/gcc-pass1.xml b/chapter05/gcc-pass1.xml index e2a13a003..0cd852ee6 100644 --- a/chapter05/gcc-pass1.xml +++ b/chapter05/gcc-pass1.xml @@ -193,7 +193,7 @@ cd build headers. Normally one of them, limits.h, would in turn include the corresponding system limits.h header, in this case, $LFS/usr/include/limits.h. However, at the - time of this build of gcc $LFS/usr/include/limits.h + time of this build of GCC $LFS/usr/include/limits.h does not exist, so the internal header that has just been installed is a partial, self-contained file and does not include the extended features of the system header. This is adequate for building glibc, but the full diff --git a/chapter05/glibc.xml b/chapter05/glibc.xml index 6e14f0c7d..1b72b4e20 100644 --- a/chapter05/glibc.xml +++ b/chapter05/glibc.xml @@ -99,9 +99,10 @@ cd build --with-headers=$LFS/usr/include - This tells Glibc to compile itself against the headers recently - installed to the usr/include directory, so that it knows exactly what - features the kernel has and can optimize itself accordingly. + This tells Glibc to compile itself against the headers + recently installed to the $LFS/usr/include directory, so that + it knows exactly what features the kernel has and can optimize + itself accordingly. @@ -112,24 +113,6 @@ cd build of the default /lib64 on 64 bit machines. - diff --git a/chapter05/toolchaintechnotes.xml b/chapter05/toolchaintechnotes.xml index 9e582e345..1e7086aaf 100644 --- a/chapter05/toolchaintechnotes.xml +++ b/chapter05/toolchaintechnotes.xml @@ -227,7 +227,7 @@ this is the only compiler available for building the C/C++ libraries during stage 2! Of course, the compiler built during stage 2, cc-lfs, would be able to build those libraries, but (1) the build system of - gcc does not know that it is usable on pc, and (2) using it on pc + GCC does not know that it is usable on pc, and (2) using it on pc would be at risk of linking to the pc libraries, since cc-lfs is a native compiler. So we have to build libstdc++ later, in chroot. diff --git a/chapter06/gcc-pass2.xml b/chapter06/gcc-pass2.xml index 532a8e8b4..c64d6f780 100644 --- a/chapter06/gcc-pass2.xml +++ b/chapter06/gcc-pass2.xml @@ -109,7 +109,7 @@ ln -s ../../../libgcc/gthr-posix.h $LFS_TGT/libgcc/gthr-default.h-with-build-sysroot=$LFS Normally, using --host ensures that - a cross-compiler is used for building gcc, and that compiler knows + a cross-compiler is used for building GCC, and that compiler knows that it has to look for headers and libraries in $LFS. But the build system of GCC uses other tools, which are not aware of this location. This switch is diff --git a/chapter08/libffi.xml b/chapter08/libffi.xml index 3b5347992..b6a49b122 100644 --- a/chapter08/libffi.xml +++ b/chapter08/libffi.xml @@ -60,14 +60,14 @@ --with-gcc-arch=native - Ensure gcc optimizes for the current system. If this + Ensure GCC optimizes for the current system. If this is not specified, the system is guessed and the code generated may not be correct for some systems. If the generated code will be copied from the native system to a less capable system, use the less capable system as a parameter. For details about alternative system types, see - the x86 options in the gcc manual. + the x86 options in the GCC manual. diff --git a/chapter08/strippingagain.xml b/chapter08/strippingagain.xml index d436fcbda..891d2e000 100644 --- a/chapter08/strippingagain.xml +++ b/chapter08/strippingagain.xml @@ -30,7 +30,7 @@ url='&blfs-book;/general/gdb.html'>gdb later in BLFS. - + save_lib="ld-&glibc-version;.so libc-&glibc-version;.so libpthread-&glibc-version;.so libthread_db-&libthread_db-version;.so" -- cgit v1.2.3-54-g00ecf